Pagini recente » Borderou de evaluare (job #868549) | Borderou de evaluare (job #229803) | Borderou de evaluare (job #776676) | Borderou de evaluare (job #304867) | Borderou de evaluare (job #1037589)
Borderou de evaluare (job #1037589)
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 |
| 1 | 0ms | 240kb | OK | 10 |
| 2 | 0ms | 240kb | OK | 10 |
| 3 | 0ms | 240kb | OK | 10 |
| 4 | 0ms | 236kb | OK | 10 |
| 5 | 0ms | 236kb | OK | 10 |
| 6 | 0ms | 236kb | Incorect | 0 |
| 7 | 0ms | 236kb | Incorect | 0 |
| 8 | 0ms | 240kb | Incorect | 0 |
| 9 | 0ms | 236kb | Incorect | 0 |
| 10 | 0ms | 240kb | Incorect | 0 |
| Punctaj total | 50 |