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_32868178_5086.cpp:1:7: error: stray '#' in program
 <code>#include <bits/stdc++.h>
       ^
0_0_32868178_5086.cpp:1:1: error: expected unqualified-id before '<' token
 <code>#include <bits/stdc++.h>
 ^
0_0_32868178_5086.cpp: In function 'int read()':
0_0_32868178_5086.cpp:5:35: error: 'getchar' was not declared in this scope
     int rtn=0,f=1;char ch=getchar();
                                   ^
0_0_32868178_5086.cpp:6:22: error: 'isdigit' was not declared in this scope
     while(!isdigit(ch)){if(ch=='-')f=-1;ch=getchar();}
                      ^
0_0_32868178_5086.cpp:7:21: error: 'isdigit' was not declared in this scope
     while(isdigit(ch))rtn=(rtn<<1)+(rtn<<3)+ch-'0',ch=getchar();
                     ^
0_0_32868178_5086.cpp: In function 'void SegmentTree::pushup(int)':
0_0_32868178_5086.cpp:20:47: error: 'max' was not declared in this scope
         T[p].max=max(T[p<<1].max,T[p<<1|1].max);
                                               ^
0_0_32868178_5086.cpp: In function 'int SegmentTree::query_max(int, int, int, int, int)':
0_0_32868178_5086.cpp:74:88: error: 'max' was not declared in this scope
         else return max(query_max(p<<1,lp,mid,l,mid),query_max(p<<1|1,mid+1,rp,mid+1,r));
                                                                                        ^
0_0_32868178_5086.cpp: In function 'int main()':
0_0_32868178_5086.cpp:86:62: error: 'printf' was not declared in this scope
             else if(opt==1)printf("%d\n",query_max(1,1,n,l,r));
                                                              ^
0_0_32868178_5086.cpp:87:64: error: 'printf' was not declared in this scope
             else if(opt==2)printf("%lld\n",query_sum(1,1,n,l,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-01 08:34:05, Gzip enabled