Pagini recente » Borderou de evaluare (job #399164) | Borderou de evaluare (job #504200) | Borderou de evaluare (job #1404419)
Borderou de evaluare (job #1404419)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld%ld",&n,&k);
^
user.cpp:18:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:21:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%ld",&v[i]);
^
user.cpp:48:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld",sum);
^
user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("elemente.in","r",stdin);
^
user.cpp:16:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("elemente.out","w",stdout);
^
user.cpp:18:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld",&n,&k);
^
user.cpp:21:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | OK | 10 |
2 | 0ms | 260kb | OK | 10 |
3 | 0ms | 268kb | OK | 10 |
4 | 0ms | 280kb | OK | 10 |
5 | 12ms | 736kb | OK | 10 |
6 | 20ms | 732kb | OK | 10 |
7 | 36ms | 1048kb | OK | 10 |
8 | 52ms | 1356kb | Incorect | 0 |
9 | 72ms | 1668kb | Incorect | 0 |
10 | 76ms | 1820kb | Incorect | 0 |
Punctaj total | 70 |