/ Vijos /

记录详情

Compile Error

/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]]++;
                         ^~

信息

递交者
类型
递交
题目
P1851 车站分级
语言
C++
递交时间
2018-07-31 21:17:23
评测时间
2018-07-31 21:17:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes