Borderou de evaluare (job #562824)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Xy (clasa a 6-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 16 aug. 2020 16:03:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:46: 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:83: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:26:83: error: invalid conversion from ‘int (*)()throw ()’ to ‘char’ [-fpermissive]
user.cpp:28:56: error: invalid types ‘int [2][4][int()throw ()]’ for array subscript
user.cpp:29:56: error: invalid types ‘int [2][4][int()throw ()]’ for array subscript
user.cpp:30:85: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:30:85: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:34:19: error: invalid operands of types ‘int’ and ‘int()throw ()’ to binary ‘operator-’