Main.cc: In function ‘int main()’:
Main.cc:12:21: error: ‘pow’ was not declared in this scope
a%=(int)pow(10,i2);
^~~
Main.cc:12:21: note: suggested alternative: ‘putw’
a%=(int)pow(10,i2);
^~~
putw