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_39114236_23703.cpp:13:21: error: redeclaration of 'int Node::lb'
   13 |     int lb, rb, la, lb;
      |                     ^~
0_0_39114236_23703.cpp:13:9: note: previous declaration 'int Node::lb'
   13 |     int lb, rb, la, lb;
      |         ^~
0_0_39114236_23703.cpp: In function 'void pus(int, int, int)':
0_0_39114236_23703.cpp:19:5: error: expected ',' or ';' before 's'
   19 |     s[k].vbl = max(s[tl].vbl, s[tr].vbl);
      |     ^
0_0_39114236_23703.cpp:20:5: error: 's' was not declared in this scope
   20 |     s[k].val = max(s[tl].val, s[tr].val);
      |     ^
0_0_39114236_23703.cpp:23:16: error: expected unqualified-id before '==' token
   23 |     if (s[tl]. == mid - l + 1)
      |                ^~
0_0_39114236_23703.cpp: In function 'void build_tree(long long int, int, int)':
0_0_39114236_23703.cpp:38:50: error: 'struct Node' has no member named 'ra'; did you mean 'rb'?
   38 |         tree[now].val = tree[now].la = tree[now].ra = a[l];
      |                                                  ^~
      |                                                  rb
0_0_39114236_23703.cpp:39:57: error: 'i' was not declared in this scope
   39 |         tree[now].vbl = tree[now].lb = tree[now].rb = a[i] ^ 1;
      |                                                         ^


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 04:21:04, Gzip enabled