Borderou de evaluare (job #2081147)
Utilizator | Data | 4 decembrie 2017 08:51:05 | |
---|---|---|---|
Problema | Apm2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void join(int)’:
user.cpp:25:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vecini[node].size();++i)
^
user.cpp:27:15: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::pair<int, int> > [10005]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’)
vecini[t].resize(0);
^
user.cpp:28:15: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::pair<int, int> > [10005]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’)
vecini[t].push_back(root);
^
user.cpp:30:13: error: no match for ‘operator[]’ (operand types are ‘int [10005]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’)
tati[t]=root;
^
user.cpp:33:32: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(int&)’
vecini[node].push_back(root);
^
user.cpp:33:32: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘int’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘int’ to ‘std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
user.cpp:34:32: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(int&)’
vecini[root].push_back(node);
^
user.cpp:34:32: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: no known conversion for argument 1 from ‘int’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘int’ to ‘std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
user.cpp:38:38: error: lvalue required as increment operand
for(int i=0;i<vecini[root].size()++i) cout<<vecini[root][i]<<' ';
^
user.cpp:38:40: error: expected ‘;’ before ‘i’
for(int i=0;i<vecini[root].size()++i) cout<<vecini[root][i]<<' ';
^
user.cpp:38:40: warning: for increment expression has no effect [-Wunused-value]
user.cpp:38:63: error: cannot bind ‘std::ostream {aka std::basic_ostream<char>}’ lvalue to ‘std::basic_ostream<char>&&’
for(int i=0;i<vecini[root].size()++i) cout<<vecini[root][i]<<' ';
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !