| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69713 | 刘慕莀 | 06小数除法 | C++ | Compile Error | 0 MS | 0 KB | 138 | 2024-04-06 14:35:01 |
#include<bits/stdc++.h> using namespace std; int main(){ double a,b; scanf("%lf %lf",&a,&b); printf("%.2lf",a%b); return 0; }
Main.cc: In function 'int main()':
Main.cc:6:19: error: invalid operands of types 'double' and 'double' to binary 'operator%'
printf("%.2lf",a%b);
^
Main.cc:5:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf",&a,&b);
^