Borderou de evaluare (job #3156641)

Utilizator Alex_BerbescuBerbescu Alexandru Alex_Berbescu Data 11 octombrie 2023 23:16:40
Problema GFact Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int32_t main(int, char**)': main.cpp:50:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] main.cpp:52:24: error: call of overloaded 'legendre(long long int&, int&)' is ambiguous In file included from /usr/include/c++/12.2.1/cmath:1935, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41, from main.cpp:4: /usr/include/c++/12.2.1/bits/specfun.h:1007:5: note: candidate: 'typename __gnu_cxx::__promote<_Tp, std::__is_integer<_Tp>::__value>::__type std::legendre(unsigned int, _Tp) [with _Tp = int; typename __gnu_cxx::__promote<_Tp, __is_integer<_Tp>::__value>::__type = double]' 1007 | legendre(unsigned int __l, _Tp __x) | ^~~~~~~~ main.cpp:10:4: note: candidate: 'long long int legendre(long long int, long long int)' Non zero exit status: 1

Ceva nu functioneaza?