Borderou de evaluare (job #1014168)

Utilizator CosminRusuCosmin Rusu CosminRusu Data 22 octombrie 2013 12:15:23
Problema Intervale2 Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:27:24: warning: integer overflow in expression [-Woverflow] const int oo = (1<<31)-1; ^ user.cpp: In member function ‘bool ClassComp::operator()(const int&, const int&) const’: user.cpp:39:17: error: ‘A’ was not declared in this scope return (A[a] > A[b] || (A[a] == A[b] && a > b)); ^ user.cpp: In function ‘int lsb(int)’: user.cpp:46:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] return (bit ^ (bit - 1) & bit); ^ user.cpp: In function ‘void Insert(int)’: user.cpp:51:12: error: ‘aib’ was not declared in this scope ++ aib[i]; ^ user.cpp: In function ‘int Query(int)’: user.cpp:56:16: error: ‘aib’ was not declared in this scope Ans += aib[i]; ^ user.cpp:57:12: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive] return Ans; ^ user.cpp: In function ‘int main()’: user.cpp:63:16: error: ‘A’ was not declared in this scope cin >> A[i]; ^ user.cpp:72:34: error: ‘query’ was not declared in this scope int Ans[ind[i]] = query(y) - query(x-1); ^ user.cpp:72:47: error: variable-sized object ‘Ans’ may not be initialized int Ans[ind[i]] = query(y) - query(x-1); ^ user.cpp:72:13: warning: unused variable ‘Ans’ [-Wunused-variable] int Ans[ind[i]] = query(y) - query(x-1); ^ user.cpp: In member function ‘bool ClassComp::operator()(const int&, const int&) const’: user.cpp:40:5: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?