Borderou de evaluare (job #1247115)

Utilizator JohnBarbarulMicu Bogdan JohnBarbarul Data 22 octombrie 2014 09:19:20
Problema Suma Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d %d",&n,&m); ^ user.cpp:8:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:13:66: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] if(n%3==0)fprintf(g,"%d",(((((n/3)%m)*(n-1)%m)%m)*((n+1)%m))%m); ^ user.cpp:14:70: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] if((n-1)%3==0)fprintf(g,"%d",((((n%m)*((n-1)/3)%m)%m)*((n+1)%m))%m); ^ user.cpp:15:72: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] if((n+1)%3==0)fprintf(g,"%d",((((n%m)*((n-1)%m))%m)*(((n+1)/3)%m))%m); ^ user.cpp:8:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&n,&m); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms240kbOK10
20ms236kbOK10
30ms240kbOK10
40ms240kbIncorect0
50ms240kbIncorect0
60ms236kbIncorect0
70ms240kbIncorect0
80ms240kbIncorect0
90ms236kbIncorect0
100ms232kbIncorect0
Punctaj total30

Ceva nu functioneaza?