Website Summary Files Commits Branches @commit @diff @stats
path: root / Seminar03 / task02.cpp
diff options
context:
space:
mode:
Commit9daf1d050f6806996cc97950978cbf4d7a040636 (patch)
Author
 Ekaterina <73318371+keti200125@users.noreply.github.com>
2023-08-04 15:31:38 +0300
Committer
 GitHub <noreply@github.com>
2023-08-04 15:31:38 +0300
Files32b4e1296aaaa21d37647e1f88ef8cb84badd3b9 /Seminar03/task02.cpp
Data-structures-and-algorithms-9daf1d050f6806996cc97950978cbf4d7a040636.tar
Data-structures-and-algorithms-9daf1d050f6806996cc97950978cbf4d7a040636.tar.gz
Data-structures-and-algorithms-9daf1d050f6806996cc97950978cbf4d7a040636.zip
Parentd8182cbb9e40f72ef96f40921b79a7add54ab0ce (diff)
Update task02.cpp
word change
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Seminar03/task02.cpp6
diff --git a/Seminar03/task02.cpp b/Seminar03/task02.cpp
index e5ab8a7..ffc6a30 100644
--- a/Seminar03/task02.cpp
+++ b/Seminar03/task02.cpp
@@ -11,8 +11,8 @@ class minMoves {
board playground;
void cleanPlayground() {
- for (auto &col : playground)
- for (auto &pos : col)
+ for (auto &row : playground)
+ for (auto &pos : row)
pos = false;
}
@@ -90,4 +90,4 @@ int main() {
minMoves<2> mt;
std::cout << mt.getMinMoves({0, 0}, {12, 212});
-} \ No newline at end of file
+}