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_27979843_15901.cpp:4:16: error: expected initializer before numeric constant
 const int  MAX 100000
                ^
0_0_27979843_15901.cpp: In function 'int find(int, int, int)':
0_0_27979843_15901.cpp:13:8: error: 'c' was not declared in this scope
     if(c[mid]<x) return find(mid+1,len,x);
        ^
0_0_27979843_15901.cpp:13:36: error: 'len' was not declared in this scope
     if(c[mid]<x) return find(mid+1,len,x);
                                    ^
0_0_27979843_15901.cpp: In function 'int main()':
0_0_27979843_15901.cpp:27:25: error: 'a' was not declared in this scope
             scanf("%d",&a[i]);
                         ^
0_0_27979843_15901.cpp:34:9: error: 'len' was not declared in this scope
         len=0;  c[0]=-INF;
         ^
0_0_27979843_15901.cpp:34:17: error: 'c' was not declared in this scope
         len=0;  c[0]=-INF;
                 ^
0_0_27979843_15901.cpp:34:23: error: 'INF' was not declared in this scope
         len=0;  c[0]=-INF;
                       ^
0_0_27979843_15901.cpp:37:16: error: 'a' was not declared in this scope
             if(a[i]>c[len]) j=++len;
                ^
0_0_27979843_15901.cpp:39:18: error: 'a' was not declared in this scope
             c[j]=a[i];
                  ^


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-12-05 10:14:41, Gzip enabled