Borderou de evaluare (job #398537)

Utilizator avatar rares404 AlShaytan - Balasescu Rares rares404 IP ascuns
Problemă Joc5 (clasa a 10-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 30 oct. 2018 19:29:47 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:11: error: ‘int div [2000]’ redeclared as different kind of symbol /usr/include/stdlib.h:785:14: error: previous declaration of ‘div_t div(int, int)’ user.cpp: In function ‘void sieve()’: user.cpp:16:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:16:24: error: ISO C++ forbids incrementing a pointer of type ‘div_t (*)(int, int)throw ()’ [-fpermissive] user.cpp:16:24: error: lvalue required as increment operand user.cpp: In function ‘int main()’: user.cpp:38:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:38:23: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:38:28: error: invalid operands of types ‘div_t (*)(int, int)throw ()’ and ‘int’ to binary ‘operator%’ user.cpp:31:21: warning: unused variable ‘j’ [-Wunused-variable]