16
edits
Changes
→Running the Program
Steps to compile the code and do the profiling on it:
0)Copy the code from GitHub and paste it into a cpp file (I named it sorted.cpp)
1) g++ -Wall -pg sorted.cpp -o sorted
Now you can see the flat and graph profiling for the code.
==== The Code ====