Pagini recente » Borderou de evaluare (job #1268886) | Monitorul de evaluare | Borderou de evaluare (job #1211855) | Borderou de evaluare (job #505884) | Borderou de evaluare (job #1264001)
Borderou de evaluare (job #1264001)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld %ld %ld %ld %ld %ld",&L,&P,&D,&C,&n,&a[1]);
^
user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=]
user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 6 has type ‘long long int*’ [-Wformat=]
user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 7 has type ‘long long int*’ [-Wformat=]
user.cpp:22:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
if(i!=n+1) scanf("%ld",&a[i]);
^
user.cpp:40:25: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld",dp[n+1]);
^
user.cpp:15:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gaz.in","r",stdin);
^
user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gaz.out","w",stdout);
^
user.cpp:18:58: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld %ld %ld %ld %ld",&L,&P,&D,&C,&n,&a[1]);
^
user.cpp:22:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if(i!=n+1) scanf("%ld",&a[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 440kb | OK | 10 |
| 2 | 0ms | 440kb | OK | 10 |
| 3 | 0ms | 436kb | OK | 10 |
| 4 | 0ms | 432kb | OK | 10 |
| 5 | 0ms | 440kb | OK | 10 |
| 6 | 0ms | 436kb | OK | 10 |
| 7 | 0ms | 440kb | OK | 10 |
| 8 | 0ms | 440kb | OK | 10 |
| 9 | 0ms | 448kb | OK | 10 |
| 10 | 40ms | 464kb | Incorect | 0 |
| Punctaj total | 90 |