Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77092 彭诗媛 04保留两位小数 C++ Compile Error 0 MS 0 KB 173 2024-06-08 12:11:50

Tests(0/0):


Code:

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


Run Info:

Main.cc:10:20: warning: missing terminating " character
    printf("%.2lf",c");
                    ^
Main.cc:10:4: error: missing terminating " character
    printf("%.2lf",c");
    ^
Main.cc: In function 'int main()':
Main.cc:11:5: error: expected ')' before 'return'
     return 0;
     ^
Main.cc:6:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    scanf("%lf%lf",&a,&b);
                         ^