/ XMU_ACM /

记录详情

Compile Error

foo.cc: In function 'int bfs(int, int)':
foo.cc:34:3: error: 'sprintf_s' was not declared in this scope
   sprintf_s(cur, "%09d", que[h][0]);
   ^~~~~~~~~
foo.cc:34:3: note: suggested alternative: 'sprintf'
   sprintf_s(cur, "%09d", que[h][0]);
   ^~~~~~~~~
   sprintf
foo.cc:40:5: error: 'sscanf_s' was not declared in this scope
     sscanf_s(cur, "%d", &temp);//换成新状态
     ^~~~~~~~
foo.cc:40:5: note: suggested alternative: 'sscanf'
     sscanf_s(cur, "%d", &temp);//换成新状态
     ^~~~~~~~
     sscanf
foo.cc: In function 'int main()':
foo.cc:69:2: error: 'sscanf_s' was not declared in this scope
  sscanf_s(first, "%d", &n);
  ^~~~~~~~
foo.cc:69:2: note: suggested alternative: 'sscanf'
  sscanf_s(first, "%d", &n);
  ^~~~~~~~
  sscanf
foo.cc: In function 'int bfs(int, int)':
foo.cc:62:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
八数码
语言
C++
递交时间
2021-11-13 01:25:16
评测时间
2021-11-13 01:25:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes