Problem | swords |
---|---|
User | PlayVoltz |
Submission Time | 2023-07-26 22:36:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:24:22: error: template argument 1 is invalid
24 | set <pair<int, int> vset;
| ^~~~
swords.cpp:24:22: error: template argument 2 is invalid
swords.cpp:24:22: error: template argument 3 is invalid
swords.cpp:30:2: error: ‘vset’ was not declared in this scope
30 | vset.insert(vect[0]);
| ^~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:71,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from swords.cpp:1:
/usr/include/c++/9/bits/predefined_ops.h: In instantiation of ‘constexpr bool __gnu_cxx::__ops::_Iter_comp_iter<_Compare>::operator()(_Iterator1, _Iterator2) [with _Iterator1 = __gnu_cxx::__normal_iterator<std::pair<int, int>*, std::vector<std::pair<int, i