could anyone help me figure out the compiler error on this program?Code:#include <iostream> using namespace std; void check(double a, double b) int main() { double xleft = 0; double xright = 0; cout << "Please enter xleft " << endl; cin >> xleft; cout << "Please enter xright" << endl; cin >> xright; check(xleft, xright); return 0; } void check(a,b) { if(a > b) cout << "Bisection can not be computed (sign error, or xleft is greater than xright)" endl; }
1. unexpected end of file found
2. missing ; before identifier main.
thank you.