| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147879 | 张蔚林 | 05买水果 | C++ | Compile Error | 0 MS | 0 KB | 188 | 2026-02-08 21:37:02 |
#include<iostream> #include<cstdio> using namespace std; int main() { double a=5,b=8,c=12,d=39; printf("%.3lf",(a+b+c)*1.0/3); printf("%d %d",d/a,d%a); return 0; }
Main.cc: In function 'int main()':
Main.cc:8:26: error: invalid operands of types 'double' and 'double' to binary 'operator%'
printf("%d %d",d/a,d%a);
^