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_28179168_1746.cpp:16:7: error: stray '#' in program
     }a#include <bits/stdc++.h>
       ^
0_0_28179168_1746.cpp:16:6: error: 'a' does not name a type
     }a#include <bits/stdc++.h>
      ^
0_0_28179168_1746.cpp:23:8: error: 'edge::edge' has the same name as the class in which it is declared
 struct edge {
        ^
0_0_28179168_1746.cpp: In member function 'int edge::main()':
0_0_28179168_1746.cpp:74:39: error: request for member 'u' in '((edge*)this)->edge::egs[i]', which is of non-class type 'int'
             scanf("%d %d %d", &egs[i].u, &egs[i].v, &egs[i].w);
                                       ^
0_0_28179168_1746.cpp:74:50: error: request for member 'v' in '((edge*)this)->edge::egs[i]', which is of non-class type 'int'
             scanf("%d %d %d", &egs[i].u, &egs[i].v, &egs[i].w);
                                                  ^
0_0_28179168_1746.cpp:74:61: error: request for member 'w' in '((edge*)this)->edge::egs[i]', which is of non-class type 'int'
             scanf("%d %d %d", &egs[i].u, &egs[i].v, &egs[i].w);
                                                             ^
0_0_28179168_1746.cpp:83:24: error: request for member 'w' in '((edge*)this)->edge::egs[i]', which is of non-class type 'int'
             if (egs[i].w > qs[cnt].lim) {
                        ^
0_0_28179168_1746.cpp:88:26: error: request for member 'u' in '((edge*)this)->edge::egs[i]', which is of non-class type 'int'
             merge(egs[i].u, egs[i].v);
                          ^
0_0_28179168_1746.cpp:88:36: error: request for member 'v' in '((edge*)this)->edge::egs[i]', which is of non-class type 'int'
             merge(egs[i].u, egs[i].v);
                                    ^


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 16:38:21, Gzip enabled