Borderou de evaluare (job #1584388)

Utilizator mariusn01Marius Nicoli mariusn01 Data 30 ianuarie 2016 00:48:25
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:22: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:22:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:22:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=] user.cpp:24: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:24:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:32: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:32:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=] user.cpp:22: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:24: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:32: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
10ms288kbIncorect0
20ms280kbOK10
38ms284kbIncorect0
40ms284kbIncorect0
58ms288kbOK10
60ms284kbIncorect0
70ms284kbIncorect0
80ms284kbIncorect0
90ms284kbIncorect0
1012ms284kbIncorect0
Punctaj total20

Ceva nu functioneaza?