Borderou de evaluare (job #1013409)

Utilizator BaTDucKMocanu George BaTDucK Data 20 octombrie 2013 21:25:50
Problema Suma Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:7:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin,"%d %d",&n,&p); ^ user.cpp:10:65: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] if(n%3==0) fprintf(fout,"%d",(((n/3)%p)*((n+1)%p)*((n-1)%p))); ^ user.cpp:11:65: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] if(n%3==2) fprintf(fout,"%d",((n%p)*(((n+1)/3)%p)*((n-1)%p))); ^ user.cpp:12:65: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] if(n%3==1) fprintf(fout,"%d",((n%p)*((n+1)%p)*(((n-1)/3)%p))); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbOK10
20ms236kbOK10
30ms240kbIncorect0
40ms236kbIncorect0
50ms236kbIncorect0
60ms236kbIncorect0
70ms236kbIncorect0
80ms236kbIncorect0
90ms236kbIncorect0
100ms236kbIncorect0
Punctaj total20

Ceva nu functioneaza?