0_0_28849087_30258.cpp: In member function 'bool Solution::isPowerOfThree(int)':
0_0_28849087_30258.cpp:4:25: error: 'log' was not declared in this scope
double logAns= log(n) / log(3);
^
0_0_28849087_30258.cpp:5:36: error: 'rint' was not declared in this scope
return (abs(logAns- rint(logAns)) < 0.00000000001) ? true : false;
^
0_0_28849087_30258.cpp:5:37: error: 'abs' was not declared in this scope
return (abs(logAns- rint(logAns)) < 0.00000000001) ? true : false;
^
|