0_0_21417768_25141.c:10:5: error: variably modified 'a' at file scope
int a[maxn], sum[maxn];
^
0_0_21417768_25141.c:10:14: error: variably modified 'sum' at file scope
int a[maxn], sum[maxn];
^
0_0_21417768_25141.c:11:5: error: variably modified 'l' at file scope
int l[maxn], r[maxn];
^
0_0_21417768_25141.c:11:14: error: variably modified 'r' at file scope
int l[maxn], r[maxn];
^
0_0_21417768_25141.c:12:5: error: variably modified 'dp' at file scope
int dp[maxn][maxn];
^
0_0_21417768_25141.c:12:5: error: variably modified 'dp' at file scope
0_0_21417768_25141.c: In function 'main':
0_0_21417768_25141.c:3:22: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:19:3: note: in expansion of macro 'rep'
rep(i, 1, n + 1) {
^
0_0_21417768_25141.c:3:22: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:19:3: note: in expansion of macro 'rep'
rep(i, 1, n + 1) {
^
0_0_21417768_25141.c:24:7: error: redefinition of 'i'
rep(i, 1, n + 1) {
^
0_0_21417768_25141.c:3:30: note: in definition of macro 'rep'
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:19:7: note: previous definition of 'i' was here
rep(i, 1, n + 1) {
^
0_0_21417768_25141.c:3:30: note: in definition of macro 'rep'
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:3:22: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:24:3: note: in expansion of macro 'rep'
rep(i, 1, n + 1) {
^
0_0_21417768_25141.c:35:7: error: redefinition of 'i'
rep(i, 1, n + 1) {
^
0_0_21417768_25141.c:3:30: note: in definition of macro 'rep'
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:24:7: note: previous definition of 'i' was here
rep(i, 1, n + 1) {
^
0_0_21417768_25141.c:3:30: note: in definition of macro 'rep'
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:3:22: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:35:3: note: in expansion of macro 'rep'
rep(i, 1, n + 1) {
^
0_0_21417768_25141.c:3:22: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:38:4: note: in expansion of macro 'rep'
rep(j, i, n + 1) {
^
0_0_21417768_25141.c:3:22: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:45:3: note: in expansion of macro 'rep'
rep(t, 1, cnt + 1) {
^
0_0_21417768_25141.c:3:22: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
#define rep(i, a, b) for(int i = (a); i < (b); i++)
^
0_0_21417768_25141.c:48:4: note: in expansion of macro 'rep'
rep(i, L, R + 1) {
^
0_0_21417768_25141.c:4:22: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
#define per(i, a, b) for(int i = (a); i > b; i--)
^
0_0_21417768_25141.c:53:6: note: in expansion of macro 'per'
per(j, R, i) {
^
|