In line 41 I am getting the error "a template declaration cannon appear at block scope" and at line 50 I am getting the error "expected ';' before 'template'". I am not exactly sure what I am doing wrong, any help would be appreciated. There are a couple more functions that I did not include cause I did not receive errors in them, as well I have a main that I did not include. Thanks.
A copy and paste issue that you're missing a closing curly brace for your remove function?
As it is right now in the code you posted, your print function is inside your remove function.