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_25616237_23283.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_25616237_23283.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_25616237_23283.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_25616237_23283.cpp: In function 'void PushUP(int)':
0_0_25616237_23283.cpp:13:37: error: 'max' was not declared in this scope
     T[rt] = max(T[rt<<1], T[rt<<1|1]);
                                     ^
0_0_25616237_23283.cpp: In function 'void Build(int, int, int)':
0_0_25616237_23283.cpp:18:26: error: 'scanf' was not declared in this scope
         scanf("%d",&T[rt]);
                          ^
0_0_25616237_23283.cpp: In function 'int Query(int, int, int, int, int)':
0_0_25616237_23283.cpp:42:49: error: 'max' was not declared in this scope
     if(L <= m)  ret = max(ret, Query(L, R, lson));
                                                 ^
0_0_25616237_23283.cpp:43:47: error: 'max' was not declared in this scope
     if(R > m) ret = max(ret, Query(L, R, rson));
                                               ^
0_0_25616237_23283.cpp: In function 'int main()':
0_0_25616237_23283.cpp:50:32: error: 'scanf' was not declared in this scope
     while(scanf("%d %d", &n, &m)==2){
                                ^
0_0_25616237_23283.cpp:54:65: error: 'printf' was not declared in this scope
             if(ch[0] == 'Q') printf("%d\n", Query(a, b, 1, n, 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-29 19:00:03, Gzip enabled