Borderou de evaluare (job #3274499)
Utilizator | Data | 6 februarie 2025 22:24:38 | |
---|---|---|---|
Problema | Euclid | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve(int)':
main.cpp:23:31: error: no matching function for call to '__gcd(long long int&, int&)'
23 | gcd1=__gcd(gcd1,v[l][c]);
| ~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/algorithm:61,
from main.cpp:2:
/usr/include/c++/12.2.1/bits/stl_algo.h:1182:5: note: candidate: 'template<class _EuclideanRingElement> constexpr _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
1182 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
| ^~~~~
/usr/include/c++/12.2.1/bits/stl_algo.h:1182:5: note: template argument deduction/substitution failed:
main.cpp:23:31: note: deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'int')
23 | gcd1=__gcd(gcd1,v[l][c]);
| ~~~~~^~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !