Problem reverse
User notachicken
Submission Time 2026-05-18 16:11:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reverse.cpp: In lambda function:
reverse.cpp:10:2: error: expected ‘{’ before ‘for’
10 | for (int i = 0; i < N; i++){
| ^~~
reverse.cpp: In function ‘int main()’:
reverse.cpp:8:25: error: expected ‘;’ before ‘for’
8 | vector<long long> A; []
| ^
| ;
9 |
10 | for (int i = 0; i < N; i++){
| ~~~
reverse.cpp:10:18: error: ‘i’ was not declared in this scope
10 | for (int i = 0; i < N; i++){
| ^
reverse.cpp:15:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
15 | cout << A;
| ~~~~ ^~ ~
| | |
| | std::vector<long long int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istre