Borderou de evaluare (job #615007)

Utilizator avatar DajaMihai mihai daja DajaMihai IP ascuns
Problemă Macheta (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 8 nov. 2021 19:54:49 Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:21:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] 21 | fscanf( fin, "%d%d%d%d%d", &x[i], &yCoord, &y[i], &ly, &height[i] ); | ~^ ~~~~~ | | | | int* short int* | %hd main.cpp:21:24: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'short int*' [-Wformat=] 21 | fscanf( fin, "%d%d%d%d%d", &x[i], &yCoord, &y[i], &ly, &height[i] ); | ~^ ~~~~~ | | | | int* short int* | %hd main.cpp:21:28: warning: format '%d' expects argument of type 'int*', but argument 7 has type 'short int*' [-Wformat=] 21 | fscanf( fin, "%d%d%d%d%d", &x[i], &yCoord, &y[i], &ly, &height[i] ); | ~^ ~~~~~~~~~~ | | | | int* short int* | %hd main.cpp:18:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf( fin, "%d", &n ); | ~~~~~~^~~~~~~~~~~~~~~~~ main.cpp:21:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf( fin, "%d%d%d%d%d", &x[i], &yCoord, &y[i], &ly, &height[i] ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 131 kb OK 10
2 1 ms 131 kb OK 10
3 1 ms 131 kb OK 10
4 1 ms 131 kb OK 10
5 1 ms 131 kb OK 10
6 1 ms 131 kb OK 10
7 1 ms 131 kb OK 10
8 1 ms 131 kb OK 10
9 1 ms 131 kb OK 10
10 1 ms 131 kb OK 10
Punctaj total 100