Problem prisoners
User nmluan
Submission Time 2026-04-27 11:46:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swapper.cpp: In function ‘void swapper(long long int, long long int*)’:
swapper.cpp:32:4: error: ‘swapKeys’ was not declared in this scope
32 | swapKeys(c[i][0],c[i][1]);
| ^~~~~~~~
prisoner.cpp: In function ‘void prisoner(long long int, long long int)’:
prisoner.cpp:8:10: error: ‘openBox’ was not declared in this scope
8 | int k = openBox(id), c = 1;
| ^~~~~~~
prisoner.cpp:10:3: error: ‘c’ was not declared in this scope
10 | c++;
| ^
prisoner.cpp:13:9: error: ‘c’ was not declared in this scope
13 | while (c < N){
| ^