Borderou de evaluare (job #725322)

Utilizator vendettaSalajan Razvan vendetta Data 26 martie 2012 20:31:31
Problema Shift Status done
Runda Infoarena Monthly 2012 - Runda 3 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:27: warning: array subscript has type ‘char’ user.cpp:28: warning: array subscript has type ‘char’ user.cpp:35: warning: array subscript has type ‘char’ user.cpp:36: warning: array subscript has type ‘char’ user.cpp:46: warning: array subscript has type ‘char’ user.cpp:46: warning: array subscript has type ‘char’ user.cpp:46: error: call of overloaded ‘abs(int)’ is ambiguous /usr/include/c++/4.4/cmath:94: note: candidates are: double std::abs(double) /usr/include/c++/4.4/cmath:98: note: float std::abs(float) /usr/include/c++/4.4/cmath:102: note: long double std::abs(long double) user.cpp:47: warning: array subscript has type ‘char’ user.cpp:47: warning: array subscript has type ‘char’ user.cpp:47: error: call of overloaded ‘abs(int)’ is ambiguous /usr/include/c++/4.4/cmath:94: note: candidates are: double std::abs(double) /usr/include/c++/4.4/cmath:98: note: float std::abs(float) /usr/include/c++/4.4/cmath:102: note: long double std::abs(long double) user.cpp:50: warning: array subscript has type ‘char’ user.cpp:53: warning: array subscript has type ‘char’ user.cpp:44: warning: unused variable ‘x’ user.cpp:44: warning: unused variable ‘y’ user.cpp:20: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:21: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result user.cpp:23: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result user.cpp:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result user.cpp:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result

Ceva nu functioneaza?