| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65401 | 李志奇 | 06计算f(x)的值 | C++ | Compile Error | 0 MS | 0 KB | 155 | 2024-01-25 11:29:09 |
#include<iostream> using namespace std; int main(){ int a,b,c,d,x; cin >> x >> c >>d >>x; double f=ax*x*x+b*x*x+c*x+d cout <<f return 0; }
Main.cc: In function 'int main()':
Main.cc:6:11: error: 'ax' was not declared in this scope
double f=ax*x*x+b*x*x+c*x+d
^
Main.cc:4:6: warning: unused variable 'a' [-Wunused-variable]
int a,b,c,d,x;
^
Main.cc:6:9: warning: unused variable 'f' [-Wunused-variable]
double f=ax*x*x+b*x*x+c*x+d
^