Pagini recente » Borderou de evaluare (job #2508502) | Borderou de evaluare (job #2746992) | Borderou de evaluare (job #1404410) | Borderou de evaluare (job #91889) | Borderou de evaluare (job #2087744)
Borderou de evaluare (job #2087744)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:5:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ksecv3.in","r",stdin);
^
user.cpp:6:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ksecv3.out","w",stdout);
^
user.cpp:7:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
user.cpp:8:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=n;++i) {scanf("%d", &x); if (x>mx) mx=x; sum+=x;}
^
user.cpp:10:50: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fclose(stdin); freopen("ksecv3.in","r",stdin);
^
user.cpp:11:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k); sumCrt=0;
^
user.cpp:13:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 0ms | 276kb | OK | 10 |
3 | 0ms | 272kb | OK | 10 |
4 | 0ms | 264kb | OK | 10 |
5 | 4ms | 272kb | OK | 10 |
6 | 4ms | 272kb | OK | 10 |
7 | 40ms | 272kb | OK | 10 |
8 | 32ms | 260kb | Incorect | 0 |
9 | 36ms | 280kb | OK | 10 |
10 | 16ms | 264kb | OK | 10 |
Punctaj total | 90 |