Borderou de evaluare (job #271750)

Utilizator avatar gruhten Gruhten Zinnenberg gruhten IP ascuns
Problemă Zigzag (clasa a 7-a) Compilator cpp
Rundă ONI (clasa a 7-a) Status evaluat
Dată 26 ian. 2017 11:22:07 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:14: error: ‘int rand [5002]’ redeclared as different kind of symbol /usr/include/stdlib.h:380:12: error: previous declaration of ‘int rand()’ user.cpp: In function ‘int main()’: user.cpp:24:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:24:20: error: assignment of read-only location ‘*(rand + 1u)’ user.cpp:24:20: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment user.cpp:27:11: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:27:43: error: assignment of read-only location ‘*(rand + ((unsigned int)i))’ user.cpp:27:43: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment user.cpp:29:7: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:29:21: error: assignment of read-only location ‘*(rand + ((unsigned int)k))’ user.cpp:29:21: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment user.cpp:37:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:37:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:52:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:52:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:72:18: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:72:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] user.cpp:10:31: warning: unused variable ‘pas’ [-Wunused-variable]