Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100524 | 陈奕涵 | 04保留两位小数 | C++ | Compile Error | 0 MS | 0 KB | 199 | 2024-12-08 12:02:51 |
include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ double a,b; scanf("%lf%lf",&a,&b); printf("%.2lf",a/b); return 0; }
Main.cc:1:1: error: 'include' does not name a type include // cin\cout\endl ^ Main.cc: In function 'int main()': Main.cc:6:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lf%lf",&a,&b); ^