运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
641362 TTaaa 1049 - 抢红包 编译错误 0 0 MS 0 KB C 478 17天前
暂时无法获取本题测试点详情。

Main.c:14:5: error: redefinition of 'fun1'
14 | int fun1(int n){
| ^~~~
Main.c:3:5: note: previous definition of 'fun1' with type 'int(int)'
3 | int fun1(int n){
| ^~~~
Main.c: In function 'main':
Main.c:30:16: warning: implicit declaration of function 'fun2'; did you mean 'fun1'? [-Wimplicit-function-declaration]
30 | int mon2 = fun2(n);
| ^~~~
| fun1
Main.c:31:14: warning: format '%d' expects argument of type 'int', but argument 2 has type 'double' [-Wformat=]
31 | printf("%d",fmin(mon1,mon2));
| ~^ ~~~~~~~~~~~~~~~
| | |
| | double
| int
| %f