i had declared it but not able to understand my mistake that caused this error
This code is showing 1 error that insertattail is not declared
move the insertAttail function at the start
basically since c++ is compiled language to usee function mila nhi declared atline 32
so move it prior to function where it is used
or define the function at the start