fix: add <cstdint> to sorting/**

This commit is contained in:
realstealthninja
2024-08-31 11:30:32 +05:30
parent 52ff5e8c92
commit 4707b729cc
8 changed files with 42 additions and 25 deletions

View File

@@ -19,6 +19,7 @@
#include <algorithm>
#include <cassert>
#include <cstdint> /// for integral typedefs
#include <ctime>
#include <iostream> /// for io operations
#include <vector>
@@ -50,7 +51,7 @@ namespace wiggle_sort {
*/
template <typename T> // this allows to have vectors of ints, double, float,
// etc
std::vector<T> wiggleSort(const std::vector<T> &arr) {
std::vector<T> wiggleSort(const std::vector<T> &arr) {
uint32_t size = arr.size();
std::vector<T> out(