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){
^
|