Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
6669 | 侯宜辰 | 04保留两位小数 | C++ | Compile Error | 0 MS | 0 KB | 360 | 2025-03-08 20:17:09 |
#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); double c=a/b; printf("%.12f\n",c); return 0; }
Main.cc: In function 'int main()': Main.cc:8:13: error: expected initializer before '.' token double a.b; ^ Main.cc:9:21: error: 'a' was not declared in this scope scanf("%lf%lf",&a,&b); ^ Main.cc:9:24: error: 'b' was not declared in this scope scanf("%lf%lf",&a,&b); ^