Judge Information
Run ID: 34552
src.cpp:1:24: warning: extra tokens at end of #include directive
#include<bits/stdc++.h>;
^
src.cpp: In function 'void bfs(int)':
src.cpp:15:30: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
for (i=0;int v=a[u][i];i++)
^
src.cpp: In function 'int main()':
src.cpp:32:18: error: request for member 'push_back' in 'a.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}'
a[x].push_back(y);
^
src.cpp:33:18: error: request for member 'push_back' in 'a.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}'
a[y].push_back(x);
^
src.cpp:35:29: error: request for member 'push_back' in 'a.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
for (i=0;i<=n;i++) a[i].push_back(0);
^
#include<bits/stdc++.h>;
^
src.cpp: In function 'void bfs(int)':
src.cpp:15:30: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
for (i=0;int v=a[u][i];i++)
^
src.cpp: In function 'int main()':
src.cpp:32:18: error: request for member 'push_back' in 'a.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}'
a[x].push_back(y);
^
src.cpp:33:18: error: request for member 'push_back' in 'a.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}'
a[y].push_back(x);
^
src.cpp:35:29: error: request for member 'push_back' in 'a.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
for (i=0;i<=n;i++) a[i].push_back(0);
^