Borderou de evaluare (job #1377348)

Utilizator BaweeLazar Vlad Bawee Data 5 martie 2015 21:18:12
Problema Secvente Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] fscanf(f,"%d",&x); ^ user.cpp:14:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=] fscanf(f,"%d",&num); ^ user.cpp:21:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] if(s==0) fprintf(g,"%d\n",x); ^ user.cpp:23:48: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] if(a1==0) fprintf(g,"%d\n",x-a2); ^ user.cpp:24:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] else fprintf(g,"%d\n",x-1); ^ user.cpp:27:47: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] if(a2>=1) fprintf(g,"%d\n",x-1); ^ user.cpp:28:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] else fprintf(g,"%d\n",x-2); ^ user.cpp:10:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&x); ^ user.cpp:14:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&num); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms248kbOK10
24ms248kbOK10
38ms256kbOK10
44ms248kbOK10
58ms248kbOK10
612ms252kbOK10
720ms252kbOK10
828ms248kbOK10
944ms256kbOK10
1028ms252kbOK10
Punctaj total100

Ceva nu functioneaza?