0_0_23311384_3802.cpp: In function 'void InitTop()':
0_0_23311384_3802.cpp:3:26: error: 'n' was not declared in this scope
for (int i = 1; i <= n; i++)
^
0_0_23311384_3802.cpp:4:13: error: 'indegree' was not declared in this scope
if (indegree[i] == 0)
^
0_0_23311384_3802.cpp:5:13: error: 'q' was not declared in this scope
q.push(i);
^
0_0_23311384_3802.cpp: In function 'void TopSort()':
0_0_23311384_3802.cpp:11:12: error: 'q' was not declared in this scope
while(!q.empty())
^
0_0_23311384_3802.cpp:16:18: error: 'n' was not declared in this scope
if (c != n)
^
0_0_23311384_3802.cpp:17:31: error: 'printf' was not declared in this scope
printf("%d ", temp), c++;
^
0_0_23311384_3802.cpp:19:32: error: 'printf' was not declared in this scope
printf("%d\n", temp);
^
0_0_23311384_3802.cpp:20:30: error: 'n' was not declared in this scope
for (int i = 1; i <= n; i++)
^
0_0_23311384_3802.cpp:22:17: error: 'map' was not declared in this scope
if (map[temp][i])
^
0_0_23311384_3802.cpp:24:17: error: 'indegree' was not declared in this scope
indegree[i]--;
^
|