Borderou de evaluare (job #1373101)

Utilizator VisanCosminVisan Tudor Cosmin VisanCosmin Data 4 martie 2015 16:48:49
Problema Iepuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:33:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&t); ^ user.cpp:37:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d%d%d",&x,&y,&z); ^ user.cpp:37:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:37:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:38:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d%d%d%lld",&A,&B,&C,&n); ^ user.cpp:38:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:38:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:32:9: warning: unused variable ‘k’ [-Wunused-variable] int k=0; ^ user.cpp:33:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&t); ^ user.cpp:37:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d",&x,&y,&z); ^ user.cpp:38:43: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d%d%lld",&A,&B,&C,&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbRaspuns gresit!0
20ms268kbRaspuns gresit!0
30ms272kbRaspuns gresit!0
40ms272kbRaspuns gresit!0
50ms268kbRaspuns gresit!0
60ms268kbRaspuns gresit!0
70ms268kbRaspuns gresit!0
80ms268kbRaspuns gresit!0
90ms272kbRaspuns gresit!0
100ms268kbRaspuns gresit!0
Punctaj total0

Ceva nu functioneaza?