From a35770af4761d621110fc00546990144cdb740e8 Mon Sep 17 00:00:00 2001 From: omagdy7 Date: Sat, 3 Dec 2022 13:58:29 +0200 Subject: Fixed something in the Makefile --- 2022/Makefile | 2 +- 2022/script.sh | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) (limited to '2022') diff --git a/2022/Makefile b/2022/Makefile index 35528a2..08000ae 100644 --- a/2022/Makefile +++ b/2022/Makefile @@ -2,4 +2,4 @@ all: @g++ main.cpp -o ans.o run: - ./ans < input.txt + ./ans.o < input.txt diff --git a/2022/script.sh b/2022/script.sh index cdb5e16..1bc63c4 100755 --- a/2022/script.sh +++ b/2022/script.sh @@ -1,10 +1,8 @@ #!/bin/sh +read N -for i in {3..25} -do - echo "d" | ~/.scripts/cpp_ps.sh "Day$i" - cp Makefile Day$i - touch "Day$i"/input.txt -done +echo "d" | ~/.scripts/cpp_ps.sh "Day$N" +cp Makefile Day$N +touch "Day$N"/input.txt -- cgit v1.2.3