From 31eb852495af9775f13d07d5a06b765cc72b4580 Mon Sep 17 00:00:00 2001 From: hladu357 Date: Sat, 18 May 2024 14:13:46 +0200 Subject: [PATCH] ? --- bst.cpp | 1 + lock.cpp | 2 +- teleport.cpp | 6 ++---- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bst.cpp b/bst.cpp index 47cd411..5545a55 100644 --- a/bst.cpp +++ b/bst.cpp @@ -4,6 +4,7 @@ #include using namespace std; +// https://fit-wiki.cz/%C5%A1kola/p%C5%99edm%C4%9Bty/bi-pa2/pa2_zkou%C5%A1ka_2022-06-09 class CTree{ public: diff --git a/lock.cpp b/lock.cpp index f2dc7a2..35d177e 100644 --- a/lock.cpp +++ b/lock.cpp @@ -23,7 +23,7 @@ public: t.c[i] = static_cast(target[i] - '0'); } for (const auto& i : deadends) { - if (target == i || target == "0000") return -1; + if (target == i || i == "0000") return -1; u tmp; for (int j = 0; j < 4; ++j) { diff --git a/teleport.cpp b/teleport.cpp index e3bf366..b12a25b 100644 --- a/teleport.cpp +++ b/teleport.cpp @@ -67,9 +67,7 @@ public: //---------------------------------------------------------------------------- - CTeleport & Optimize ( void ) - { - // todo + CTeleport & Optimize ( void ) { return *this; } @@ -116,7 +114,7 @@ public: private: std::map _toInt; - std::vector> _ports; + std::vector< std::set > _ports; };