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_37279246_29521.c: In function 'main':
0_0_37279246_29521.c:12:3: error: unknown type name 'node'
   node xian[110];
   ^
0_0_37279246_29521.c:14:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 0; i < n; i++) {
   ^
0_0_37279246_29521.c:14:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_37279246_29521.c:15:39: error: request for member 'sx' in something not a structure or union
    scanf_s("%lf %lf %lf %lf", &xian[i].sx, &xian[i].sy, &xian[i].ex, &xian[i].ey);
                                       ^
0_0_37279246_29521.c:15:52: error: request for member 'sy' in something not a structure or union
    scanf_s("%lf %lf %lf %lf", &xian[i].sx, &xian[i].sy, &xian[i].ex, &xian[i].ey);
                                                    ^
0_0_37279246_29521.c:15:65: error: request for member 'ex' in something not a structure or union
    scanf_s("%lf %lf %lf %lf", &xian[i].sx, &xian[i].sy, &xian[i].ex, &xian[i].ey);
                                                                 ^
0_0_37279246_29521.c:15:78: error: request for member 'ey' in something not a structure or union
    scanf_s("%lf %lf %lf %lf", &xian[i].sx, &xian[i].sy, &xian[i].ex, &xian[i].ey);
                                                                              ^
0_0_37279246_29521.c:17:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
    for (int j = 0; j < i; j++) {
    ^
0_0_37279246_29521.c:19:17: error: request for member 'sx' in something not a structure or union
     x1 = xian[j].sx - xian[i].sx;
                 ^
0_0_37279246_29521.c:19:30: error: request for member 'sx' in something not a structure or union
     x1 = xian[j].sx - xian[i].sx;
                              ^
0_0_37279246_29521.c:20:17: error: request for member 'sy' in something not a structure or union
     y1 = xian[j].sy - xian[i].sy;
                 ^
0_0_37279246_29521.c:20:30: error: request for member 'sy' in something not a structure or union
     y1 = xian[j].sy - xian[i].sy;
                              ^
0_0_37279246_29521.c:21:17: error: request for member 'ex' in something not a structure or union
     x2 = xian[j].ex - xian[i].sx;
                 ^
0_0_37279246_29521.c:21:30: error: request for member 'sx' in something not a structure or union
     x2 = xian[j].ex - xian[i].sx;
                              ^
0_0_37279246_29521.c:22:17: error: request for member 'ey' in something not a structure or union
     y2 = xian[j].ey - xian[i].sy;
                 ^
0_0_37279246_29521.c:22:30: error: request for member 'sy' in something not a structure or union
     y2 = xian[j].ey - xian[i].sy;
                              ^
0_0_37279246_29521.c:24:17: error: request for member 'sx' in something not a structure or union
     x1 = xian[j].sx - xian[i].ex;
                 ^
0_0_37279246_29521.c:24:30: error: request for member 'ex' in something not a structure or union
     x1 = xian[j].sx - xian[i].ex;
                              ^
0_0_37279246_29521.c:25:17: error: request for member 'sy' in something not a structure or union
     y1 = xian[j].sy - xian[i].ey;
                 ^
0_0_37279246_29521.c:25:30: error: request for member 'ey' in something not a structure or union
     y1 = xian[j].sy - xian[i].ey;
                              ^
0_0_37279246_29521.c:26:17: error: request for member 'ex' in something not a structure or union
     x2 = xian[j].ex - xian[i].ex;
                 ^
0_0_37279246_29521.c:26:30: error: request for member 'ex' in something not a structure or union
     x2 = xian[j].ex - xian[i].ex;
                              ^
0_0_37279246_29521.c:27:17: error: request for member 'ey' in something not a structure or union
     y2 = xian[j].ey - xian[i].ey;
                 ^
0_0_37279246_29521.c:27:30: error: request for member 'ey' in something not a structure or union
     y2 = xian[j].ey - xian[i].ey;
                              ^


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-25 10:03:58, Gzip enabled