The problem is that the code is declaring a function inside another function which you cannot do.
void main()
{ // <---Start of function main()
void print_inpt_square() // <--- trying to start a new function within main()
{
Try adding a closing '}' before declaring print_inpt_square()