0_0_22821501_21087.cpp:5:1: error: expected initializer before 'll'
ll n,k,m;
^
0_0_22821501_21087.cpp: In function 'bool check(int)':
0_0_22821501_21087.cpp:10:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++){
^
0_0_22821501_21087.cpp:11:9: error: 's' was not declared in this scope
s[i]=s[i-1]+(num[i]>=x);
^
0_0_22821501_21087.cpp:13:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++){
^
0_0_22821501_21087.cpp:14:15: error: 's' was not declared in this scope
while(s[right]-s[i-1]<k&&right<n) right++;
^
0_0_22821501_21087.cpp:14:31: error: 'k' was not declared in this scope
while(s[right]-s[i-1]<k&&right<n) right++;
^
0_0_22821501_21087.cpp:15:12: error: 's' was not declared in this scope
if(s[right]-s[i-1]<k) break;
^
0_0_22821501_21087.cpp:15:28: error: 'k' was not declared in this scope
if(s[right]-s[i-1]<k) break;
^
0_0_22821501_21087.cpp:17:17: error: 'm' was not declared in this scope
if(ans>=m) return true;
^
0_0_22821501_21087.cpp:19:17: error: 'm' was not declared in this scope
return ans>=m;
^
0_0_22821501_21087.cpp: In function 'int main()':
0_0_22821501_21087.cpp:31:31: error: 'n' was not declared in this scope
scanf("%lld%lld%lld",&n,&k,&m);
^
0_0_22821501_21087.cpp:31:34: error: 'k' was not declared in this scope
scanf("%lld%lld%lld",&n,&k,&m);
^
0_0_22821501_21087.cpp:31:37: error: 'm' was not declared in this scope
scanf("%lld%lld%lld",&n,&k,&m);
^
|