Borderou de evaluare (job #752309)

Utilizator avatar davidgeo123 David Georgescu davidgeo123 IP ascuns
Problemă Kdiv (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 dec. 2023 22:44:49 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void make_ciur()': main.cpp:9:25: error: 'MAXN' was not declared in this scope 9 | for(short i=2; i*i<=MAXN; i++) | ^~~~ main.cpp: In function 'int main()': main.cpp:16:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | freopen("kdiv.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:17:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | freopen("kdiv.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~