Problem exponentiate
User YEethui
Submission Time 2023-10-13 12:38:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate.cpp: In function ‘int main()’:
exponentiate.cpp:25:28: error: ‘__gcd’ was not declared in this scope; did you mean ‘std::__detail::__gcd’?
25 | unsigned int gcd = __gcd(a, m);
| ^~~~~
| std::__detail::__gcd
In file included from exponentiate.cpp:2:
/usr/include/c++/9/numeric:103:5: note: ‘std::__detail::__gcd’ declared here
103 | __gcd(_Tp __m, _Tp __n)
| ^~~~~