Pagini recente » Borderou de evaluare (job #1728695) | Borderou de evaluare (job #1661065) | Borderou de evaluare (job #485763) | Borderou de evaluare (job #2465356) | Borderou de evaluare (job #2087742)
Borderou de evaluare (job #2087742)
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); 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 | 280kb | OK | 10 |
4 | 0ms | 248kb | Incorect | 0 |
5 | 4ms | 276kb | OK | 10 |
6 | 4ms | 272kb | OK | 10 |
7 | 36ms | 276kb | OK | 10 |
8 | 32ms | 260kb | Incorect | 0 |
9 | 36ms | 272kb | OK | 10 |
10 | 16ms | 264kb | OK | 10 |
Punctaj total | 80 |