Borderou de evaluare (job #1937177)

Utilizator dr55Dan Rusu dr55 Data 23 martie 2017 19:28:26
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:71: error: ‘kNMAx’ was not declared in this scope int N, result[kNMAX], v[kNMAX], lst[kNMAX], D[kNMAX], tree[kNMAX], up[kNMAx], bst; ^ 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:25:33: error: ‘up’ 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) ^ user.cpp: In function ‘void solve()’: user.cpp:81:9: error: ‘up’ was not declared in this scope up[i] = query(v[i]-1); ^

Ceva nu functioneaza?