0_0_17809657_9852.cpp:1:8: error: 'maxn' was not declared in this scope
int dp[maxn], zero[maxn];
^
0_0_17809657_9852.cpp:1:20: error: 'maxn' was not declared in this scope
int dp[maxn], zero[maxn];
^
0_0_17809657_9852.cpp:2:7: error: 'maxn' was not declared in this scope
int a[maxn];
^
0_0_17809657_9852.cpp: In function 'int main()':
0_0_17809657_9852.cpp:5:22: error: 'scanf' was not declared in this scope
int T;scanf("%d", &T);
^
0_0_17809657_9852.cpp:9:17: error: 'a' was not declared in this scope
scanf("%d", &a[i]);
^
0_0_17809657_9852.cpp:10:4: error: 'zero' was not declared in this scope
zero[i] = zero[i - 1] + (a[i] == 0);
^
0_0_17809657_9852.cpp:12:10: error: 'dp' was not declared in this scope
memset(dp, 0x3f, sizeof(dp));
^
0_0_17809657_9852.cpp:12:30: error: 'memset' was not declared in this scope
memset(dp, 0x3f, sizeof(dp));
^
0_0_17809657_9852.cpp:14:7: error: 'a' was not declared in this scope
if(a[i] == 0) continue;
^
0_0_17809657_9852.cpp:15:4: error: 'a' was not declared in this scope
a[i] -= zero[i];
^
0_0_17809657_9852.cpp:15:12: error: 'zero' was not declared in this scope
a[i] -= zero[i];
^
0_0_17809657_9852.cpp:16:34: error: 'lower_bound' was not declared in this scope
*(lower_bound(dp, dp + n, a[i])) = a[i];
^
0_0_17809657_9852.cpp:18:56: error: 'oo' was not declared in this scope
printf("Case #%d: %d\n", tt, lower_bound(dp, dp + n, oo) - dp + zero[n- 1]);
^
0_0_17809657_9852.cpp:18:58: error: 'lower_bound' was not declared in this scope
printf("Case #%d: %d\n", tt, lower_bound(dp, dp + n, oo) - dp + zero[n- 1]);
^
0_0_17809657_9852.cpp:18:67: error: 'zero' was not declared in this scope
printf("Case #%d: %d\n", tt, lower_bound(dp, dp + n, oo) - dp + zero[n- 1]);
^
0_0_17809657_9852.cpp:18:77: error: 'printf' was not declared in this scope
printf("Case #%d: %d\n", tt, lower_bound(dp, dp + n, oo) - dp + zero[n- 1]);
^
|