Borderou de evaluare (job #721266)

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:14:04 Scor 70

Raport evaluator

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