0_0_29421222_16017.cpp:13:13: error: 'maxn' was not declared in this scope
int n, k, a[maxn], sum[maxn], ans, L, R;
^
0_0_29421222_16017.cpp:13:24: error: 'maxn' was not declared in this scope
int n, k, a[maxn], sum[maxn], ans, L, R;
^
0_0_29421222_16017.cpp:14:7: error: 'maxn' was not declared in this scope
int q[maxn], p[maxn], ft, rr;
^
0_0_29421222_16017.cpp:14:16: error: 'maxn' was not declared in this scope
int q[maxn], p[maxn], ft, rr;
^
0_0_29421222_16017.cpp: In function 'int main()':
0_0_29421222_16017.cpp:24:50: error: 'a' was not declared in this scope
for(int i = 1; i <= n; ++i) scanf("%d", &a[i]);
^
0_0_29421222_16017.cpp:25:36: error: 'a' was not declared in this scope
for(int i = 1; i < k; ++i) a[n+i] = a[i];
^
0_0_29421222_16017.cpp:26:9: error: 'sum' was not declared in this scope
sum[0] = a[n];
^
0_0_29421222_16017.cpp:26:18: error: 'a' was not declared in this scope
sum[0] = a[n];
^
0_0_29421222_16017.cpp:28:29: error: 'INF' was not declared in this scope
ft = rr = 0; ans = -INF;
^
0_0_29421222_16017.cpp:29:9: error: 'q' was not declared in this scope
q[rr++] = sum[0]; p[rr-1] = 0;
^
0_0_29421222_16017.cpp:29:27: error: 'p' was not declared in this scope
q[rr++] = sum[0]; p[rr-1] = 0;
^
|