Borderou de evaluare (job #2017700)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 2 septembrie 2017 01:48:03
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:46:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(IN,"%d%d",&delay[i],&cost[i]),blocked[i][i]=1; ^ user.cpp:46:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:48:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(IN,"%d%d",&x,&y),blocked[x][y]=1; ^ user.cpp:48:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:43:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d%d",&N,&P,&K); ^ user.cpp:46:61: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d",&delay[i],&cost[i]),blocked[i][i]=1; ^ user.cpp:48:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(IN,"%d%d",&x,&y),blocked[x][y]=1; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms456kbOK10
20ms444kbOK10
3Depăşit656kbTime limit exceeded.0
4Depăşit652kbTime limit exceeded.0
512ms620kbIncorect0
60ms480kbIncorect0
78ms516kbOK10
80ms456kbIncorect0
9Depăşit596kbTime limit exceeded.0
10Depăşit648kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?