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];
^
|