| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 131707 | 李昱龙 | 06计算f(x)的值 | C++ | Compile Error | 0 MS | 0 KB | 243 | 2025-10-01 09:49:36 |
#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; double w = a*s; j = a*w+b*as+c*x+d; printf("%.5lf",j);
Main.cc: In function 'int main()':
Main.cc:11: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);
^