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_38695904_4469.cpp: In function 'void build(int, int, int)':
0_0_38695904_4469.cpp:15:9: error: 'tr' was not declared in this scope; did you mean 'r'?
   15 |         tr[p].l = l, tr[p].r = r;
      |         ^~
      |         r
0_0_38695904_4469.cpp: In function 'void change(int, int)':
0_0_38695904_4469.cpp:26:12: error: 'tr' was not declared in this scope; did you mean 'tm'?
   26 |         if(tr[p].l == tr[p].r) {
      |            ^~
      |            tm
0_0_38695904_4469.cpp:30:20: error: 'tr' was not declared in this scope; did you mean 'tm'?
   30 |         int mid = (tr[p].l + tr[p].r) / 2;
      |                    ^~
      |                    tm
0_0_38695904_4469.cpp: In function 'int query(int, int, int)':
0_0_38695904_4469.cpp:36:17: error: 'tr' was not declared in this scope; did you mean 'r'?
   36 |         if(l <= tr[p].l && r >= tr[p].r) {
      |                 ^~
      |                 r
0_0_38695904_4469.cpp:39:20: error: 'tr' was not declared in this scope; did you mean 'r'?
   39 |         int mid = (tr[p].l + tr[p].r) / 2;
      |                    ^~
      |                    r


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-15 02:13:30, Gzip enabled