What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-01-31 21:17:58
how to delete an element in vector pair in cpp
#include <iostream> #include <utility> #include <vector> using namespace std; int main() { vector< pair<int, int> > v; int N = 5; const int threshold = 2; for(int i = 0; i < N; ++i) v.push_back(m... Add solution -
C++ 2021-10-27 22:05:11
c++ sorting and keeping track of indexes
#include <iostream> #include <vector> #include <numeric> // std::iota #include <algorithm> // std::sort, std::stable_sort using namespace std; template <typename T> vector<size_t> sort_indexes(const vector<... Add solution
Best helpers
Ranking is empty