Borderou de evaluare (job #1440734)

Utilizator UAIC_Onesim_Popoiu_TucarUAIC-Tucar-Onesim UAIC_Onesim_Popoiu_Tucar Data 23 mai 2015 13:57:44
Problema Largest Root Status done
Runda ACM-ICPC Faza Nationala 2015-2016 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:180:11: error: reference to ‘greater’ is ambiguous if (greater(rez, coeff[i]) > 0) { ^ user.cpp:117:5: note: candidates are: int greater(int*, int*) int greater(BIG a, BIG b) { ^ In file included from /usr/include/c++/4.8/string:48:0, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:3: /usr/include/c++/4.8/bits/stl_function.h:222:12: note: template<class _Tp> struct std::greater struct greater : public binary_function<_Tp, _Tp, bool> ^ user.cpp:189:11: error: reference to ‘greater’ is ambiguous if (greater(rez, coeff[i]) > 0) { ^ user.cpp:117:5: note: candidates are: int greater(int*, int*) int greater(BIG a, BIG b) { ^ In file included from /usr/include/c++/4.8/string:48:0, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:3: /usr/include/c++/4.8/bits/stl_function.h:222:12: note: template<class _Tp> struct std::greater struct greater : public binary_function<_Tp, _Tp, bool> ^ user.cpp:134:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("largestroot.in", "r", stdin); ^ user.cpp:135:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("largestroot.out", "w", stdout); ^ user.cpp:147:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:150:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:153:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", line); ^

Ceva nu functioneaza?