/in/foo.cc:20:16: error: expected primary-expression before ';' token
const int N = ;
^
/in/foo.cc:21:16: error: expected primary-expression before ';' token
const int M = ;
^
/in/foo.cc:24:10: error: expected primary-expression before ']' token
int k[N+], kp[N+];
^
/in/foo.cc:24:18: error: expected primary-expression before ']' token
int k[N+], kp[N+];
^
/in/foo.cc:27:10: error: expected primary-expression before ']' token
}edge[M+];
^
/in/foo.cc:28:13: error: expected primary-expression before ']' token
int path[N+], top;
^
/in/foo.cc:29:12: error: expected primary-expression before ']' token
int ans[N+];
^
/in/foo.cc:41:11: error: expected primary-expression before ']' token
int in[N+];
^
/in/foo.cc: In function 'void add(int, int)':
/in/foo.cc:44:6: error: 'edge' was not declared in this scope
edge[++top].to = v;
^~~~
/in/foo.cc:45:23: error: 'path' was not declared in this scope
edge[top].next = path[u];
^~~~
/in/foo.cc: In function 'void topsort(int)':
/in/foo.cc:50:19: error: expected primary-expression before ';' token
for (int i = ; i <= n; i++) {
^
/in/foo.cc:51:6: error: 'in' was not declared in this scope
in[i] = kp[i];
^~
/in/foo.cc:51:14: error: 'kp' was not declared in this scope
in[i] = kp[i];
^~
/in/foo.cc:52:48: error: 'k' was not declared in this scope
if (kp[i] == && i != lim) Q.push(node(i, k[i]));
^
/in/foo.cc:54:31: error: expected primary-expression before ';' token
for (int cnt = n; cnt >= ; cnt--) {
^
/in/foo.cc:61:6: error: 'ans' was not declared in this scope
ans[cnt] = Q.top().x; Q.pop();
^~~
/in/foo.cc:62:19: error: 'path' was not declared in this scope
for (int i = path[ans[cnt]]; i; i= edge[i].next) {
^~~~
/in/foo.cc:62:41: error: 'edge' was not declared in this scope
for (int i = path[ans[cnt]]; i; i= edge[i].next) {
^~~~
/in/foo.cc:63:10: error: 'in' was not declared in this scope
in[edge[i].to]--;
^~
/in/foo.cc:64:32: error: expected primary-expression before ')' token
if (in[edge[i].to] == ) {
^
/in/foo.cc:65:57: error: 'k' was not declared in this scope
if (edge[i].to != lim) Q.push(node(edge[i].to, k[edge[i].to]));
^
/in/foo.cc:52:23: error: label 'i' used but not defined
if (kp[i] == && i != lim) Q.push(node(i, k[i]));
^
/in/foo.cc: In function 'void work()':
/in/foo.cc:72:19: error: expected primary-expression before ';' token
for (int i = ; i <= n; i++) scanf("%d", &k[i]);
^
/in/foo.cc:72:47: error: 'k' was not declared in this scope
for (int i = ; i <= n; i++) scanf("%d", &k[i]);
^
/in/foo.cc:73:19: error: expected primary-expression before ';' token
for (int i = ; i <= m; i++) {
^
/in/foo.cc:74:40: error: 'kp' was not declared in this scope
scanf("%d%d", &u, &v); add(v, u); kp[u]++;
^~
/in/foo.cc:76:14: error: too few arguments to function 'void topsort(int)'
topsort();
^
/in/foo.cc:48:7: note: declared here
void topsort(int lim) {
^~~~~~~
/in/foo.cc:77:19: error: expected primary-expression before ';' token
for (int i = ; i <= n; i++) printf("%d ", ans[i]);
^
/in/foo.cc:77:48: error: 'ans' was not declared in this scope
for (int i = ; i <= n; i++) printf("%d ", ans[i]);
^~~
/in/foo.cc:79:19: error: expected primary-expression before ';' token
for (int i = ; i <= n; i++) topsort(i);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:83:6: error: return-statement with no value, in function returning 'int' [-fpermissive]
return ;
^~~~~~