No clue what you are trying to do or accomplish here?
It works if you remove the templates.
Also this line: for(int i=size;i>0;i--)
Change it to: for(int i=size-1;i>=0;i--)
You want it to start from the 4th element and go all the way down to the 0th element.
Last edited on