运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
468630 hxzhz 1009 - 计算本金与利润之和 编译错误 0 0 MS 0 KB C 193 1年前
暂时无法获取本题测试点详情。

Main.c: In function ‘main’:
Main.c:6:14: warning: format ‘%lf’ expects argument of type ‘double *’, but argument 2 has type ‘double’ [-Wformat=]
6 | scanf("%lf%d%d",a,b,c);
| ~~^ ~
| | |
| | double
| double *
Main.c:6:16: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
6 | scanf("%lf%d%d",a,b,c);
| ~^ ~
| | |
| int * int
Main.c:6:18: warning: format ‘%d’ expects argument of type ‘int *’, but argument 4 has type ‘double’ [-Wformat=]
6 | scanf("%lf%d%d",a,b,c);
| ~^ ~
| | |
| int * double
Main.c:7:12: warning: right-hand operand of comma expression has no effect [-Wunused-value]
7 | for(i=1,i<=b,i++)
| ^
Main.c:7:21: error: expected ‘;’ before ‘)’ token
7 | for(i=1,i<=b,i++)
| ^
| ;
Main.c:7:21: error: expected expression before ‘)’ token
Main.c:4:13: warning: unused variable ‘t’ [-Wunused-variable]
4 | int b,z,t,i;
| ^
Main.c:4:11: warning: unused variable ‘z’ [-Wunused-variable]
4 | int b,z,t,i;
| ^