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_26835259_6958.cpp: In function 'int query(int, int, int)':
0_0_26835259_6958.cpp:54:19: error: request for member 'r' in 'lpos[o]', which is of non-class type 'int'
  int l = lpos[o]. r = rpos[o], maxx = 0;
                   ^
0_0_26835259_6958.cpp:55:18: error: 'r' was not declared in this scope
  if (l >= ql and r <= qr) {
                  ^
0_0_26835259_6958.cpp:58:17: error: 'r' was not declared in this scope
  int mid = (l + r) >> 1;
                 ^
0_0_26835259_6958.cpp:60:3: error: 'maxx' was not declared in this scope
   maxx = max (maxx, query (o << 1, ql, qr));
   ^
0_0_26835259_6958.cpp:62:3: error: 'maxx' was not declared in this scope
   maxx = max (maxx, query (o << 1 | 1, ql, qr));
   ^
0_0_26835259_6958.cpp:63:9: error: 'maxx' was not declared in this scope
  return maxx;
         ^
0_0_26835259_6958.cpp: In function 'int main()':
0_0_26835259_6958.cpp:82:41: error: too many arguments to function 'int query(int, int, int)'
     printf ("%d\n", query (l, r, 1, n, 1));
                                         ^
0_0_26835259_6958.cpp:53:12: note: declared here
 inline int query (int o, int ql, int qr) {
            ^


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-22 17:56:44, Gzip enabled