0_0_13803232_4371.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13803232_4371.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13803232_4371.cpp:5:9: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13803232_4371.cpp:7:8: error: no macro name given in #define directive
#define
^
0_0_13803232_4371.cpp:2:1: error: expected unqualified-id before '<' token
<stdio.h>
^
0_0_13803232_4371.cpp: In function 'bool toposort()':
0_0_13803232_4371.cpp:16:17: error: 'n' was not declared in this scope
for(i=rear=1;i<=n;i++)
^
0_0_13803232_4371.cpp:18:4: error: 'degree' was not declared in this scope
if(degree[i]==0)
^
0_0_13803232_4371.cpp:20:1: error: 'ans' was not declared in this scope
ans[rear++]=i;
^
0_0_13803232_4371.cpp:24:7: error: 'head' was not declared in this scope
for(u=head[ans[front]];u;u=next[u])
^
0_0_13803232_4371.cpp:24:12: error: 'ans' was not declared in this scope
for(u=head[ans[front]];u;u=next[u])
^
0_0_13803232_4371.cpp:24:28: error: 'next' was not declared in this scope
for(u=head[ans[front]];u;u=next[u])
^
0_0_13803232_4371.cpp:26:6: error: 'degree' was not declared in this scope
if(--degree[val[u]]==0)
^
0_0_13803232_4371.cpp:26:13: error: 'val' was not declared in this scope
if(--degree[val[u]]==0)
^
0_0_13803232_4371.cpp:32:10: error: 'n' was not declared in this scope
if(rear==n+1) return
^
0_0_13803232_4371.cpp: In function 'int main()':
0_0_13803232_4371.cpp:43:21: error: 'n' was not declared in this scope
while(scanf("%d%d",&n,&m)==2&&m+n){
^
0_0_13803232_4371.cpp:43:24: error: 'm' was not declared in this scope
while(scanf("%d%d",&n,&m)==2&&m+n){
^
0_0_13803232_4371.cpp:43:25: error: 'scanf' was not declared in this scope
while(scanf("%d%d",&n,&m)==2&&m+n){
^
0_0_13803232_4371.cpp:45:8: error: 'head' was not declared in this scope
memset(head,0,sizeof(head));
^
0_0_13803232_4371.cpp:45:27: error: 'memset' was not declared in this scope
memset(head,0,sizeof(head));
^
0_0_13803232_4371.cpp:47:8: error: 'degree' was not declared in this scope
memset(degree,0,sizeof(degree));
^
0_0_13803232_4371.cpp:55:1: error: 'val' was not declared in this scope
val[k]=y;
^
0_0_13803232_4371.cpp:57:1: error: 'next' was not declared in this scope
next[k]=head[x];
^
0_0_13803232_4371.cpp:66:15: error: 'ans' was not declared in this scope
printf("%d\n",ans[i]);
^
0_0_13803232_4371.cpp:66:21: error: 'printf' was not declared in this scope
printf("%d\n",ans[i]);
^
0_0_13803232_4371.cpp:70:18: error: 'puts' was not declared in this scope
puts("IMPOSSIBLE");
^
|