Borderou de evaluare (job #1377268)

Utilizator BaweeLazar Vlad Bawee Data 5 martie 2015 20:57:34
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:22:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=] else if(s==1) fprintf(g,"%d\n",x-1); ^ user.cpp:25: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:26: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
34ms252kbOK10
44ms256kbOK10
58ms256kbOK10
612ms256kbOK10
720ms256kbOK10
824ms256kbIncorect0
944ms252kbOK10
1032ms252kbIncorect0
Punctaj total70

Ceva nu functioneaza?