Borderou de evaluare (job #1377339)

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

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:46: 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
18ms256kbIncorect0
24ms256kbOK10
38ms252kbOK10
44ms252kbOK10
58ms252kbOK10
612ms252kbOK10
720ms252kbOK10
828ms252kbIncorect0
940ms256kbOK10
1032ms256kbIncorect0
Punctaj total70

Ceva nu functioneaza?