Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6876 | 罗浩宇 | 06小数除法 | C++ | Compile Error | 0 MS | 0 KB | 443 | 2025-03-22 20:29:20 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double a,b; scanf("%lf%lf",&a,&b); printf("%.2lf\n",a-(int)(a/b)*b); /* int c; c=a/b; double d; d=a-c*b; printf("%.2lf\n",d); /* return 0; }
Main.cc:17:1: warning: "/*" within comment [-Wcomment] /* ^ Main.cc:10:1: error: unterminated comment /* ^ Main.cc: In function 'int main()': Main.cc:9:37: error: expected '}' at end of input printf("%.2lf\n",a-(int)(a/b)*b); ^