Submission #66498
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:19:16: error: call of overloaded ‘gcd(long long int&, long long int&)’ is ambiguous
if(gcd(k, a) == 1) {
^
./Main.cpp:8:38: note: candidate: ‘A gcd(A, B) [with A = long long int; B = long long int]’
template <class A, class B> inline A gcd(A a, B b) { if (a%b == 0) {return (b);} return (gcd(b, a%b)); }
^~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:84,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/numeric:132:5: note: candidate: ‘constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn) [with _Mn = long long int; _Nn = long long int; std::common_type_t<_Mn, _Nn> = long long int]’
gcd(_Mn __m, _Nn __n)
^~~
セット
テストケース