Borderou de evaluare (job #246429)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | V (clasa a 7-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 6 sept. 2016 19:58:54 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:9: error: ‘int rand’ 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:26:22: error: assignment of function ‘int rand()’
user.cpp:26:22: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:31:37: error: invalid types ‘short int [1501][1501][int()throw ()]’ for array subscript
user.cpp:32:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:34:29: error: ISO C++ forbids decrementing a pointer of type ‘int (*)()throw ()’ [-fpermissive]
user.cpp:34:29: error: lvalue required as decrement operand
user.cpp:39:29: error: ISO C++ forbids incrementing a pointer of type ‘int (*)()throw ()’ [-fpermissive]
user.cpp:39:29: error: lvalue required as increment operand