Borderou de evaluare (job #1497841)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:26:54: warning: operation on ‘s[0]’ may be undefined [-Wsequence-point]
s[++ s[0]] = s[s[0] - 1] + dif[i - 1];
^
user.cpp: In function ‘void solve()’:
user.cpp:39:41: warning: operation on ‘s[0]’ may be undefined [-Wsequence-point]
s[++ s[0]] = s[s[0] - 1] + St[i];
^
user.cpp: In function ‘void read()’:
user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("knumere.in", "r", stdin);
^
user.cpp:13:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("knumere.out", "w", stdout);
^
user.cpp:14:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &k);
^
user.cpp:15:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x1);
^
user.cpp:18:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x2);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 276kb | Incorect | 0 |
2 | 0ms | 284kb | Incorect | 0 |
3 | 0ms | 280kb | OK | 10 |
4 | 0ms | 280kb | OK | 10 |
5 | 4ms | 372kb | Incorect | 0 |
6 | 40ms | 960kb | OK | 10 |
7 | 20ms | 620kb | OK | 10 |
8 | 256ms | 6324kb | Incorect | 0 |
9 | Depăşit | 9356kb | Time limit exceeded. | 0 |
10 | Depăşit | 9392kb | Time limit exceeded. | 0 |
Punctaj total | 40 |