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_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);
                             ^


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-30 01:26:42, Gzip enabled