Didžiausias bendras daliklis
- [1] 2026-03-14 12:56 (90)
- [2] 2026-03-14 13:09 (0)
- [3] 2026-03-14 13:10 (0)
- [4] 2026-03-14 13:11 (0)
- [5] 2026-03-14 13:12 (100)
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. | result | time | message |
|---|
