Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131149 鄢晨曦 06计算f(x)的值 C++ Compile Error 0 MS 0 KB 208 2025-09-21 11:12:05

Tests(0/0):


Code:

#include<bits/stdc++.h>; using namespace std; int main(){ double x,a,b,c,d; printf(".5lf",a*x^3.0+b*x^2.0+c*x+d); return 0; }


Run Info:

Main.cc:1:24: warning: extra tokens at end of #include directive
 #include;
                        ^
Main.cc: In function 'int main()':
Main.cc:7:29: error: invalid operands of types 'double' and 'double' to binary 'operator^'
     printf(".5lf",a*x^3.0+b*x^2.0+c*x+d); 
                             ^
Main.cc:7:26: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
     printf(".5lf",a*x^3.0+b*x^2.0+c*x+d); 
                          ^