Borderou de evaluare (job #3186678)
Utilizator | Data | 24 decembrie 2023 15:17:16 | |
---|---|---|---|
Problema | Oz | 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:26:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(int j = 1; j < v[i].size(); j++){
| ~~^~~~~~~~~~~~~
main.cpp:27:38: error: no matching function for call to '__gcd(__int128&, __gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type&)'
27 | lcm = (lcm*v[i][j])/__gcd(lcm, v[i][j]);
| ~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/algorithm:61,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:65,
from main.cpp:1:
/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:27:38: note: deduced conflicting types for parameter '_EuclideanRingElement' ('__int128' and 'long long int')
27 | lcm = (lcm*v[i][j])/__gcd(lcm, v[i][j]);
| ~~~~~^~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !