Because of the goto reset instruction, I believe your sort function has entered an infinite loop.
If you wish to construct a basic bubble-sort algorithm, follow these steps:
#include <iostream>
#include <utility>
#include <vector>
void bubble_sort(std::vector<int>& v) {
...READ MORE
Jul 11, 2022
in C++
by
Damon
• 4,960 points
•
987 views