#include using namespace std; int sq(int y); // A simple way to square x with a pass-by-value function // There are several errors in this code. Find them and fix them. int main() { int x = 0; cout << "Please enter an integer: "; cin >> x; cout << "Original x: " << x << endl; cout << "x squared: " << sq(x) << endl; cout << "Value of x is still: " << x << endl; // output the z from the function below cout << z; // count from 0 to 4 for(int i = 0; i < 5; i++); // increment i i = i + 1; if (x != 0) { int i = 5; cout << "i: " << i << endl; int x = 5; cout << endl << "x = " << x << endl; } // output i cout << "i: " << i << endl; return 0; } int sq(int z) { // x is defined in main cout << x; // return the negation of z return z*z; }