Borderou de evaluare (job #625984)

Utilizator hiticas_abelhiticasabel hiticas_abel Data 25 octombrie 2011 23:33:02
Problema Nivele2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:10: warning: unused variable ‘i’ user.cpp: In function ‘void df(int, int)’: user.cpp:25: error: no match for ‘operator=’ in ‘niv[nod] = nivel’ /usr/include/c++/4.4/bits/vector.tcc:156: note: candidates are: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int, _Alloc = std::allocator<int>] user.cpp: In function ‘int main()’: user.cpp:36: error: no match for ‘operator=’ in ‘niv[1] = 1’ /usr/include/c++/4.4/bits/vector.tcc:156: note: candidates are: std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int, _Alloc = std::allocator<int>] user.cpp:39: error: cannot convert ‘std::vector<int, std::allocator<int> >’ to ‘long int’ in initialization user.cpp:41: error: no match for ‘operator>’ in ‘niv[i] > max’ user.cpp:42: error: cannot convert ‘std::vector<int, std::allocator<int> >’ to ‘long int’ in assignment user.cpp:48: error: no match for ‘operator==’ in ‘niv[i] == k’ user.cpp:35: warning: unused variable ‘x’ user.cpp:35: warning: unused variable ‘y’

Ceva nu functioneaza?