I recently started C++. I am making this program in which I have to input the value of "x" and the program will calculate the value of "y". Whats the mistake
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
usingnamespace std;
int main ()
{
int x,y;
cout<<"Please enter the value of x : "<<endl;
cin>>x;
y=x*x + 2*x + 1;
return 0;
}