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_28171878_4028.cpp: In function 'void solve()':
0_0_28171878_4028.cpp:14:5: error: 'node' was not declared in this scope
     node a[N];
     ^
0_0_28171878_4028.cpp:16:5: error: 'a' was not declared in this scope
     a[1].fa=N-1;
     ^
0_0_28171878_4028.cpp:23:23: error: 'node' is not a type
     sort(a+1,a+n+1,[](node x,node y){return x.w>y.w;});
                       ^
0_0_28171878_4028.cpp:23:30: error: 'node' is not a type
     sort(a+1,a+n+1,[](node x,node y){return x.w>y.w;});
                              ^
0_0_28171878_4028.cpp: In lambda function:
0_0_28171878_4028.cpp:23:47: error: request for member 'w' in 'x', which is of non-class type 'int'
     sort(a+1,a+n+1,[](node x,node y){return x.w>y.w;});
                                               ^
0_0_28171878_4028.cpp:23:51: error: request for member 'w' in 'y', which is of non-class type 'int'
     sort(a+1,a+n+1,[](node x,node y){return x.w>y.w;});
                                                   ^
0_0_28171878_4028.cpp: In function 'void solve()':
0_0_28171878_4028.cpp:28:33: error: 'w' was not declared in this scope
         if(mp[fa]==1&&flag1==0&&w>0){
                                 ^
0_0_28171878_4028.cpp:39:23: error: 'node' is not a type
     sort(a+1,a+n+1,[](node x,node y){return x.w<y.w;});
                       ^
0_0_28171878_4028.cpp:39:30: error: 'node' is not a type
     sort(a+1,a+n+1,[](node x,node y){return x.w<y.w;});
                              ^
0_0_28171878_4028.cpp: In lambda function:
0_0_28171878_4028.cpp:39:47: error: request for member 'w' in 'x', which is of non-class type 'int'
     sort(a+1,a+n+1,[](node x,node y){return x.w<y.w;});
                                               ^
0_0_28171878_4028.cpp:39:51: error: request for member 'w' in 'y', which is of non-class type 'int'
     sort(a+1,a+n+1,[](node x,node y){return x.w<y.w;});
                                                   ^
0_0_28171878_4028.cpp: In function 'void solve()':
0_0_28171878_4028.cpp:42:33: error: 'w' was not declared in this scope
         if(mp[fa]==1&&flag2==0&&w<0){
                                 ^


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 18:45:47, Gzip enabled