Borderou de evaluare (job #1012513)

Utilizator Adrian1997Radulescu Adrian Adrian1997 Data 19 octombrie 2013 11:36:27
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:32:9: error: expected primary-expression before ‘}’ token } ^ user.cpp:32:9: error: expected ‘;’ before ‘}’ token user.cpp:37:17: error: no match for ‘operator[]’ (operand types are ‘std::vector<int>’ and ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’) a[x][a[x].begin()+p[st]] ^ user.cpp:37:17: note: candidates are: In file included from /usr/local/include/c++/4.8.0/vector:64:0, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/stl_vector.h:770:7: note: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = unsigned int] operator[](size_type __n) ^ /usr/local/include/c++/4.8.0/bits/stl_vector.h:770:7: note: no known conversion for argument 1 from ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘std::vector<int>::size_type {aka unsigned int}’ /usr/local/include/c++/4.8.0/bits/stl_vector.h:785:7: note: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::const_reference = const int&; std::vector<_Tp, _Alloc>::size_type = unsigned int] operator[](size_type __n) const ^ /usr/local/include/c++/4.8.0/bits/stl_vector.h:785:7: note: no known conversion for argument 1 from ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘std::vector<int>::size_type {aka unsigned int}’ user.cpp:38:9: error: expected ‘;’ before ‘}’ token } ^ user.cpp:14:20: warning: unused variable ‘j’ [-Wunused-variable] register int i,j,dr,st=1,x,nr=0; ^

Ceva nu functioneaza?