Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157345 杨正蠔 06计算f(x)的值 C++ Compile Error 0 MS 0 KB 406 2026-07-23 08:56:41

Tests(0/0):


Code:

#include <iostream> #include <iomanip> using namespace std; int main() { double x, a, b, c, d; // 按顺序读取 x a b c d cin >> x >> a >> b >> c >> d; // 多项式计算,不要写 ^! double fx = a * x * x * x + b * x * x + c * x + d; // fixed + setprecision(5) 固定小数点后5位 cout << fixed << setprecision(5) << fx << endl; return 0;


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:13: error: expected '}' at end of input
     return 0;
             ^