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_36229370_10573.cpp:14:1: error: 'vector' does not name a type
 vector <node> vec[MAXN];
 ^
0_0_36229370_10573.cpp: In function 'void dfs(int, int, int)':
0_0_36229370_10573.cpp:22:7: error: 'vec' was not declared in this scope
   num=vec[u].size();
       ^
0_0_36229370_10573.cpp: In function 'void init()':
0_0_36229370_10573.cpp:38:20: error: 'n' was not declared in this scope
   for(j=0; (1<<j)<=n; j++)
                    ^
0_0_36229370_10573.cpp:41:15: error: 'n' was not declared in this scope
   for(i=1; i<=n; i++)p[i][0]=f[i];
               ^
0_0_36229370_10573.cpp:42:20: error: 'n' was not declared in this scope
   for(j=1; (1<<j)<=n; j++)
                    ^
0_0_36229370_10573.cpp: In function 'int main()':
0_0_36229370_10573.cpp:79:7: error: 'vec' was not declared in this scope
       vec[i].clear();
       ^
0_0_36229370_10573.cpp:83:7: error: 'vec' was not declared in this scope
       vec[a].push_back(node(b,c));
       ^
0_0_36229370_10573.cpp:83:32: error: no matching function for call to 'node::node(int&, int&)'
       vec[a].push_back(node(b,c));
                                ^
0_0_36229370_10573.cpp:83:32: note: candidates are:
0_0_36229370_10573.cpp:9:8: note: node::node()
 struct node
        ^
0_0_36229370_10573.cpp:9:8: note:   candidate expects 0 arguments, 2 provided
0_0_36229370_10573.cpp:9:8: note: constexpr node::node(const node&)
0_0_36229370_10573.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_36229370_10573.cpp:9:8: note: constexpr node::node(node&&)
0_0_36229370_10573.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_36229370_10573.cpp:84:32: error: no matching function for call to 'node::node(int&, int&)'
       vec[b].push_back(node(a,c));
                                ^
0_0_36229370_10573.cpp:84:32: note: candidates are:
0_0_36229370_10573.cpp:9:8: note: node::node()
 struct node
        ^
0_0_36229370_10573.cpp:9:8: note:   candidate expects 0 arguments, 2 provided
0_0_36229370_10573.cpp:9:8: note: constexpr node::node(const node&)
0_0_36229370_10573.cpp:9:8: note:   candidate expects 1 argument, 2 provided
0_0_36229370_10573.cpp:9:8: note: constexpr node::node(node&&)
0_0_36229370_10573.cpp:9:8: note:   candidate expects 1 argument, 2 provided


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-07-05 05:50:25, Gzip enabled