In C and C++ language, you can't define a function inside another one.
You must move
print
outside of
insert_
Indentation is here to help you to read your code. proper use of indentation prevent this kind of problem.
I recommend the usage of a programmer's editor like NotePad++.
Notepad++ Home[
^]