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