Problem | prisoners |
---|---|
User | YSH2020 |
Submission Time | 2024-10-08 14:54:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapper.cpp: In function ‘void swapper(int, int*)’:
swapper.cpp:4:14: error: unable to find numeric literal operator ‘operator""N’
4 | int visited[2N];
| ^~
swapper.cpp:5:22: error: unable to find numeric literal operator ‘operator""N’
5 | for (int i = 0; i < 2N; i++) visited[i] = 0;
| ^~
swapper.cpp:5:31: error: ‘visited’ was not declared in this scope
5 | for (int i = 0; i < 2N; i++) visited[i] = 0;
| ^~~~~~~
swapper.cpp:6:22: error: unable to find numeric literal operator ‘operator""N’
6 | for (int i = 0; i < 2N; i++) {
| ^~
swapper.cpp:7:7: error: ‘visited’ was not declared in this scope
7 | if (visited[i] == 0) {
| ^~~~~~~