Main.cc: In function ‘int main()’:
Main.cc:11:16: error: ‘power’ was not declared in this scope
int result=power(number);
^~~~~
Main.cc:11:16: note: suggested alternative: ‘popen’
int result=power(number);
^~~~~
popen
Main.cc:10:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &number);
~~~~~^~~~~~~~~~~~~~~