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);
^
|