Borderou de evaluare (job #1937180)
Utilizator | Data | 23 martie 2017 19:29:13 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void print()’:
user.cpp:25:10: error: ‘h’ was not declared in this scope
for (h = 0, i = bst; i; i = up[i])
^
user.cpp:30:14: error: ‘h’ was not declared in this scope
for (i = h; i; --i)
^
user.cpp:24:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j;
^
user.cpp: In function ‘void update(int, int)’:
user.cpp:40:49: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for (; value <= N; value += value^(value-1) & value)
^
user.cpp: In function ‘int query(int)’:
user.cpp:52:45: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
for ( ; value; value -= value^(value-1) & value)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !