Problem reverse
User lucaleeeeee
Submission Time 2026-05-16 16:05:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reverse.cpp: In function ‘int main()’:
reverse.cpp:15:37: error: expected ‘;’ before ‘for’
15 | reverse(array.begin(), array.end())
| ^
| ;
16 | for (int x = 0; x < n; x++) {
| ~~~
reverse.cpp:16:18: error: ‘x’ was not declared in this scope
16 | for (int x = 0; x < n; x++) {
| ^