| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 131709 | 李昱龙 | 06计算f(x)的值 | C++ | Compile Error | 0 MS | 0 KB | 216 | 2025-10-01 09:53:22 |
#include <bits/stdc++.h> using namespace std; int main (){ double a,b,c,d,x; double j; scanf("%lf%lf%lf%lf%lf",&a,&b,&c,&d,&x); double as = x*x; double s = as*x; j = a*s+b*as+c*x+d; printf("%.5lf",j);
Main.cc: In function 'int main()':
Main.cc:10:19: error: expected '}' at end of input
printf("%.5lf",j);
^
Main.cc:6:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%lf%lf%lf%lf",&a,&b,&c,&d,&x);
^