Borderou de evaluare (job #3143751)

Utilizator matwudemagogul matwu Data 1 august 2023 23:08:58
Problema Suman 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:24:37: error: no matching function for call to '__gcd(long unsigned int&, long long int)' 24 | int pltr = __gcd(val, 1LL * v[i]); | ~~~~~^~~~~~~~~~~~~~~~~ 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:24:37: note: deduced conflicting types for parameter '_EuclideanRingElement' ('long unsigned int' and 'long long int') 24 | int pltr = __gcd(val, 1LL * v[i]); | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp:29:16: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 29 | if(val <= n){ | ~~~~^~~~ Non zero exit status: 1

Ceva nu functioneaza?