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_25606384_2075.cpp:5:15: error: 'll' does not name a type
 struct Node { ll a,b; int id;} mon[N];
               ^
0_0_25606384_2075.cpp: In function 'bool operator<(const Node&, const Node&)':
0_0_25606384_2075.cpp:15:18: error: 'const struct Node' has no member named 'a'
     bool bo0 = a.a<a.b, bo1 = b.a<b.b;
                  ^
0_0_25606384_2075.cpp:15:22: error: 'const struct Node' has no member named 'b'
     bool bo0 = a.a<a.b, bo1 = b.a<b.b;
                      ^
0_0_25606384_2075.cpp:16:14: error: 'bo1' was not declared in this scope
     if (bo0!=bo1)
              ^
0_0_25606384_2075.cpp:19:18: error: 'const struct Node' has no member named 'b'
         return a.b<b.b;
                  ^
0_0_25606384_2075.cpp:19:22: error: 'const struct Node' has no member named 'b'
         return a.b<b.b;
                      ^
0_0_25606384_2075.cpp: In function 'Node merge(const Node&, const Node&)':
0_0_25606384_2075.cpp:31:9: error: 'struct Node' has no member named 'a'
     ret.a = max(fa.a, fa.a-fa.b+son.a);
         ^
0_0_25606384_2075.cpp:31:20: error: 'const struct Node' has no member named 'a'
     ret.a = max(fa.a, fa.a-fa.b+son.a);
                    ^
0_0_25606384_2075.cpp:31:26: error: 'const struct Node' has no member named 'a'
     ret.a = max(fa.a, fa.a-fa.b+son.a);
                          ^
0_0_25606384_2075.cpp:31:31: error: 'const struct Node' has no member named 'b'
     ret.a = max(fa.a, fa.a-fa.b+son.a);
                               ^
0_0_25606384_2075.cpp:31:37: error: 'const struct Node' has no member named 'a'
     ret.a = max(fa.a, fa.a-fa.b+son.a);
                                     ^
0_0_25606384_2075.cpp:32:9: error: 'struct Node' has no member named 'b'
     ret.b = -fa.a+fa.b-son.a+son.b+ret.a;
         ^
0_0_25606384_2075.cpp:32:17: error: 'const struct Node' has no member named 'a'
     ret.b = -fa.a+fa.b-son.a+son.b+ret.a;
                 ^
0_0_25606384_2075.cpp:32:22: error: 'const struct Node' has no member named 'b'
     ret.b = -fa.a+fa.b-son.a+son.b+ret.a;
                      ^
0_0_25606384_2075.cpp:32:28: error: 'const struct Node' has no member named 'a'
     ret.b = -fa.a+fa.b-son.a+son.b+ret.a;
                            ^
0_0_25606384_2075.cpp:32:34: error: 'const struct Node' has no member named 'b'
     ret.b = -fa.a+fa.b-son.a+son.b+ret.a;
                                  ^
0_0_25606384_2075.cpp:32:40: error: 'struct Node' has no member named 'a'
     ret.b = -fa.a+fa.b-son.a+son.b+ret.a;
                                        ^
0_0_25606384_2075.cpp: In function 'int main()':
0_0_25606384_2075.cpp:62:16: error: 'struct Node' has no member named 'a'
         mon[1].a=mon[1].b=0;
                ^
0_0_25606384_2075.cpp:62:25: error: 'struct Node' has no member named 'b'
         mon[1].a=mon[1].b=0;
                         ^
0_0_25606384_2075.cpp:65:35: error: 'struct Node' has no member named 'a'
             scanf("%d%d", &mon[i].a, &mon[i].b);
                                   ^
0_0_25606384_2075.cpp:65:46: error: 'struct Node' has no member named 'b'
             scanf("%d%d", &mon[i].a, &mon[i].b);
                                              ^
0_0_25606384_2075.cpp:89:30: error: 'struct Node' has no member named 'a'
         printf("%d\n",mon[1].a);
                              ^


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 18:19:11, Gzip enabled