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