欢迎24级新生
运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
18272 朱瑞琦 2266 - 宝箱 编译错误 0 0 MS 0 KB C++ 376 1年前
暂时无法获取本题测试点详情。

Main.cc: In function 'int step(int, int)':
Main.cc:17:14: error: 'abs' was not declared in this scope
17 | result=max(abs(a),abs(b));
| ^~~
Main.cc:21:16: error: 'abs' was not declared in this scope
21 | result=2*min(abs(a),abs(b))+max(abs(a),abs(b));
| ^~~
Main.cc:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
23 | }
| ^
Main.cc: In function 'int main()':
Main.cc:28:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf("%d%d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~