Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
80931 秦浩然 04保留两位小数 C++ Compile Error 0 MS 0 KB 153 2024-07-11 16:59:58

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ double a,b; cin>>a>>b; scanf("%lf%lF",a,b); cout<<a.0/b; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:23: warning: format '%lf' expects argument of type 'double*', but argument 2 has type 'double' [-Wformat=]
     scanf("%lf%lF",a,b);
                       ^
Main.cc:6:23: warning: format '%lF' expects argument of type 'double*', but argument 3 has type 'double' [-Wformat=]
Main.cc:7:12: error: expected ';' before numeric constant
     cout<