Borderou de evaluare (job #777494)

Utilizator avatar TeodorV TeodorV TeodorV IP ascuns
Problemă Flota Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 mai 2024 21:16:24 Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:142:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'usi*' {aka 'short unsigned int*'} [-Wformat=] 142 | fscanf(input, "%d%d%d", &n, &m, &k); | ~^ ~~ | | | | int* usi* {aka short unsigned int*} | %hd main.cpp:145:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'usi*' {aka 'short unsigned int*'} [-Wformat=] 145 | fscanf(input, "%d%d%d", &edges[i].x, &edges[i].y, &edges[i].w); | ~^ ~~~~~~~~~~~ | | | | int* usi* {aka short unsigned int*} | %hd main.cpp:145:27: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'usi*' {aka 'short unsigned int*'} [-Wformat=] 145 | fscanf(input, "%d%d%d", &edges[i].x, &edges[i].y, &edges[i].w); | ~^ ~~~~~~~~~~~ | | | | int* usi* {aka short unsigned int*} | %hd main.cpp:145:29: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'usi*' {aka 'short unsigned int*'} [-Wformat=] 145 | fscanf(input, "%d%d%d", &edges[i].x, &edges[i].y, &edges[i].w); | ~^ ~~~~~~~~~~~ | | | | int* usi* {aka short unsigned int*} | %hd main.cpp:153:25: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'usi*' {aka 'short unsigned int*'} [-Wformat=] 153 | fscanf(input, "%d", &rez[q].L); | ~^ ~~~~~~~~~ | | | | | usi* {aka short unsigned int*} | int* | %hd main.cpp:150:9: warning: unused variable 'l' [-Wunused-variable] 150 | usi l; | ^ main.cpp:142:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 142 | fscanf(input, "%d%d%d", &n, &m, &k); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:145:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 145 | fscanf(input, "%d%d%d", &edges[i].x, &edges[i].y, &edges[i].w); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:153:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 153 | fscanf(input, "%d", &rez[q].L); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 10
2 9 ms 249 kb OK 10
3 1 ms 266 kb OK 10
4 534 ms 3002 kb OK 10
5 139 ms 770 kb OK 10
6 409 ms 2084 kb OK 10
7 745 ms 3399 kb OK 10
8 1180 ms 5779 kb OK 10
9 1509 ms 7024 kb Time limit exceeded 0
10 1508 ms 7061 kb Time limit exceeded 0
Punctaj total 80