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_21590565_5920.cpp:10:8: error: 'struct std' redeclared as different kind of symbol
 struct std
        ^
<built-in>: note: previous declaration 'namespace std { }'
0_0_21590565_5920.cpp:13:6: error: invalid type in declaration before ';' token
 }G[N];
      ^
0_0_21590565_5920.cpp: In function 'void prim()':
0_0_21590565_5920.cpp:41:45: error: request for member 'x' in 'G[i]', which is of non-class type 'int'
                 dis[i]=Min(dis[i],disp(G[i].x,G[i].y,G[t].x,G[t].y));
                                             ^
0_0_21590565_5920.cpp:41:52: error: request for member 'y' in 'G[i]', which is of non-class type 'int'
                 dis[i]=Min(dis[i],disp(G[i].x,G[i].y,G[t].x,G[t].y));
                                                    ^
0_0_21590565_5920.cpp:41:59: error: request for member 'x' in 'G[t]', which is of non-class type 'int'
                 dis[i]=Min(dis[i],disp(G[i].x,G[i].y,G[t].x,G[t].y));
                                                           ^
0_0_21590565_5920.cpp:41:66: error: request for member 'y' in 'G[t]', which is of non-class type 'int'
                 dis[i]=Min(dis[i],disp(G[i].x,G[i].y,G[t].x,G[t].y));
                                                                  ^
0_0_21590565_5920.cpp: In function 'int main()':
0_0_21590565_5920.cpp:57:34: error: request for member 'x' in 'G[i]', which is of non-class type 'int'
             scanf("%lf%lf",&G[i].x,&G[i].y);
                                  ^
0_0_21590565_5920.cpp:57:42: error: request for member 'y' in 'G[i]', which is of non-class type 'int'
             scanf("%lf%lf",&G[i].x,&G[i].y);
                                          ^
0_0_21590565_5920.cpp:58:26: error: request for member 'x' in 'G[q]', which is of non-class type 'int'
         dis[p]=disp(G[q].x,G[q].y,G[p].x,G[p].y);
                          ^
0_0_21590565_5920.cpp:58:33: error: request for member 'y' in 'G[q]', which is of non-class type 'int'
         dis[p]=disp(G[q].x,G[q].y,G[p].x,G[p].y);
                                 ^
0_0_21590565_5920.cpp:58:40: error: request for member 'x' in 'G[p]', which is of non-class type 'int'
         dis[p]=disp(G[q].x,G[q].y,G[p].x,G[p].y);
                                        ^
0_0_21590565_5920.cpp:58:47: error: request for member 'y' in 'G[p]', which is of non-class type 'int'
         dis[p]=disp(G[q].x,G[q].y,G[p].x,G[p].y);
                                               ^
0_0_21590565_5920.cpp:64:45: error: request for member 'x' in 'G[i]', which is of non-class type 'int'
                 dis[i]=Min(dis[i],disp(G[i].x,G[i].y,G[p].x,G[p].y));
                                             ^
0_0_21590565_5920.cpp:64:52: error: request for member 'y' in 'G[i]', which is of non-class type 'int'
                 dis[i]=Min(dis[i],disp(G[i].x,G[i].y,G[p].x,G[p].y));
                                                    ^
0_0_21590565_5920.cpp:64:59: error: request for member 'x' in 'G[p]', which is of non-class type 'int'
                 dis[i]=Min(dis[i],disp(G[i].x,G[i].y,G[p].x,G[p].y));
                                                           ^
0_0_21590565_5920.cpp:64:66: error: request for member 'y' in 'G[p]', which is of non-class type 'int'
                 dis[i]=Min(dis[i],disp(G[i].x,G[i].y,G[p].x,G[p].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-11-23 05:12:43, Gzip enabled