Problem | prisoners |
---|---|
User | SB |
Submission Time | 2024-10-08 18:24:54 |
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:2: error: ‘set’ was not declared in this scope
4 | set<int> S;
| ^~~
swapper.cpp:4:6: error: expected primary-expression before ‘int’
4 | set<int> S;
| ^~~
swapper.cpp:6:3: error: ‘S’ was not declared in this scope
6 | S.insert(i);
| ^
swapper.cpp:8:2: error: ‘vector’ was not declared in this scope
8 | vector<vector<int>>v;
| ^~~~~~
swapper.cpp:8:16: error: expected primary-expression before ‘int’
8 | vector<vector<int>>v;
| ^~~
swapper.cpp:10:9: error: ‘S’ was not declared in this scope
10 | while (S.size() > 0) {
| ^
swapper.cpp:11:10: error: expected primary-expression before ‘int’
11 | vector<int> J;
| ^~~
swapper.cpp:13:3: error: ‘J’ was not declared in this scope
13 | J.push_back(s)