Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95555 陈治宸 04保留两位小数 C++ Compile Error 0 MS 0 KB 161 2024-10-28 21:31:20

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ double a,b; scanf("%lf%lf",&a,&b); print("%.2lf",a/b); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:22: error: 'print' was not declared in this scope
     print("%.2lf",a/b);
                      ^
Main.cc:7:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lf%lf",&a,&b);
                          ^