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_22189991_22679.cpp:9:9: error: 'Edge' was not declared in this scope
 vector <Edge> vec[505];
         ^
0_0_22189991_22679.cpp:9:13: error: template argument 1 is invalid
 vector <Edge> vec[505];
             ^
0_0_22189991_22679.cpp:9:13: error: template argument 2 is invalid
0_0_22189991_22679.cpp:9:23: error: invalid type in declaration before ';' token
 vector <Edge> vec[505];
                       ^
0_0_22189991_22679.cpp: In function 'int dfs(int)':
0_0_22189991_22679.cpp:14:26: error: request for member 'size' in 'vec[x]', which is of non-class type 'int'
     for(int i=0;i<vec[x].size();i++)
                          ^
0_0_22189991_22679.cpp:16:25: error: invalid types 'int[int]' for array subscript
         now=dfs(vec[x][i]);
                         ^
0_0_22189991_22679.cpp: In function 'int main()':
0_0_22189991_22679.cpp:43:20: error: request for member 'clear' in 'vec[i]', which is of non-class type 'int'
             vec[i].clear();
                    ^
0_0_22189991_22679.cpp:48:20: error: request for member 'push_back' in 'vec[x]', which is of non-class type 'int'
             vec[x].push_back(i);
                    ^


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-11-26 06:34:48, Gzip enabled