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_38691364_4106.cpp: In function 'int subQuery(int, int, int, int, int, int)':
0_0_38691364_4106.cpp:2:38: error: 's' was not declared in this scope
    2 |     if (yL <= pl && pr <= yR) return s[xp][p];
      |                                      ^
0_0_38691364_4106.cpp:6:51: error: 'ls' was not declared in this scope
    6 |         if (yL <= mid) res = subQuery(xp, yL, yR, ls(p), pl, mid);
      |                                                   ^~
0_0_38691364_4106.cpp:7:59: error: 'rs' was not declared in this scope; did you mean 'res'?
    7 |         if (yR > mid) res = max(res, subQuery(xp, yL, yR, rs(p), mid + 1, pr));
      |                                                           ^~
      |                                                           res
0_0_38691364_4106.cpp:7:29: error: 'max' was not declared in this scope
    7 |         if (yR > mid) res = max(res, subQuery(xp, yL, yR, rs(p), mid + 1, pr));
      |                             ^~~
0_0_38691364_4106.cpp: In function 'int query(int, int, int, int, int, int, int)':
0_0_38691364_4106.cpp:12:64: error: 'n' was not declared in this scope
   12 |     if (xL <= pl && pr <= xR) return subQuery(p, yL, yR, 1, 0, n);
      |                                                                ^
0_0_38691364_4106.cpp:17:52: error: 'ls' was not declared in this scope
   17 |         if (xL <= mid) res = query(xL, xR, yL, yR, ls(p), pl, mid);
      |                                                    ^~
0_0_38691364_4106.cpp:18:60: error: 'rs' was not declared in this scope; did you mean 'res'?
   18 |         if (xR > mid) res = max(res, query(xL, xR, yL, yR, rs(p), mid + 1, pr));
      |                                                            ^~
      |                                                            res
0_0_38691364_4106.cpp:18:29: error: 'max' was not declared in this scope
   18 |         if (xR > mid) res = max(res, query(xL, xR, yL, yR, rs(p), mid + 1, pr));
      |                             ^~~


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-29 12:28:39, Gzip enabled