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)