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_20202488_21241.cpp: In function 'int cmp(node, node)':
0_0_20202488_21241.cpp:16:12: error: 'xx' was not declared in this scope
     return xx.z<yy.z;
            ^
0_0_20202488_21241.cpp:16:17: error: 'yy' was not declared in this scope
     return xx.z<yy.z;
                 ^
0_0_20202488_21241.cpp: In function 'int main()':
0_0_20202488_21241.cpp:33:13: error: 'A' was not declared in this scope
             A[i]=i;
             ^
0_0_20202488_21241.cpp:36:29: error: 'pr' was not declared in this scope
             scanf("%d%d%d",&pr[i].x,&pr[i].y,&pr[i].v);
                             ^
0_0_20202488_21241.cpp:38:14: error: 'pr' was not declared in this scope
         sort(pr,pr+b,cmp);
              ^
0_0_20202488_21241.cpp: In lambda function:
0_0_20202488_21241.cpp:41:24: error: expected '{' before '.' token
             if(find([i].x)!=find(pr[i].y))
                        ^
0_0_20202488_21241.cpp: In function 'int main()':
0_0_20202488_21241.cpp:41:25: error: 'struct main()::<lambda()>' has no member named 'x'
             if(find([i].x)!=find(pr[i].y))
                         ^
0_0_20202488_21241.cpp:43:17: error: 'A' was not declared in this scope
                 A[find(pr[i].x)]=find(pr[i].y);
                 ^


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-10-06 16:38:42, Gzip enabled