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

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ double a,b; scanf(%lf a,b); printf(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);
            ^
Main.cc:6:15: error: cannot convert 'double' to 'const char*' for argument '1' to 'int printf(const char*, ...)'
     printf(a/b);
               ^