/ Vijos /

记录详情

Compile Error

foo.cpp:3:1: error: 'include' does not name a type
 include<cstdio>
 ^
foo.cpp: In function 'int main()':
foo.cpp:7:18: error: 'n' was not declared in this scope
 scanf ("%d%d%d",&n ,&s ,&t);
                  ^
foo.cpp:7:22: error: 's' was not declared in this scope
 scanf ("%d%d%d",&n ,&s ,&t);
                      ^
foo.cpp:7:26: error: 't' was not declared in this scope
 scanf ("%d%d%d",&n ,&s ,&t);
                          ^
foo.cpp:7:27: error: 'scanf' was not declared in this scope
 scanf ("%d%d%d",&n ,&s ,&t);
                           ^
foo.cpp:9:15: error: 'd' was not declared in this scope
 scanf("%d" ,& d );
               ^
foo.cpp:10:15: error: 'f' was not declared in this scope
 scanf("%d" ,& f[d]);
               ^
foo.cpp:12:1: error: 'N' was not declared in this scope
 N[ f [ d ] ] += 1 ;
 ^
foo.cpp:13:16: error: 'l' was not declared in this scope
 while(q!='\n'){l[d]+=1; scanf("%c",&q); }
                ^
foo.cpp:15:10: error: 'a' was not declared in this scope
 int i=t; a-=N[t]; b =l[t];
          ^
foo.cpp:15:13: error: 'N' was not declared in this scope
 int i=t; a-=N[t]; b =l[t];
             ^
foo.cpp:15:19: error: 'b' was not declared in this scope
 int i=t; a-=N[t]; b =l[t];
                   ^
foo.cpp:15:22: error: 'l' was not declared in this scope
 int i=t; a-=N[t]; b =l[t];
                      ^
foo.cpp:16:15: error: 'c' was not declared in this scope
 while ( i ) { c[i] =1; i =f[i]; }
               ^
foo.cpp:16:27: error: 'f' was not declared in this scope
 while ( i ) { c[i] =1; i =f[i]; }
                           ^
foo.cpp:17:10: error: 'c' was not declared in this scope
 while ( !c[s] ) { b+=l[s]; s =f[s]; a+=N[s]; }
          ^
foo.cpp:17:31: error: 'f' was not declared in this scope
 while ( !c[s] ) { b+=l[s]; s =f[s]; a+=N[s]; }
                               ^
foo.cpp:18:31: error: 'f' was not declared in this scope
 while ( t !=s ) { a+=N[t]; t =f[t]; b+=l[t]; }
                               ^
foo.cpp:19:20: error: 'printf' was not declared in this scope
 printf("%d\n%d",b,a);
                    ^

信息

递交者
类型
递交
题目
P1427 机密信息
语言
C++
递交时间
2014-06-01 19:51:04
评测时间
2014-06-01 19:51:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes