Mai intai trebuie sa te autentifici.
Borderou de evaluare (job #2303843)
| Utilizator | Data | 17 decembrie 2018 00:50:59 | |
|---|---|---|---|
| Problema | Subsir crescator maximal | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 70 | ||
Raport evaluator
Compilare:
main.cpp: In function 'void update(int, int)':
main.cpp:13:30: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
for (; x <= N; x += x^(x-1) & x)
~~~~~~^~~
main.cpp: In function 'int query(int)':
main.cpp:20:25: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
for (; x; x -= x^(x-1) & x)
~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:29:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.in", "r", stdin);
^
main.cpp:30:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.out", "w", stdout);
^
main.cpp:32:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
main.cpp:34:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &V[i]);
^
| Test | Timp executie | Memorie folosita | Mesaj | Punctaj/test | Punctaj/grupa |
|---|---|---|---|---|---|
| 1 | 2ms | 131kb | Corect! | 10 | 10 |
| 2 | 4ms | 262kb | Corect! | 10 | 10 |
| 3 | 3ms | 131kb | Corect! | 10 | 10 |
| 4 | 3ms | 131kb | Corect! | 10 | 10 |
| 5 | 3ms | 131kb | Corect! | 10 | 10 |
| 6 | 3ms | 131kb | Corect! | 10 | 10 |
| 7 | 4ms | 131kb | Corect! | 10 | 10 |
| 8 | 117ms | 2490kb | Corect! | 10 | 0 |
| 9 | 303ms | 1835kb | Time limit exceeded | 0 | |
| 10 | 104ms | 2490kb | Corect! | 10 | |
| Punctaj total | 70 | ||||
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
