Borderou de evaluare (job #777493)

Utilizator avatar TeodorV TeodorV TeodorV IP ascuns
Problemă Flota Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 13 mai 2024 21:15:20 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 507 kb OK 10
2 9 ms 249 kb OK 10
3 1 ms 245 kb OK 10
4 569 ms 2863 kb OK 10
5 129 ms 774 kb OK 10
6 409 ms 2080 kb OK 10
7 729 ms 3350 kb OK 10
8 1238 ms 5623 kb OK 10
9 1502 ms 6156 kb Time limit exceeded 0
10 1508 ms 7327 kb Time limit exceeded 0
Punctaj total 80