Borderou de evaluare (job #1237368)

Utilizator Alex_dudeDudescu Alexandru Alex_dude Data 3 octombrie 2014 21:53:12
Problema CMMDC Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:7:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d%d",&a,&b); ^ user.cpp:7:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:14:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d\n",a); ^ user.cpp:6:10: warning: unused variable ‘n’ [-Wunused-variable] long n,a,b,aux; ^ user.cpp:7:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms252kbWrong Answer.0
20ms252kbOKAY!10
30ms256kbOKAY!10
40ms252kbWrong Answer.0
50ms248kbOKAY!10
60ms252kbWrong Answer.0
70ms256kbOKAY!10
80ms256kbWrong Answer.0
90ms252kbWrong Answer.0
100ms252kbOKAY!10
Punctaj total50

Ceva nu functioneaza?