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_20997332_861.cpp: In function 'int main()':
0_0_20997332_861.cpp:13:5: error: 'cin' was not declared in this scope
     cin>>t;
     ^
0_0_20997332_861.cpp:15:27: error: 'scanf' was not declared in this scope
         scanf("%d%d",&n,&l);
                           ^
0_0_20997332_861.cpp:18:18: error: 'INF' was not declared in this scope
         memset(b,INF,sizeof(b));
                  ^
0_0_20997332_861.cpp:18:31: error: 'memset' was not declared in this scope
         memset(b,INF,sizeof(b));
                               ^
0_0_20997332_861.cpp:25:49: error: 'lower_bound' was not declared in this scope
             int temp=lower_bound(b+1,b+n+1,-a[i])-b;
                                                 ^
0_0_20997332_861.cpp:32:49: error: 'lower_bound' was not declared in this scope
                 c[lower_bound(c+1,c+n+1,a[i-l-1])-c]=a[i-l-1];
                                                 ^
0_0_20997332_861.cpp:34:45: error: 'lower_bound' was not declared in this scope
             cc[i]=lower_bound(c+1,c+n+1,a[i])-c;
                                             ^
0_0_20997332_861.cpp:36:42: error: 'max' was not declared in this scope
                 ans=max(ans,cc[i]+bb[i]-1);
                                          ^
0_0_20997332_861.cpp:41:61: error: 'lower_bound' was not declared in this scope
             ans=max(ans,(int)(lower_bound(c+1,c+n+1,a[n-l-1])-c));
                                                             ^
0_0_20997332_861.cpp:41:65: error: 'max' was not declared in this scope
             ans=max(ans,(int)(lower_bound(c+1,c+n+1,a[n-l-1])-c));
                                                                 ^
0_0_20997332_861.cpp:42:39: error: 'printf' was not declared in this scope
         printf("Case #%d: %d\n",ii,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-26 06:25:21, Gzip enabled