{if (sum=evennumber)
This code is outside any function, and can;t be executed as a result.
If you wanted it in the
main
function, then it needs to be above the close curly bracket on the line above, but even if it is, it needs a statement to execute if the condition is true or it won't compile. You probably don't need the open curly bracket that line starts with, either.
It also needs the assignment changing to an equality test: "=" is an assignment, "==" is an logical operator.
Your
main
function will also need a
return
statement, since it is defined as returning a value.
In addition the curly brackets here are redundant:
{
cout<<"After evaluation of given expression the value of z is:"<<z;
cin="">>z;
cout<<"The last digit of my vu id is:"<<number;
cin="">>number;
cout<<"The sum is:"<<sum;
cin="">>(sum=z+number);
}
And you can't read a value into a calculation:
cin="">>(sum=z+number);
, nor does
cin
need an assignment in any line of that code!