Problem | towers |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-28 11:54:14 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
towers.cpp: In function ‘int32_t main()’:
towers.cpp:61:14: error: invalid conversion from ‘long long int*’ to ‘long long int’ [-fpermissive]
61 | int fvect = vect;
| ^~~~
| |
| long long int*
towers.cpp:66:36: error: invalid types ‘long long int[long long int]’ for array subscript
66 | for(int i=0; i<n; ++i)idx2[fvect[i]] = i;
| ^
towers.cpp:70:31: error: invalid types ‘long long int[int]’ for array subscript
70 | update(0, 0, n-1, idx[fvect[0]], 1);
| ^
towers.cpp:72:45: error: invalid types ‘long long int[long long int]’ for array subscript
72 | int i1 = upper_bound(vect, vect+n, fvect[i]-d)-1-vect;
| ^
towers.cpp:73:45: error: invalid types ‘long long int[long long int]’ for array subscript
73 | int i2 = lower_bound(vect, vect+n,