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_25175129_18300.cpp: In function 'void RMQ_make()':
0_0_25175129_18300.cpp:4:24: error: 'n' was not declared in this scope
     for(j = 1; (1<<j)<=n; ++j)
                        ^
0_0_25175129_18300.cpp:7:13: error: 'd' was not declared in this scope
             d[i][j] = max(d[i][j-1],d[i+(1<<(j-1))][j-1]);
             ^
0_0_25175129_18300.cpp:7:57: error: 'max' was not declared in this scope
             d[i][j] = max(d[i][j-1],d[i+(1<<(j-1))][j-1]);
                                                         ^
0_0_25175129_18300.cpp: In function 'int RMQ(int, int)':
0_0_25175129_18300.cpp:14:16: error: 'd' was not declared in this scope
     return max(d[L][k],d[R-(1<<k)+1][k]);
                ^
0_0_25175129_18300.cpp:14:40: error: 'max' was not declared in this scope
     return max(d[L][k],d[R-(1<<k)+1][k]);
                                        ^


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-06-17 05:51:25, Gzip enabled