Pagini recente » Cod sursa (job #974787) | Cod sursa (job #2359244) | Borderou de evaluare (job #2135613) | Borderou de evaluare (job #507370) | Borderou de evaluare (job #1400049)
Borderou de evaluare (job #1400049)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld",&n);
^
user.cpp:22:40: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for(i=1;i<=n;i++){scanf("%ld",&a[i]);}
^
user.cpp:31:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld",l-1);
^
user.cpp:19:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lumanari.in","r",stdin);
^
user.cpp:20:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lumanari.out","w",stdout);
^
user.cpp:21:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
user.cpp:22:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++){scanf("%ld",&a[i]);}
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 256kb | OK | 10 | 10 |
| 2 | 0ms | 260kb | OK | 10 | 10 |
| 3 | 0ms | 260kb | OK | 10 | 10 |
| 4 | 92ms | 1524kb | OK | 10 | 10 |
| 5 | 108ms | 1796kb | OK | 10 | 10 |
| 6 | 100ms | 1712kb | OK | 10 | 10 |
| 7 | 100ms | 1632kb | OK | 10 | 10 |
| 8 | 96ms | 1644kb | OK | 10 | 0 |
| 9 | 64ms | 1648kb | Incorect | 0 |
| 10 | 76ms | 1620kb | Incorect | 0 |
| Punctaj total | 70 |