fix struct
This commit is contained in:
48
bin/main.cpp
48
bin/main.cpp
@@ -1,50 +1,18 @@
|
||||
#include <hack/logger/logger.hpp>
|
||||
#include "tasks/001.hpp"
|
||||
|
||||
#include "sort/insertion.hpp"
|
||||
// #include "sort/insertion.hpp"
|
||||
|
||||
auto main() -> int
|
||||
{
|
||||
{
|
||||
std::vector<int> v { 5, 4, 1, 3, 6, 9, 7, 2, 8, 0, 10 };
|
||||
// alg::sort::insertion(v, 0, v.size() - 1);
|
||||
alg::sort::insertion(v);
|
||||
hack::log()(v);
|
||||
return 0;
|
||||
}
|
||||
|
||||
// {
|
||||
// hack::log()(alg::find_primes(50));
|
||||
// return 1;
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// hack::log()(alg::is_prime(2));
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// hack::log()(alg::pow(3.0, 2), alg::pow(3.0, 3));
|
||||
// }
|
||||
//
|
||||
//
|
||||
// {
|
||||
// std::vector<int> v { 16, 7, 10, 1, 5, 11, 3, 8, 14, 4, 2, 12, 6, 13, 9, 15 };
|
||||
// alg_v2::merge_sort(v);
|
||||
// std::vector<int> v { 5, 4, 1, 3, 6, 9, 7, 2, 8, 0, 10 };
|
||||
// // alg::sort::insertion(v, 0, v.size() - 1);
|
||||
// alg::sort::insertion(v);
|
||||
// hack::log()(v);
|
||||
// return 0;
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// hack::log()(alg::gcd(4851, 3003));
|
||||
// hack::log()(alg::gcd(64, 28));
|
||||
// }
|
||||
//
|
||||
// {
|
||||
// hack::log()(alg::prime_factors_v1(127));
|
||||
// hack::log()(alg::prime_factors_v1(128));
|
||||
// hack::log()(alg::prime_factors_v1(130));
|
||||
//
|
||||
// hack::log()(alg::prime_factors_v2(127));
|
||||
// hack::log()(alg::prime_factors_v2(128));
|
||||
// hack::log()(alg::prime_factors_v2(130));
|
||||
// }
|
||||
|
||||
alg::tasks::run();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user