ERROR!
g++ /tmp/jNzlbZYJDY.cpp
/tmp/jNzlbZYJDY.cpp: In function 'int main()':
/tmp/jNzlbZYJDY.cpp:12:23: error: 'pow' was not declared in this scope
12 | answer = (bit * pow(10,i)) + answer;
| ^~~
Solution :-
#include<math.h>
ERROR!
g++ /tmp/jNzlbZYJDY.cpp
/tmp/jNzlbZYJDY.cpp: In function 'int main()':
/tmp/jNzlbZYJDY.cpp:12:23: error: 'pow' was not declared in this scope
12 | answer = (bit * pow(10,i)) + answer;
| ^~~
0Comments
Thanks you for commenting your questions. I will see question and respond you.