# 2번째 컴파일 단계
Bob.cpp: In function 'long long int Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:37:46: error: no matching function for call to '__gcd(__int128&, long long int)'
37 | if(mod>1e18/(1LL*edge.second-1)*__gcd(mod,1LL*edge.second-1))
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from Bob.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:1199:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
1199 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
| ^~~~~
/usr/include/c++/11/bits/stl_algo.h:1199:5: note: template argument deduction/substitution failed:
Bob.cpp:37:46: note: deduced conflicting types for parameter '_EuclideanRingElement' ('__int128' and 'long long int')
37 | if(mod>1e18/(1LL*edge.second-1)*__gcd(mod,1LL*edge.second-1))
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Bob.cpp:39:22: error: no matching function for call to '__gcd(__int128&, long long int)'
39 | mod=mod/__gcd(mod,1LL*edge.second-1)*(edge.second-1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from Bob.cpp:1:
/usr/include/c++/11/bits/stl_algo.h:1199:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
1199 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
| ^~~~~
/usr/include/c++/11/bits/stl_algo.h:1199:5: note: template argument deduction/substitution failed:
Bob.cpp:39:22: note: deduced conflicting types for parameter '_EuclideanRingElement' ('__int128' and 'long long int')
39 | mod=mod/__gcd(mod,1LL*edge.second-1)*(edge.second-1);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~