Borderou de evaluare (job #3040104)
Utilizator | Data | 29 martie 2023 12:32:32 | |
---|---|---|---|
Problema | TreeGCD | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(long long int, long long int)':
main.cpp:33:29: error: no matching function for call to '__gcd(int&, long long int&)'
33 | if(__gcd(i,j)>1)
| ~~~~~^~~~~
In file included from /usr/include/c++/12.2.1/algorithm:61,
from main.cpp:4:
/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:33:29: note: deduced conflicting types for parameter '_EuclideanRingElement' ('int' and 'long long int')
33 | if(__gcd(i,j)>1)
| ~~~~~^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !