/in/foo.cc:13:1: error: 'lnog' does not name a type
lnog lnog a[1001],nn[1001],ss[1001],d[1001];
^~~~
/in/foo.cc: In function 'void topsort()':
/in/foo.cc:28:13: error: 'nn' was not declared in this scope
if(!nn[i])
^~
/in/foo.cc:31:13: error: 'd' was not declared in this scope
d[i]=1;
^
/in/foo.cc:40:13: error: 'd' was not declared in this scope
d[v]=d[tt]+1;
^
/in/foo.cc:42:13: error: 'nn' was not declared in this scope
nn[v]--;
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:50:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d %d",&n,&m);
^
/in/foo.cc:50:24: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:53:16: error: 'a' was not declared in this scope
memset(a,0,sizeof(a));
^
/in/foo.cc:54:16: error: 'ss' was not declared in this scope
memset(ss,0,sizeof(ss));
^~
/in/foo.cc:55:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d",&s);
^
/in/foo.cc:69:25: error: 'nn' was not declared in this scope
nn[a[j]]++;
^~