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_27640826_2602.cpp:5:15: error: 'node' was not declared in this scope
 vector<vector<node>> g;
               ^
0_0_27640826_2602.cpp:5:15: error: template argument 1 is invalid
0_0_27640826_2602.cpp:5:15: error: template argument 2 is invalid
0_0_27640826_2602.cpp:5:19: error: template argument 1 is invalid
 vector<vector<node>> g;
                   ^
0_0_27640826_2602.cpp:5:19: error: template argument 2 is invalid
0_0_27640826_2602.cpp:5:23: error: invalid type in declaration before ';' token
 vector<vector<node>> g;
                       ^
0_0_27640826_2602.cpp: In function 'void init(int)':
0_0_27640826_2602.cpp:15:4: error: cannot convert 'std::vector<std::vector<node> >' to 'int' in assignment
   g=vector<vector<node> >(n);
    ^
0_0_27640826_2602.cpp:16:5: error: request for member 'clear' in 'g', which is of non-class type 'int'
   g.clear();
     ^
0_0_27640826_2602.cpp: In function 'int main()':
0_0_27640826_2602.cpp:33:7: error: invalid types 'int[int]' for array subscript
    g[u].push_back(node(v,w));
       ^
0_0_27640826_2602.cpp:34:7: error: invalid types 'int[int]' for array subscript
    g[v].push_back(node(u,w));
       ^
0_0_27640826_2602.cpp:46:22: error: invalid types 'int[int]' for array subscript
   for(int i=0;i<g[num].size();i++){
                      ^
0_0_27640826_2602.cpp:47:15: error: invalid types 'int[int]' for array subscript
    int v=g[num][i].v;
               ^
0_0_27640826_2602.cpp:48:15: error: invalid types 'int[int]' for array subscript
    int x=g[num][i].x;
               ^


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-12-02 18:40:35, Gzip enabled