Hi, I'm trying to use the pow function. Extremely simple program like the following, but it never passed compiler:
#include <iostream>
#include <cmath>
int main()
{
int a, b, c;
a=2;
b=3;
c=pow(a, b);
cout << c;
return 0;
}
Compiler would highlight the red part. What's wrong?:icon_rolleyes: Thanks in advance.
(even fails with just "c=pow(2, 3)")