0_0_22326289_4218.cpp:5:1: error: expected ',' or ';' before 'int'
int b[N], a[N], dp[N], n;
^
0_0_22326289_4218.cpp: In function 'int Lis()':
0_0_22326289_4218.cpp:9:19: error: 'n' was not declared in this scope
for(int i=0;i<n;i++) {
^
0_0_22326289_4218.cpp:10:12: error: 'b' was not declared in this scope
if(b[i])continue;
^
0_0_22326289_4218.cpp:11:22: error: 'dp' was not declared in this scope
*lower_bound(dp, dp + n, a[i]) = a[i];
^
0_0_22326289_4218.cpp:11:34: error: 'a' was not declared in this scope
*lower_bound(dp, dp + n, a[i]) = a[i];
^
0_0_22326289_4218.cpp:14:13: error: 'b' was not declared in this scope
b[i] = 1;
^
0_0_22326289_4218.cpp:18:23: error: 'dp' was not declared in this scope
res = lower_bound(dp, dp + n, INF) - dp;
^
0_0_22326289_4218.cpp:18:32: error: 'n' was not declared in this scope
res = lower_bound(dp, dp + n, INF) - dp;
^
0_0_22326289_4218.cpp: In function 'int main()':
0_0_22326289_4218.cpp:24:24: error: 'n' was not declared in this scope
while(~scanf("%d",&n)) {
^
0_0_22326289_4218.cpp:25:16: error: 'b' was not declared in this scope
memset(b, 0, sizeof(b));
^
0_0_22326289_4218.cpp:26:16: error: 'a' was not declared in this scope
memset(a, 0, sizeof(a));
^
0_0_22326289_4218.cpp:29:14: error: 'dp' was not declared in this scope
fill(dp, dp + n, INF);
^
0_0_22326289_4218.cpp:30:19: error: 'lis' was not declared in this scope
ans = lis();
^
|