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_39186701_4840.cpp:4:1: error: 'll' does not name a type
    4 | ll sum[N];
      | ^~
0_0_39186701_4840.cpp: In function 'void PushUp(int)':
0_0_39186701_4840.cpp:12:11: error: 'max' was not declared in this scope
   12 |     F[rt]=max( F[rt<<1],F[rt<<1|1] );
      |           ^~~
0_0_39186701_4840.cpp: In function 'void build(int, int, int)':
0_0_39186701_4840.cpp:20:11: error: 'lson' was not declared in this scope
   20 |     build(lson);
      |           ^~~~
0_0_39186701_4840.cpp:21:11: error: 'rson' was not declared in this scope
   21 |     build(rson);
      |           ^~~~
0_0_39186701_4840.cpp: In function 'int query(int, int, int, int, int)':
0_0_39186701_4840.cpp:30:37: error: 'lson' was not declared in this scope
   30 |     if(L<=m) ret=max( ret,query(L,R,lson) );
      |                                     ^~~~
0_0_39186701_4840.cpp:30:18: error: 'max' was not declared in this scope
   30 |     if(L<=m) ret=max( ret,query(L,R,lson) );
      |                  ^~~
0_0_39186701_4840.cpp:31:36: error: 'rson' was not declared in this scope
   31 |     if(R>m) ret=max( ret,query(L,R,rson) );
      |                                    ^~~~
0_0_39186701_4840.cpp:31:17: error: 'max' was not declared in this scope
   31 |     if(R>m) ret=max( ret,query(L,R,rson) );
      |                 ^~~
0_0_39186701_4840.cpp: In function 'int main()':
0_0_39186701_4840.cpp:39:11: error: 'scanf' was not declared in this scope
   39 |     while(scanf("%d%d",&n,&m)!=EOF){
      |           ^~~~~
0_0_39186701_4840.cpp:39:32: error: 'EOF' was not declared in this scope
   39 |     while(scanf("%d%d",&n,&m)!=EOF){
      |                                ^~~
0_0_39186701_4840.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | int const N = 1000005;
0_0_39186701_4840.cpp:40:9: error: 'sum' was not declared in this scope
   40 |         sum[0]=0;
      |         ^~~
0_0_39186701_4840.cpp:41:13: error: 'i' was not declared in this scope
   41 |         rep(i,1,n){
      |             ^
0_0_39186701_4840.cpp:41:9: error: 'rep' was not declared in this scope
   41 |         rep(i,1,n){
      |         ^~~
0_0_39186701_4840.cpp:45:9: error: 'mem' was not declared in this scope
   45 |         mem(lastPos,0);
      |         ^~~
0_0_39186701_4840.cpp:55:13: error: 'll' was not declared in this scope
   55 |             ll temp=(ll)1*(R-L+2)*(R-L+1)/2;
      |             ^~
0_0_39186701_4840.cpp:56:37: error: 'temp' was not declared in this scope
   56 |             if( ((sum[R]-sum[L-1])==temp)&&query(L,R,1,n,1)<L ){
      |                                     ^~~~
0_0_39186701_4840.cpp:57:17: error: 'puts' was not declared in this scope
   57 |                 puts("YES");
      |                 ^~~~
0_0_39186701_4840.cpp:60:17: error: 'puts' was not declared in this scope
   60 |                 puts("NO");
      |                 ^~~~


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-23 09:01:00, Gzip enabled