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 <hack/logger/logger.hpp>
|
||||||
|
#include "tasks/001.hpp"
|
||||||
|
|
||||||
#include "sort/insertion.hpp"
|
// #include "sort/insertion.hpp"
|
||||||
|
|
||||||
auto main() -> int
|
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));
|
// std::vector<int> v { 5, 4, 1, 3, 6, 9, 7, 2, 8, 0, 10 };
|
||||||
// return 1;
|
// // alg::sort::insertion(v, 0, v.size() - 1);
|
||||||
// }
|
// alg::sort::insertion(v);
|
||||||
//
|
|
||||||
// {
|
|
||||||
// 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);
|
|
||||||
// hack::log()(v);
|
// hack::log()(v);
|
||||||
|
// return 0;
|
||||||
// }
|
// }
|
||||||
//
|
|
||||||
// {
|
alg::tasks::run();
|
||||||
// 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));
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
10
src/tasks/001.hpp
Normal file
10
src/tasks/001.hpp
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace alg::tasks
|
||||||
|
{
|
||||||
|
inline void run()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user