Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
135450 zlx 06计算f(x)的值 C++ Compile Error 0 MS 0 KB 249 2025-11-03 17:23:01

Tests(0/0):


Code:

using namespace std; int main() { double x, a, b, c, d; cin >> x >> a >> b >> c >> d; double result = a * x * x * x + b * x * x + c * x + d; cout << fixed << setprecision(5) << result << endl; return 0;


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:4: error: 'cin' was not declared in this scope
    cin >> x >> a >> b >> c >> d;
    ^
Main.cc:10:4: error: 'cout' was not declared in this scope
    cout << fixed << setprecision(5) << result << endl;
    ^
Main.cc:10:12: error: 'fixed' was not declared in this scope
    cout << fixed << setprecision(5) << result << endl;
            ^
Main.cc:10:35: error: 'setprecision' was not declared in this scope
    cout << fixed << setprecision(5) << result << endl;
                                   ^
Main.cc:10:50: error: 'endl' was not declared in this scope
    cout << fixed << setprecision(5) << result << endl;
                                                  ^
Main.cc:12:12: error: expected '}' at end of input
    return 0;
            ^