Pagini recente » Monitorul de evaluare | Borderou de evaluare (job #3140332) | Borderou de evaluare (job #737193) | Borderou de evaluare (job #2371171) | Borderou de evaluare (job #1247115)
Borderou de evaluare (job #1247115)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d %d",&n,&m);
^
user.cpp:8:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=]
user.cpp:13:66: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
if(n%3==0)fprintf(g,"%d",(((((n/3)%m)*(n-1)%m)%m)*((n+1)%m))%m);
^
user.cpp:14:70: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
if((n-1)%3==0)fprintf(g,"%d",((((n%m)*((n-1)/3)%m)%m)*((n+1)%m))%m);
^
user.cpp:15:72: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
if((n+1)%3==0)fprintf(g,"%d",((((n%m)*((n-1)%m))%m)*(((n+1)/3)%m))%m);
^
user.cpp:8:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&m);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 240kb | OK | 10 |
| 2 | 0ms | 236kb | OK | 10 |
| 3 | 0ms | 240kb | OK | 10 |
| 4 | 0ms | 240kb | Incorect | 0 |
| 5 | 0ms | 240kb | Incorect | 0 |
| 6 | 0ms | 236kb | Incorect | 0 |
| 7 | 0ms | 240kb | Incorect | 0 |
| 8 | 0ms | 240kb | Incorect | 0 |
| 9 | 0ms | 236kb | Incorect | 0 |
| 10 | 0ms | 232kb | Incorect | 0 |
| Punctaj total | 30 |