Pagini recente » Borderou de evaluare (job #2127684) | Borderou de evaluare (job #1135560) | Borderou de evaluare (job #937270) | Borderou de evaluare (job #1629069) | Borderou de evaluare (job #2552382)
Borderou de evaluare (job #2552382)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:18:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("heavymetal.in", "r", stdin);
^
main.cpp:19:44: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("heavymetal.out", "w", stdout);
^
main.cpp:23:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n);
^
main.cpp:25:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &v[i].st, &v[i].dr);
^
main.cpp:40:29: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
vmax[i] = max(vmax[r] + v[i].dr - v[i].st, vmax[i - 1]);
~~~~~~^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 3ms | 131kb | OK | 10 |
5 | 35ms | 524kb | OK | 10 |
6 | 57ms | 786kb | OK | 10 |
7 | 90ms | 1048kb | OK | 10 |
8 | 103ms | 1179kb | OK | 10 |
9 | 109ms | 1310kb | OK | 10 |
10 | 106ms | 1310kb | OK | 10 |
Punctaj total | 100 |