Run id: 116826

Main.cc: In function 'int main()':
Main.cc:10:8: error: 'f' was not declared in this scope
     f(x)=a*x^3+b*x^2+c*x+d;
        ^
Main.cc:10:18: error: invalid operands of types 'double' and 'double' to binary 'operator^'
     f(x)=a*x^3+b*x^2+c*x+d;
                  ^
Main.cc:10:15: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
     f(x)=a*x^3+b*x^2+c*x+d;
               ^