summaryrefslogtreecommitdiff
path: root/2024
diff options
context:
space:
mode:
Diffstat (limited to '2024')
-rw-r--r--2024/1A.cpp4
-rw-r--r--2024/1B.cpp6
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<std::string> file = readfile("1.in");
- if (file.empty()) {
+ if (file.empty())
return 1;
- }
+
std::vector<int> 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<std::string> file = readfile("2.in");
- if (file.empty()) {
+ if (file.empty())
return 1;
- }
+
std::vector<int> 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
+}