Borderou de evaluare (job #1584386)

Utilizator mariusn01Marius Nicoli mariusn01 Data 30 ianuarie 2016 00:45:32
Problema Zmeu2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin,"%d%d%d",&n,&p,&k); ^ user.cpp:23:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:23:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:25:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin, "%d %d",&x, &y); ^ user.cpp:25:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:33:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin, "%d %d",&x, &y); ^ user.cpp:33:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:23:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%d",&n,&p,&k); ^ user.cpp:25:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d",&x, &y); ^ user.cpp:33:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d",&x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbIncorect0
20ms440kbOK10
38ms440kbIncorect0
40ms440kbIncorect0
58ms440kbOK10
60ms444kbIncorect0
70ms444kbIncorect0
80ms444kbIncorect0
90ms444kbIncorect0
108ms444kbIncorect0
Punctaj total20

Ceva nu functioneaza?