Problem game_ioi13
User alkalikean
Submission Time 2025-03-04 20:21:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

game_ioi13.cpp: In function ‘ll gcd(ll, ll)’:
game_ioi13.cpp:5:39: error: ‘swap’ was not declared in this scope
5 | ll gcd(ll a, ll b){ while(b){ a %= b; swap(a,b); } return a; }
| ^~~~
game_ioi13.cpp:5:39: note: suggested alternatives:
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from game_ioi13.cpp:1:
/usr/include/c++/9/bits/regex.h:2029:5: note: ‘std::__cxx11::swap’
2029 | swap(match_results<_Bi_iter, _Alloc>& __lhs,
| ^~~~
In file included from /usr/include/c++/9/bits/stl_pair.h:59,
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 game_ioi13.cp