/ Vijos /

记录详情

Compile Error

foo.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 include<iostream>
        ^
foo.c:8:1: error: unknown type name 'bool'
 bool Hash[400000]={0};
 ^
foo.c:11:1: error: unknown type name 'bool'
 bool Flag(int a,int b)
 ^
foo.c: In function 'Kto':
foo.c:29:1: error: unknown type name 'bool'
 bool h[9]={0};
 ^
foo.c:41:1: warning: implicit declaration of function 'coJst' [-Wimplicit-function-declaration]
 hs+=coJst(9-i);
 ^
foo.c: At top level:
foo.c:45:1: warning: return type defaults to 'int' [-Wreturn-type]
 main()
 ^
foo.c: In function 'main':
foo.c:47:1: error: unknown type name 'bool'
 bool flag;
 ^
foo.c:50:1: error: 'cin' undeclared (first use in this function)
 cin>>s;
 ^
foo.c:50:1: note: each undeclared identifier is reported only once for each function it appears in
foo.c:101:1: error: 'cout' undeclared (first use in this function)
 cout<<d[head].ans+1;
 ^
foo.c:48:7: warning: unused variable 'conut' [-Wunused-variable]
 int b,conut=0,i,j,t;
       ^
foo.c:102:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1360 八数码问题
语言
C
递交时间
2014-10-31 21:13:54
评测时间
2014-10-31 21:13:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes