I have following C++ code for bubble sort. This code compiles without any error, but when I re compile and run, I get
*** stack smashing detected ***: termin