Original Post
can anyone see what the problem is? -thanks
int main()
{
float a, b, c, r1, i1, r2, i2;
std::cout << "Enter the coeffitient 'a': ";
std::cin >> a;
std::cout << "Enter the coefficient 'b': ";
std::cin >> b;
std::cout << "Enter the coefficient 'c': ";
std::cin >> c;
r1 = (-b + (sqrt(Squared(b)*(-4*a*c))/(2*a)); //ERROR: PARSE ERROR BEFORE ';' TOKEN
r2 = (-b - (sqrt(Squared(b)*(-4*a*c))/(2*a)); //ERROR: PARSE ERROR BEFORE ')' TOKEN
std::cout << "#1: " << r1 << " #2: " << r2;
return 0;
}