| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66571 | 周奕辰 | 04保留两位小数 | C++ | Compile Error | 0 MS | 0 KB | 190 | 2024-03-09 14:43:34 |
#include<cstdio> #include<iostream> using namespace std; int main(){ double a,b; cin >> a >> b; scanf("%1llf%1llf",&a,&b); printf("%.2llf%.2llf",&a/&b); }
Main.cc: In function 'int main()':
Main.cc:7:29: warning: use of 'll' length modifier with 'f' type character [-Wformat=]
scanf("%1llf%1llf",&a,&b);
^
Main.cc:7:29: warning: use of 'll' length modifier with 'f' type character [-Wformat=]
Main.cc:8:31: error: invalid operands of types 'double*' and 'double*' to binary 'operator/'
printf("%.2llf%.2llf",&a/&b);
^
Main.cc:7:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%1llf%1llf",&a,&b);
^