Pagini recente » Borderou de evaluare (job #2525517) | Borderou de evaluare (job #2394894) | Borderou de evaluare (job #2912236) | Borderou de evaluare (job #1883349) | Borderou de evaluare (job #1269101)
Borderou de evaluare (job #1269101)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:58: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int’ [-Wformat=]
fprintf(g,"%lld",(((n%p)*((n+1)%p)*((n-1)%p))/3)%p);
^
user.cpp:17:81: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int’ [-Wformat=]
fprintf(g,"%lld",((((n%p)*((n-1)%p)*((n-2)%p))%p)/3+((n%p)*((n-1)%p)))%p);
^
user.cpp:10:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&n,&p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 424kb | OK | 10 |
2 | 0ms | 416kb | OK | 10 |
3 | 0ms | 420kb | OK | 10 |
4 | 0ms | 416kb | OK | 10 |
5 | 0ms | 412kb | OK | 10 |
6 | 0ms | 416kb | Incorect | 0 |
7 | 0ms | 416kb | Incorect | 0 |
8 | 0ms | 412kb | Incorect | 0 |
9 | 0ms | 416kb | Incorect | 0 |
10 | 0ms | 416kb | Incorect | 0 |
Punctaj total | 50 |