Problem gcd
User TheFelixKS
Submission Time 2024-03-10 09:08:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:8:15: error: ‘__gcd’ was not declared in this scope; did you mean ‘std::__gcd’?
8 | printf("%i", __gcd(a, b));
| ^~~~~
| std::__gcd
In file included from /usr/include/c++/9/algorithm:62,
from gcd.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:1238:5: note: ‘std::__gcd’ declared here
1238 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
| ^~~~~