Borderou de evaluare (job #1852452)
Utilizator | Data | 20 ianuarie 2017 20:12:23 | |
---|---|---|---|
Problema | Grarb | Status | done |
Runda | becreative_1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Read()’:
user.cpp:45:14: error: request for member ‘push_back’ in ‘G.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)x))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’
G[x].push_back(y);
^
user.cpp:46:14: error: request for member ‘push_back’ in ‘G.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)y))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’
G[y].push_back(x);
^
user.cpp: In function ‘void DFS(int)’:
user.cpp:52:24: error: request for member ‘size’ in ‘G.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)x))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’
for(int i=0;i<G[x].size();++i)
^
user.cpp:53:20: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]’ for array subscript
if(v[G[x][i]]==0) DFS(G[x][i]));
^
user.cpp:53:37: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]’ for array subscript
if(v[G[x][i]]==0) DFS(G[x][i]));
^
user.cpp:53:39: error: expected ‘;’ before ‘)’ token
if(v[G[x][i]]==0) DFS(G[x][i]));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !