F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_17944987_32210.cpp: In function 'void dfs(int)':
0_0_17944987_32210.cpp:23:20: error: request for member 'size' in 'g.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)u))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
     int i,len=g[u].size();
                    ^
0_0_17944987_32210.cpp:25:19: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
     if(!vis[g[u][i]])
                   ^
0_0_17944987_32210.cpp:26:15: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
     dfs(g[u][i]);
               ^
0_0_17944987_32210.cpp: In function 'void rdfs(int)':
0_0_17944987_32210.cpp:33:20: error: request for member 'size' in 'r.std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)u))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
     int i,len=r[u].size();
                    ^
0_0_17944987_32210.cpp:35:19: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
     if(!vis[r[u][i]])
                   ^
0_0_17944987_32210.cpp:36:16: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}[int]' for array subscript
     rdfs(r[u][i]);
                ^
0_0_17944987_32210.cpp: In function 'void add(int, int)':
0_0_17944987_32210.cpp:64:10: 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);
          ^
0_0_17944987_32210.cpp:65:10: error: request for member 'push_back' in 'r.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}'
     r[y].push_back(x);
          ^
0_0_17944987_32210.cpp: In function 'int main()':
0_0_17944987_32210.cpp:78:15: error: request for member 'clear' in 'g.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}'
          g[i].clear();
               ^
0_0_17944987_32210.cpp:79:15: error: request for member 'clear' in 'r.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}'
          r[i].clear()
               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-28 07:22:16, Gzip enabled