From 97d17d48d298ffd0bd19e9837fd1ef0542c21584 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 2 Dec 2024 15:23:14 +0800 Subject: remove: bracets --- 2024/1A.cpp | 4 ++-- 2024/1B.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/2024/1A.cpp b/2024/1A.cpp index 9cffc3b..1f97a1b 100644 --- a/2024/1A.cpp +++ b/2024/1A.cpp @@ -6,9 +6,9 @@ int main(int argc, char const *argv[]) { int res = 0; std::vector file = readfile("1.in"); - if (file.empty()) { + if (file.empty()) return 1; - } + std::vector left, right; for (const auto &line : file) { int n1, n2; diff --git a/2024/1B.cpp b/2024/1B.cpp index f6dff14..12ef4a7 100644 --- a/2024/1B.cpp +++ b/2024/1B.cpp @@ -6,9 +6,9 @@ int main(int argc, char const *argv[]) { int res = 0; std::vector file = readfile("2.in"); - if (file.empty()) { + if (file.empty()) return 1; - } + std::vector left, right; for (const auto &line : file) { int n1, n2; @@ -38,4 +38,4 @@ int main(int argc, char const *argv[]) } std::cout << res << std::endl; -} \ No newline at end of file +} -- cgit v1.2.3