Didžiausias bendras daliklis

Taškai: 0

Compile: FAIL

dbd.cpp: In function ‘int main()’: dbd.cpp:16:20: error: no matching function for call to ‘__gcd(int&, long long int&)’ 16 | DBD = __gcd(DBD, A[i]); | ~~~~~^~~~~~~~~~~ In file included from /usr/include/c++/11/algorithm:62, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from dbd.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: dbd.cpp:16:20: note: deduced conflicting types for parameter ‘_EuclideanRingElement’ (‘int’ and ‘long long int’) 16 | DBD = __gcd(DBD, A[i]); | ~~~~~^~~~~~~~~~~ dbd.cpp:24:29: error: no matching function for call to ‘__gcd(int&, long long int&)’ 24 | DBD2 = __gcd(DBD2, A[j]); | ~~~~~^~~~~~~~~~~~ In file included from /usr/include/c++/11/algorithm:62, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65, from dbd.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: dbd.cpp:24:29: note: deduced conflicting types for parameter ‘_EuclideanRingElement’ (‘int’ and ‘long long int’) 24 | DBD2 = __gcd(DBD2, A[j]); | ~~~~~^~~~~~~~~~~~

nr.resulttimemessage