谁能看看这个C++的题

img


哪位能看看这个怎么做?(C++的)
这是我编程做的,我初学者能教我一下吗

#include <iostream>
using namespace std;
int f(int x, int a, int b, int c, int d)
{
    return a * x * x * x + b * x * x + c * x + d;
}
int main()
{
    int x = 2, a = 1, b = 2, c = 4, d = 8;
    cout << f(x, a, b, c, d);
    return 0;
}


#include<bits/stdc++.h>
using namespace std;
int f(int x,int a,int b,int c,int d)
{
    return a*x*x*x+b*x*x+c*x+d;
}
int main()
{
    int x=2,a=1,b=2,c=4,d=8;
    cout<<f(x,a,b,c,d);
    return 0;
}