0_0_21004192_700.cpp:1:1: error: 'll' does not name a type
ll a[N],l[N],r[N];
^
0_0_21004192_700.cpp: In function 'int main()':
0_0_21004192_700.cpp:5:25: error: 'scanf' was not declared in this scope
while(~scanf("%d",&n)&&n)
^
0_0_21004192_700.cpp:9:28: error: 'a' was not declared in this scope
scanf("%I64d",&a[i]);
^
0_0_21004192_700.cpp:10:13: error: 'l' was not declared in this scope
l[i]=r[i]=i;
^
0_0_21004192_700.cpp:10:18: error: 'r' was not declared in this scope
l[i]=r[i]=i;
^
0_0_21004192_700.cpp:14:19: error: 'l' was not declared in this scope
while(l[i]>1&&a[l[i]-1]>=a[i])
^
0_0_21004192_700.cpp:14:27: error: 'a' was not declared in this scope
while(l[i]>1&&a[l[i]-1]>=a[i])
^
0_0_21004192_700.cpp:19:19: error: 'r' was not declared in this scope
while(r[i]<n&&a[r[i]+1]>=a[i])
^
0_0_21004192_700.cpp:19:27: error: 'a' was not declared in this scope
while(r[i]<n&&a[r[i]+1]>=a[i])
^
0_0_21004192_700.cpp:22:9: error: 'll' was not declared in this scope
ll ans=0;
^
0_0_21004192_700.cpp:24:13: error: 'ans' was not declared in this scope
ans=max(ans,a[i]*(r[i]-l[i]+1));
^
0_0_21004192_700.cpp:24:25: error: 'a' was not declared in this scope
ans=max(ans,a[i]*(r[i]-l[i]+1));
^
0_0_21004192_700.cpp:24:31: error: 'r' was not declared in this scope
ans=max(ans,a[i]*(r[i]-l[i]+1));
^
0_0_21004192_700.cpp:24:36: error: 'l' was not declared in this scope
ans=max(ans,a[i]*(r[i]-l[i]+1));
^
0_0_21004192_700.cpp:24:43: error: 'max' was not declared in this scope
ans=max(ans,a[i]*(r[i]-l[i]+1));
^
0_0_21004192_700.cpp:25:26: error: 'ans' was not declared in this scope
printf("%I64d\n",ans);
^
0_0_21004192_700.cpp:25:29: error: 'printf' was not declared in this scope
printf("%I64d\n",ans);
^
|