Borderou de evaluare (job #1037589)

Utilizator Andrei11Andrei Andrei11 Data 20 noiembrie 2013 13:47:20
Problema Suma Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d %d",&n,&p); fclose(stdin); ^ user.cpp:9:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] if(n%3==0)printf("%d",(((n/3)%p)*((n+1)%p)*((n-1)%p))%p); ^ user.cpp:10:62: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] if(n%3==2)printf("%d",(((n)%p)*(((n+1)/3)%p)*((n-1)%p))%p); ^ user.cpp:11:62: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] if(n%3==1)printf("%d",(((n)%p)*((n+1)%p)*(((n-1)/3)%p))%p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms240kbOK10
20ms240kbOK10
30ms240kbOK10
40ms236kbOK10
50ms236kbOK10
60ms236kbIncorect0
70ms236kbIncorect0
80ms240kbIncorect0
90ms236kbIncorect0
100ms240kbIncorect0
Punctaj total50

Ceva nu functioneaza?