0_0_25142523_13964.cpp:13:1: error: expected initializer before 'int'
int answer_dist, answer_len;
^
0_0_25142523_13964.cpp: In function 'void queue2_push(int, int, int)':
0_0_25142523_13964.cpp:101:6: error: 'visit' was not declared in this scope
if (visit[row][col] >= min)
^
0_0_25142523_13964.cpp:120:3: error: 'visit' was not declared in this scope
visit[row][col] = min;
^
0_0_25142523_13964.cpp: In function 'void queue3_push(int, int, int)':
0_0_25142523_13964.cpp:151:7: error: 'visit' was not declared in this scope
if ((visit[row][col] == 1) || (dist[row][col] < answer_dist))
^
0_0_25142523_13964.cpp:151:50: error: 'answer_dist' was not declared in this scope
if ((visit[row][col] == 1) || (dist[row][col] < answer_dist))
^
0_0_25142523_13964.cpp:158:2: error: 'visit' was not declared in this scope
visit[row][col] = 1;
^
0_0_25142523_13964.cpp: In function 'void find_dist()':
0_0_25142523_13964.cpp:201:4: error: 'visit' was not declared in this scope
visit[i][j] = 0;
^
0_0_25142523_13964.cpp:212:19: error: 'answer_dist' was not declared in this scope
if (cur.dist > answer_dist)
^
0_0_25142523_13964.cpp:219:20: error: 'answer_dist' was not declared in this scope
if (cur.dist <= answer_dist)
^
0_0_25142523_13964.cpp: In function 'void find_step()':
0_0_25142523_13964.cpp:238:4: error: 'visit' was not declared in this scope
visit[i][j] = 0;
^
0_0_25142523_13964.cpp:248:4: error: 'answer_len' was not declared in this scope
answer_len = queue[head].dist;
^
0_0_25142523_13964.cpp: In function 'int main()':
0_0_25142523_13964.cpp:273:3: error: 'answer_dist' was not declared in this scope
answer_dist = -1;
^
0_0_25142523_13964.cpp:276:34: error: 'answer_len' was not declared in this scope
printf("%d %d\n", answer_dist, answer_len);
^
|