Problem | towers |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-28 11:53:49 |
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:62:12: error: request for member ‘begin’ in ‘vect’, which is of non-class type ‘long long int [100000]’
62 | sort(vect.begin(), vect.end());
| ^~~~~
towers.cpp:62:26: error: request for member ‘end’ in ‘vect’, which is of non-class type ‘long long int [100000]’
62 | sort(vect.begin(), vect.end());
| ^~~
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);
|