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_33696330_20169.cpp:18:18: error: 'll' was not declared in this scope
 vector<pair<int, ll> > G[maxn];
                  ^
0_0_33696330_20169.cpp:18:20: error: template argument 2 is invalid
 vector<pair<int, ll> > G[maxn];
                    ^
0_0_33696330_20169.cpp:18:22: error: template argument 1 is invalid
 vector<pair<int, ll> > G[maxn];
                      ^
0_0_33696330_20169.cpp:18:22: error: template argument 2 is invalid
0_0_33696330_20169.cpp:18:31: error: invalid type in declaration before ';' token
 vector<pair<int, ll> > G[maxn];
                               ^
0_0_33696330_20169.cpp:20:1: error: 'll' does not name a type
 ll zero, one;
 ^
0_0_33696330_20169.cpp:21:1: error: 'll' does not name a type
 ll ans = 0;
 ^
0_0_33696330_20169.cpp: In function 'void init(int)':
0_0_33696330_20169.cpp:26:14: error: request for member 'clear' in 'G[i]', which is of non-class type 'int'
         G[i].clear();
              ^
0_0_33696330_20169.cpp: At global scope:
0_0_33696330_20169.cpp:42:1: error: 'll' does not name a type
 ll dfs(int u, int f){
 ^
0_0_33696330_20169.cpp: In function 'int main()':
0_0_33696330_20169.cpp:74:9: error: 'zero' was not declared in this scope
         zero = one = 0;
         ^
0_0_33696330_20169.cpp:74:16: error: 'one' was not declared in this scope
         zero = one = 0;
                ^
0_0_33696330_20169.cpp:84:9: error: 'll' was not declared in this scope
         ll val = 1;
         ^
0_0_33696330_20169.cpp:87:13: error: 'val' was not declared in this scope
             val *= 2;
             ^
0_0_33696330_20169.cpp:91:22: error: request for member 'push_back' in 'G[u]', which is of non-class type 'int'
                 G[u].push_back(make_pair(v, val));
                      ^
0_0_33696330_20169.cpp:92:22: error: request for member 'push_back' in 'G[v]', which is of non-class type 'int'
                 G[v].push_back(make_pair(u, val));
                      ^
0_0_33696330_20169.cpp:95:9: error: 'ans' was not declared in this scope
         ans = 0;
         ^
0_0_33696330_20169.cpp:96:18: error: 'dfs' was not declared in this scope
         dfs(1, -1);
                  ^


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-25 11:27:01, Gzip enabled