Problem | towers |
---|---|
User | bobthebill1 |
Submission Time | 2023-12-22 13:40:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
towers.cpp:55:30: error: expected initializer before ‘.’ token
55 | int arr[200001], comp[200001]. arr3[200001];
| ^
towers.cpp: In function ‘int32_t main()’:
towers.cpp:70:14: error: ‘comp’ was not declared in this scope
70 | FOR(i,0,n) {comp[arr2[i].se] = i; arr3[i] = arr2[i].f;}
| ^~~~
towers.cpp:70:36: error: ‘arr3’ was not declared in this scope; did you mean ‘arr’?
70 | FOR(i,0,n) {comp[arr2[i].se] = i; arr3[i] = arr2[i].f;}
| ^~~~
| arr
towers.cpp:72:14: error: ‘arr3’ was not declared in this scope; did you mean ‘arr’?
72 | int l = ub(arr3, arr3+n, arr[i]-d)-arr3;
| ^~~~
| arr
towers.cpp:79:13: error: ‘comp’ was not declared in this scope
79 | root->upd(comp[i],dp[i].f,i);
| ^~~~