Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133234 向运淇 04保留两位小数 C++ Compile Error 0 MS 0 KB 149 2025-10-18 10:25:13

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ double a,b; scanf("%lf%lf",&a,&b); printf("%.2lf",a/b); return 0;


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:13: error: expected '}' at end of input
     return 0;
             ^
Main.cc:5:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%lf%lf",&a,&b);
                          ^