| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68713 | 石晋骁 | 04保留两位小数 | C++ | Compile Error | 0 MS | 0 KB | 140 | 2024-03-24 14:08:14 |
#include<bits/stdc++.h> using namespace std; int main(){ double a,b; scanf("%lf"&a,&b); printf("%.2lf"); return 0; }
Main.cc: In function 'int main()':
Main.cc:5:17: error: invalid operands of types 'const char [4]' and 'double' to binary 'operator&'
scanf("%lf"&a,&b);
^
Main.cc:6:19: warning: format '%lf' expects a matching 'double' argument [-Wformat=]
printf("%.2lf");
^