Borderou de evaluare (job #585429)

Utilizator avatar cyg_bserban Bantas Nyesul Batran cyg_bserban IP ascuns
Problemă Flota Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 10 mar. 2021 20:06:40 Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:35:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short unsigned int*' [-Wformat=] 35 | scanf("%d%d%d",&v[i].x,&v[i].y,&v[i].cost); | ~^ ~~~~~~~ | | | | int* short unsigned int* | %hd main.cpp:35:19: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short unsigned int*' [-Wformat=] 35 | scanf("%d%d%d",&v[i].x,&v[i].y,&v[i].cost); | ~^ ~~~~~~~ | | | | int* short unsigned int* | %hd main.cpp:35:21: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'short unsigned int*' [-Wformat=] 35 | scanf("%d%d%d",&v[i].x,&v[i].y,&v[i].cost); | ~^ ~~~~~~~~~~ | | | | int* short unsigned int* | %hd main.cpp:41:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short unsigned int*' [-Wformat=] 41 | scanf("%d",&p[i].x); | ~^ ~~~~~~~ | | | | | short unsigned int* | int* | %hd main.cpp:30:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 30 | freopen("flota.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp:31:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] 31 | freopen("flota.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:33:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 33 | scanf("%d%d%d",&n,&m,&q); | ~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:35:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 35 | scanf("%d%d%d",&v[i].x,&v[i].y,&v[i].cost); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:41:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] 41 | scanf("%d",&p[i].x); | ~~~~~^~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 262 kb Incorect 0
2 8 ms 393 kb Incorect 0
3 1 ms 262 kb Incorect 0
4 625 ms 3010 kb Incorect 0
5 268 ms 913 kb Incorect 0
6 1500 ms 2228 kb Time limit exceeded 0
7 1504 ms 3534 kb Time limit exceeded 0
8 1502 ms 5758 kb Time limit exceeded 0
9 1506 ms 6811 kb Time limit exceeded 0
10 1503 ms 6680 kb Time limit exceeded 0
Punctaj total 0