Borderou de evaluare (job #352034)

Utilizator avatar vladisimo vlad coneschi vladisimo IP ascuns
Problemă Triunghiuri2 (clasa a 8-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 13 feb. 2018 12:34:54 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:22: error: ‘int abs [1001]’ redeclared as different kind of symbol /usr/include/stdlib.h:771:12: error: previous declaration of ‘int abs(int)’ user.cpp: In function ‘int main()’: user.cpp:24:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:24:13: error: ISO C++ forbids incrementing a pointer of type ‘int (*)(int)throw ()’ [-fpermissive] user.cpp:24:13: error: lvalue required as increment operand user.cpp:28:32: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:28:33: error: no matching function for call to ‘max(int&, int (&)(int)throw ())’ user.cpp:28:33: note: candidates are: /usr/include/c++/4.6/bits/stl_algobase.h:210:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&) /usr/include/c++/4.6/bits/stl_algobase.h:254:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare) user.cpp:34:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:34:18: error: ISO C++ forbids incrementing a pointer of type ‘int (*)(int)throw ()’ [-fpermissive] user.cpp:34:18: error: lvalue required as increment operand user.cpp:44:26: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:44:30: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:44:51: error: invalid operands of types ‘int (*)(int)throw ()’ and ‘int’ to binary ‘operator*’