| Problem | reverse |
|---|---|
| User | Sheb |
| Submission Time | 2025-12-05 13:22:04 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
reverse.cpp: In function ‘int main()’:
reverse.cpp:8:14: error: invalid types ‘int[int]’ for array subscript
8 | cin >> A[i];
| ^
reverse.cpp:12:14: error: invalid types ‘int[int]’ for array subscript
12 | cout << A[i];
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from reverse.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘void std::reverse(_BIter, _BIter) [with _BIter = int]’:
reverse.cpp:10:18: required from here
/usr/include/c++/9/bits/stl_algo.h:1192:63: error: no matching function for call to ‘__iterator_category(int&)’
1192 | std::__reverse(__first, __last, std::__iterator_category(__first));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:65,