Borderou de evaluare (job #1037592)

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

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:66: 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))%p)*((n-1)%p))%p); ^ user.cpp:10:68: 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))%p)*((n-1)%p))%p); ^ user.cpp:11:68: 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))%p)*(((n-1)/3)%p))%p); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbOK10
20ms236kbOK10
30ms236kbOK10
40ms236kbOK10
50ms240kbOK10
60ms236kbOK10
70ms240kbOK10
80ms236kbOK10
90ms236kbOK10
100ms240kbOK10
Punctaj total100

Ceva nu functioneaza?