1. The include statement should be corrected to: #include <iostream>
2. The using statements should be corrected to: using std::cout; using std::endl;
3. The main function declaration should be corrected to: int main()
4. The array initialization should use commas instead of periods: int b[] = {3, 4, 2, 5, 6, 7};
5. The pointer declaration should use a semicolon instead of a colon: int *xPtr;
6. The for loop syntax is incorrect and should be corrected to: for (int i = 0; i < 9; i++)
7. The shift operator should be corrected to: << instead of ≪
8. The square root symbol should be corrected to: **
9. The return statement should be at the end of the main function.
10. The void leftshift function is not used in the provided code and can be removed.