Borderou de evaluare (job #2280285)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:21:54: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
d[i][p] = min(d[i][p - 1], d[i + (1 << p - 1)][p - 1]);
~~^~~
main.cpp:27:11: warning: statement has no effect [-Wunused-value]
for (m; m > 0; m--)
^
main.cpp:8:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.in", "r", stdin);
^
main.cpp:9:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.out", "w", stdout);
^
main.cpp:12:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:14:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
main.cpp:29:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &i, &j);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | OK | 10 | 10 |
| 2 | 2ms | 131kb | OK | 10 | 10 |
| 3 | 6ms | 524kb | OK | 10 | 10 |
| 4 | 131ms | 4718kb | OK | 10 | 10 |
| 5 | 151ms | 4718kb | OK | 10 | 20 |
| 6 | 680ms | 7471kb | OK | 10 |
| 7 | 730ms | 9043kb | OK | 10 | 10 |
| 8 | 820ms | 11010kb | OK | 10 | 10 |
| 9 | 1059ms | 11272kb | OK | 10 | 10 |
| 10 | 1008ms | 11796kb | OK | 10 | 10 |
| Punctaj total | 100 |