Problem | prisoners |
---|---|
User | SB |
Submission Time | 2024-11-13 15:41:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swapper.cpp: In function ‘void swapper(int, int*)’:
swapper.cpp:5:2: error: ‘set’ was not declared in this scope
5 | set<int> S;
| ^~~
swapper.cpp:5:2: note: suggested alternatives:
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from swapper.cpp:2:
/usr/include/c++/9/bits/stl_set.h:94:11: note: ‘std::set’
94 | class set
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from swapper.cpp:2:
/usr/include/c++/9/set:82:13: note: ‘std::pmr::set’
82 | using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
| ^~~
swapper.cpp:5:6: error: expected primary-expression before ‘int’
5 | set<int> S;
| ^~~
swapper.cpp:7:3: error: ‘S’ was not declared in this scope
7 | S.insert(i);