Borderou de evaluare (job #2534793)
Utilizator | Data | 30 ianuarie 2020 22:30:47 | |
---|---|---|---|
Problema | Kdrum | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void Lee()':
main.cpp:50:31: error: no matching function for call to '__gcd(long long int, int64_t&)'
newg = __gcd(1LL * k, newg);
^
In file included from /usr/include/c++/6/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algo.h:1229:5: note: candidate: template<class _EuclideanRingElement> _EuclideanRingElement std::__gcd(_EuclideanRingElement, _EuclideanRingElement)
__gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
^~~~~
/usr/include/c++/6/bits/stl_algo.h:1229:5: note: template argument deduction/substitution failed:
main.cpp:50:31: note: deduced conflicting types for parameter '_EuclideanRingElement' ('long long int' and 'long int')
newg = __gcd(1LL * k, newg);
^
main.cpp:54:27: warning: narrowing conversion of 'newg' from 'int64_t {aka long int}' to 'int' inside { } [-Wnarrowing]
Q.push({iv, jv, newg});
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !