Task: Sort STL Map by Value in C++
Task: Sort STL Map by Value in C++: a task in Terminal-Lego-15k (Harbor dataset). Implement a C++ program that sorts an STL map<int, int by its values (not keys) and outputs the key-value pairs in ascending order of values.
The task
Implement a C++ program that sorts an STL `map<int, int>` by its values (not keys) and outputs the key-value pairs in ascending order of values.
Part of PrimeIntellect/Terminal-Lego-15k.