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_37777600_5543.cpp:1:1: error: 'include' does not name a type
 include<bits/stdc++.h>
 ^
0_0_37777600_5543.cpp:11:9: error: 'vector' does not name a type
 typedef vector<int> vi;
         ^
0_0_37777600_5543.cpp:12:9: error: 'pair' does not name a type
 typedef pair<int,int> pii;
         ^
0_0_37777600_5543.cpp: In function 'int read()':
0_0_37777600_5543.cpp:18:33: error: 'getchar' was not declared in this scope
     int x=0,f=1;char ch=getchar();
                                 ^
0_0_37777600_5543.cpp:19:22: error: 'isdigit' was not declared in this scope
     while(!isdigit(ch)) {if(ch=='-') f=-1;ch=getchar();}
                      ^
0_0_37777600_5543.cpp:20:21: error: 'isdigit' was not declared in this scope
     while(isdigit(ch)) {x=x*10+ch-'0';ch=getchar();}
                     ^
0_0_37777600_5543.cpp: In function 'll readll()':
0_0_37777600_5543.cpp:25:32: error: 'getchar' was not declared in this scope
     ll x=0,f=1;char ch=getchar();
                                ^
0_0_37777600_5543.cpp:26:22: error: 'isdigit' was not declared in this scope
     while(!isdigit(ch)) {if(ch=='-') f=-1;ch=getchar();}
                      ^
0_0_37777600_5543.cpp:27:21: error: 'isdigit' was not declared in this scope
     while(isdigit(ch)) {x=x*10+ch-'0';ch=getchar();}
                     ^
0_0_37777600_5543.cpp: At global scope:
0_0_37777600_5543.cpp:44:1: error: 'pair' does not name a type
 pair<ll,int> q[MAXN];
 ^
0_0_37777600_5543.cpp: In function 'void build(int, int, int)':
0_0_37777600_5543.cpp:51:34: error: 'min' was not declared in this scope
     mn[k]=min(mn[k<<1],mn[k<<1|1]);
                                  ^
0_0_37777600_5543.cpp: In function 'int solve()':
0_0_37777600_5543.cpp:70:47: error: 'min' was not declared in this scope
     n=read(),a[0]=sum[0]=read(),k=min(read(),n);
                                               ^
0_0_37777600_5543.cpp:72:58: error: 'max' was not declared in this scope
     f[0]=sum[0]<<1;rep(i,1,n) f[i]=max(sum[i]+a[i],f[i-1]);
                                                          ^
0_0_37777600_5543.cpp: In function 'int main()':
0_0_37777600_5543.cpp:89:44: error: 'puts' was not declared in this scope
     rep(T,1,read()) puts(solve()?"YES":"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-26 16:18:18, Gzip enabled