记录详情

Compile Error

foo.cc:1:1: error: 'include' does not name a type; did you mean '__has_include'?
 include<cstdio>
 ^~~~~~~
 __has_include
foo.cc: In function 'void paiLie(int, int)':
foo.cc:27:5: error: 'sscanf' was not declared in this scope
     sscanf(ans+1,"%d",&num[len++]);
     ^~~~~~
foo.cc: In function 'int bfs(int, int)':
foo.cc:48:3: error: 'sprintf' was not declared in this scope
   sprintf(cur,"%09d",que[head][0]);//int-->char*这里的09d至关重要,否则算不出答案 
   ^~~~~~~
foo.cc:53:5: error: 'sscanf' was not declared in this scope
     sscanf(cur,"%d",&temp);//新状态转换为int保存到temp 
     ^~~~~~
foo.cc: In function 'int main()':
foo.cc:71:2: error: 'scanf' was not declared in this scope
  scanf("%s",start);//输入初始状态 
  ^~~~~
foo.cc:73:2: error: 'sscanf' was not declared in this scope
  sscanf(start,"%d",&n);//字符串转换为整数 
  ^~~~~~
foo.cc:77:2: error: 'printf' was not declared in this scope
  printf("%d\n",count);
  ^~~~~~
foo.cc:77:2: note: suggested alternative: 'int'
  printf("%d\n",count);
  ^~~~~~
  int
foo.cc: In function 'int bfs(int, int)':
foo.cc:67:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)

信息

递交者
类型
递交
题目
P1172 八数码问题
语言
C++
递交时间
2020-07-29 22:54:08
评测时间
2020-07-29 22:54:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes