Borderou de evaluare (job #721267)

Utilizator avatar Bogdan8765ew Bogdan Nicolaev Bogdan8765ew IP ascuns
Problemă Zapada (clasele 11 și 12) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 24 mai 2023 11:15:24 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void rezolva()': main.cpp:171:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=] 171 | scanf("%d %d %d", &Arb[i].x, &Arb[i].y, &Arb[i].c); | ~^ ~~~~~~~~~ | | | | int* short int* | %hd main.cpp:171:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] 171 | scanf("%d %d %d", &Arb[i].x, &Arb[i].y, &Arb[i].c); | ~^ ~~~~~~~~~ | | | | int* short int* | %hd main.cpp:182:22: warning: unused variable 'x' [-Wunused-variable] 182 | int a, b, c, x; | ^ main.cpp:165:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 165 | freopen("zapada.in", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:166:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 166 | freopen("zapada.out", "w", stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:168:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 168 | scanf("%d %d %d", &N, &M, &K); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:171:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 171 | scanf("%d %d %d", &Arb[i].x, &Arb[i].y, &Arb[i].c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:184:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 184 | scanf("%d %d %d", &a, &b, &c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 1 ms 245 kb OK 10
3 1 ms 249 kb OK 10
4 1 ms 249 kb OK 10
5 139 ms 1298 kb OK 10
6 29 ms 507 kb OK 10
7 89 ms 503 kb OK 10
8 259 ms 1290 kb OK 10
9 469 ms 1814 kb OK 10
10 485 ms 1814 kb OK 10
Punctaj total 100