Borderou de evaluare (job #519739)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Kds (Lot Juniori) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 20 ian. 2020 15:38:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:15: error: 'int nice [10002]' redeclared as different kind of symbol
/usr/include/unistd.h:599:12: error: previous declaration of 'int nice(int)'
user.cpp: In function 'int rez(int, int, int)':
user.cpp:15:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:15:17: error: assignment of read-only location '*(nice + ((unsigned int)i))'
user.cpp:15:17: error: cannot convert 'int' to 'int(int)throw ()' in assignment
user.cpp:19:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:19:31: error: invalid conversion from 'int (*)(int)throw ()' to 'int' [-fpermissive]
user.cpp:19:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:19:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:19:44: error: invalid conversion from 'int (*)(int)throw ()' to 'int' [-fpermissive]
user.cpp:21:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:21:21: error: invalid conversion from 'int (*)(int)throw ()' to 'int' [-fpermissive]
user.cpp:22:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:22:21: error: assignment of read-only location '*(nice + ((unsigned int)i))'
user.cpp:22:21: error: cannot convert 'int' to 'int(int)throw ()' in assignment
user.cpp:25:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:25:20: error: invalid conversion from 'int (*)(int)throw ()' to 'int' [-fpermissive]