QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#803777 | #9868. GCD | ucup-team3932# | Compile Error | / | / | C++20 | 957b | 2024-12-07 18:30:12 | 2024-12-07 18:30:12 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void solve()’: answer.code:28:20: error: no matching function for call to ‘__gcd(int&, i64)’ 28 | int g = __gcd(a, B - r); | ~~~~~^~~~~~~~~~ In file included from /usr/include/c++/13/algorithm:61, from answer.code:6: /usr/include/c++/13/bits/stl_algo.h:1185:5: note: candidate: ‘template<class _EuclideanRingElement> constexpr _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)’ 1185 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) | ^~~~~ /usr/include/c++/13/bits/stl_algo.h:1185:5: note: template argument deduction/substitution failed: answer.code:28:20: note: deduced conflicting types for parameter ‘_EuclideanRingElement’ (‘int’ and ‘long int’) 28 | int g = __gcd(a, B - r); | ~~~~~^~~~~~~~~~