Joe Reason for compiler error is that he was working in the linux lab and it put strange symbols in the code. There's no swap in Insertion sort and your code doesn't have a swap (it does it right) BUT THERE'S TOO MUCH "STUFF" FOR IT TO E EASY TO READ.