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_24360776_20135.c:10:1: error: unknown type name 'Node'
 Node nodes[N];
 ^
0_0_24360776_20135.c: In function 'build':
0_0_24360776_20135.c:13:13: error: request for member 'lef_val' in something not a structure or union
     nodes[i].lef_val = lef_val;
             ^
0_0_24360776_20135.c:14:13: error: request for member 'rig_val' in something not a structure or union
     nodes[i].rig_val = rig_val;
             ^
0_0_24360776_20135.c: In function 'add_val':
0_0_24360776_20135.c:22:17: error: request for member 'lef_val' in something not a structure or union
     if (nodes[i].lef_val >= lef && nodes[i].rig_val <= rig) {
                 ^
0_0_24360776_20135.c:22:44: error: request for member 'rig_val' in something not a structure or union
     if (nodes[i].lef_val >= lef && nodes[i].rig_val <= rig) {
                                            ^
0_0_24360776_20135.c:23:17: error: request for member 'count' in something not a structure or union
         nodes[i].count++;
                 ^
0_0_24360776_20135.c:24:24: error: request for member 'lef_val' in something not a structure or union
     } else if (nodes[i].lef_val <= rig && nodes[i].rig_val >= lef) {
                        ^
0_0_24360776_20135.c:24:51: error: request for member 'rig_val' in something not a structure or union
     } else if (nodes[i].lef_val <= rig && nodes[i].rig_val >= lef) {
                                                   ^
0_0_24360776_20135.c: In function 'dfs':
0_0_24360776_20135.c:31:20: error: request for member 'count' in something not a structure or union
     cum += nodes[i].count;
                    ^
0_0_24360776_20135.c:32:17: error: request for member 'lef_val' in something not a structure or union
     if (nodes[i].lef_val == nodes[i].rig_val) {
                 ^
0_0_24360776_20135.c:32:37: error: request for member 'rig_val' in something not a structure or union
     if (nodes[i].lef_val == nodes[i].rig_val) {
                                     ^
0_0_24360776_20135.c: In function 'main':
0_0_24360776_20135.c:44:33: error: 'Node' undeclared (first use in this function)
         memset(nodes, 0, sizeof(Node) * N);
                                 ^
0_0_24360776_20135.c:44:33: note: each undeclared identifier is reported only once for each function it appears in
0_0_24360776_20135.c:46:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
         for (int i = 0; i < n; ++i) {
         ^
0_0_24360776_20135.c:46:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code


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-09-28 20:16:12, Gzip enabled