QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#721557 | #9167. Coprime Array | ZhangYiDe | Compile Error | / | / | C++11 | 574b | 2024-11-07 16:23:18 | 2024-11-07 16:23:19 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:16:53: error: no matching function for call to ‘__gcd(int, long long int&)’ 16 | else if(__gcd(s - 4,x) == 1 && __gcd(3,x) == 1)cout << "1 3 " << s - 4; | ~~~~~^~~~~ In file included from /usr/include/c++/13/algorithm:61, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51, from answer.code:1: /usr/include/c++/13/bits/stl_algo.h:1185:5: note: candidate: ‘template<class _EuclideanRingElement> _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:16:53: note: deduced conflicting types for parameter ‘_EuclideanRingElement’ (‘int’ and ‘long long int’) 16 | else if(__gcd(s - 4,x) == 1 && __gcd(3,x) == 1)cout << "1 3 " << s - 4; | ~~~~~^~~~~