Borderou de evaluare (job #2785163)
Utilizator | Data | 18 octombrie 2021 08:40:56 | |
---|---|---|---|
Problema | Permutari II | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:20:35: error: no matching function for call to '__gcd(short int&, int&)'
20 | c=c*(x[i]/__gcd(x[i],c));
| ^
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:1219:5: note: candidate: 'template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)'
1219 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
| ^~~~~
/usr/include/c++/10/bits/stl_algo.h:1219:5: note: template argument deduction/substitution failed:
main.cpp:20:35: note: deduced conflicting types for parameter '_EuclideanRingElement' ('short int' and 'int')
20 | c=c*(x[i]/__gcd(x[i],c));
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !