Problem | flipcards |
---|---|
User | pengzhehan62 |
Submission Time | 2023-12-02 17:52:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flipcards.cpp: In function ‘int main()’:
flipcards.cpp:26:26: error: no matching function for call to ‘std::pair<long long int, long long int>::swap()’
26 | e.first.swap();
| ^
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 flipcards.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:424:7: note: candidate: ‘void std::pair<_T1, _T2>::swap(std::pair<_T1, _T2>&) [with _T1 = long long int; _T2 = long long int]’
424 | swap(pair& __p)
| ^~~~
/usr/include/c++/9/bits/stl_pair.h:424:7: note: candidate expects 1 argument, 0 provided