Pagini recente » Borderou de evaluare (job #426473) | Borderou de evaluare (job #185739) | Borderou de evaluare (job #21127) | Borderou de evaluare (job #3251470) | Borderou de evaluare (job #1013447)
Borderou de evaluare (job #1013447)
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:67: 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))%p);
^
user.cpp:11:67: 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))%p);
^
user.cpp:12:67: 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))%p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 236kb | OK | 10 |
2 | 0ms | 240kb | OK | 10 |
3 | 0ms | 240kb | OK | 10 |
4 | 0ms | 236kb | OK | 10 |
5 | 0ms | 240kb | OK | 10 |
6 | 0ms | 236kb | Incorect | 0 |
7 | 0ms | 236kb | Incorect | 0 |
8 | 0ms | 236kb | Incorect | 0 |
9 | 0ms | 240kb | Incorect | 0 |
10 | 0ms | 236kb | Incorect | 0 |
Punctaj total | 50 |