Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66326 伍思语 04保留两位小数 C++ Compile Error 0 MS 0 KB 137 2024-03-05 19:11:23

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:11: error: expected primary-expression before '%' token
     scanf(%lf,&a,&b);
           ^
Main.cc:5:12: error: 'lf' was not declared in this scope
     scanf(%lf,&a,&b);
            ^