0_0_20969162_14129.cpp:7:23: error: stray '#' in program
const int maxn = 100 + 10;
^
0_0_20969162_14129.cpp:8:24: error: stray '#' in program
const int maxm = 1000 + 10;
^
0_0_20969162_14129.cpp:25:37: error: stray '#' in program
if(C[cur_r][cur_c] == '$') sum += G[cur_r][cur_c]; //这个不能放上面,不然就重复计算了
^
0_0_20969162_14129.cpp:26:28: error: stray '#' in program
else if(cur_r != 1) v += G[cur_r][cur_c];
^
0_0_20969162_14129.cpp:31:21: error: stray '#' in program
dfs(from, cur_r+v, cur_c+1, v, sum);
^
0_0_20969162_14129.cpp:31:34: error: stray '#' in program
dfs(from, cur_r+v, cur_c+1, v, sum);
^
0_0_20969162_14129.cpp:32:21: error: stray '#' in program
dfs(from, cur_r+v-1, cur_c+1, v-1, sum);
^
0_0_20969162_14129.cpp:32:36: error: stray '#' in program
dfs(from, cur_r+v-1, cur_c+1, v-1, sum);
^
0_0_20969162_14129.cpp:33:21: error: stray '#' in program
dfs(from, cur_r+v+1, cur_c+1, v+1, sum);
^
0_0_20969162_14129.cpp:33:27: error: stray '#' in program
dfs(from, cur_r+v+1, cur_c+1, v+1, sum);
^
0_0_20969162_14129.cpp:33:40: error: stray '#' in program
dfs(from, cur_r+v+1, cur_c+1, v+1, sum);
^
0_0_20969162_14129.cpp:33:49: error: stray '#' in program
dfs(from, cur_r+v+1, cur_c+1, v+1, sum);
^
0_0_20969162_14129.cpp:37:30: error: stray '#' in program
for(int i = 1; i <= N; i++)
^
0_0_20969162_14129.cpp:37:35: error: stray '#' in program
for(int i = 1; i <= N; i++)
^
0_0_20969162_14129.cpp:38:34: error: stray '#' in program
for(int j = 1; j <= M; j++)
^
0_0_20969162_14129.cpp:38:39: error: stray '#' in program
for(int j = 1; j <= M; j++)
^
0_0_20969162_14129.cpp:45:30: error: stray '#' in program
for(int i = 1; i <= M; i++) dfs(i, 1, i, 0, d[i]);
^
0_0_20969162_14129.cpp:45:35: error: stray '#' in program
for(int i = 1; i <= M; i++) dfs(i, 1, i, 0, d[i]);
^
0_0_20969162_14129.cpp:46:30: error: stray '#' in program
if(C[1][M] == '$') d[M] += G[1][M];
^
0_0_20969162_14129.cpp:7:28: error: expected unqualified-id before numeric constant
const int maxn = 100 + 10;
^
0_0_20969162_14129.cpp:8:29: error: expected unqualified-id before numeric constant
const int maxm = 1000 + 10;
^
0_0_20969162_14129.cpp: In function 'void dfs(int, int, int, int, long long int)':
0_0_20969162_14129.cpp:25:41: error: expected primary-expression before '=' token
if(C[cur_r][cur_c] == '$') sum += G[cur_r][cur_c]; //这个不能放上面,不然就重复计算了
^
0_0_20969162_14129.cpp:26:5: error: 'else' without a previous 'if'
else if(cur_r != 1) v += G[cur_r][cur_c];
^
0_0_20969162_14129.cpp:26:32: error: expected primary-expression before '=' token
else if(cur_r != 1) v += G[cur_r][cur_c];
^
0_0_20969162_14129.cpp:31:24: error: expected ')' before ';' token
dfs(from, cur_r+v, cur_c+1, v, sum);
^
0_0_20969162_14129.cpp:31:47: error: expected ';' before ')' token
dfs(from, cur_r+v, cur_c+1, v, sum);
^
0_0_20969162_14129.cpp:32:24: error: expected ')' before ';' token
dfs(from, cur_r+v-1, cur_c+1, v-1, sum);
^
0_0_20969162_14129.cpp:32:51: error: expected ';' before ')' token
dfs(from, cur_r+v-1, cur_c+1, v-1, sum);
^
0_0_20969162_14129.cpp:33:24: error: expected ')' before ';' token
dfs(from, cur_r+v+1, cur_c+1, v+1, sum);
^
0_0_20969162_14129.cpp:33:59: error: expected ';' before ')' token
dfs(from, cur_r+v+1, cur_c+1, v+1, sum);
^
0_0_20969162_14129.cpp: In function 'void read()':
0_0_20969162_14129.cpp:37:33: error: expected ')' before ';' token
for(int i = 1; i <= N; i++)
^
0_0_20969162_14129.cpp:37:36: error: lvalue required as unary '&' operand
for(int i = 1; i <= N; i++)
^
0_0_20969162_14129.cpp:37:39: error: expected primary-expression before ')' token
for(int i = 1; i <= N; i++)
^
0_0_20969162_14129.cpp:38:24: error: 'j' was not declared in this scope
for(int j = 1; j <= M; j++)
^
0_0_20969162_14129.cpp:38:40: error: lvalue required as unary '&' operand
for(int j = 1; j <= M; j++)
^
0_0_20969162_14129.cpp:38:43: error: expected primary-expression before ')' token
for(int j = 1; j <= M; j++)
^
0_0_20969162_14129.cpp: In function 'void solve()':
0_0_20969162_14129.cpp:45:33: error: expected ')' before ';' token
for(int i = 1; i <= M; i++) dfs(i, 1, i, 0, d[i]);
^
0_0_20969162_14129.cpp:45:36: error: lvalue required as unary '&' operand
for(int i = 1; i <= M; i++) dfs(i, 1, i, 0, d[i]);
^
0_0_20969162_14129.cpp:45:39: error: expected primary-expression before ')' token
for(int i = 1; i <= M; i++) dfs(i, 1, i, 0, d[i]);
^
0_0_20969162_14129.cpp:46:34: error: expected primary-expression before '=' token
if(C[1][M] == '$') d[M] += G[1][M];
^
|