Problem | arrayproblem |
---|---|
User | polyda |
Submission Time | 2024-06-30 18:45:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
arrayproblem.cpp: In function ‘int main()’:
arrayproblem.cpp:7:19: error: template argument 1 is invalid
7 | vector<long logn> a(n-1);
| ^
arrayproblem.cpp:7:19: error: template argument 2 is invalid
arrayproblem.cpp:16:8: error: invalid types ‘int[int]’ for array subscript
16 | a[i]=rs;
| ^
arrayproblem.cpp:18:10: error: request for member ‘rbegin’ in ‘a’, which is of non-class type ‘int’
18 | sort(a.rbegin(),a.rend());
| ^~~~~~
arrayproblem.cpp:18:21: error: request for member ‘rend’ in ‘a’, which is of non-class type ‘int’
18 | sort(a.rbegin(),a.rend());
| ^~~~
arrayproblem.cpp:20:13: error: invalid types ‘int[int]’ for array subscript
20 | ans+=a[i];
| ^