Problem swords
User PlayVoltz
Submission Time 2023-07-26 22:35:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:27:29: error: no matching function for call to ‘make_pair(int&)’
27 | vect.push_back(make_pair(a));
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
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/stl_pair.h:524:5: note: candidate: ‘template<class _T1, class _T2> constexpr std::pair<typename std::__decay_and_strip<_Tp>::__type, typename std::__decay_and_strip<_T2>::__type> std