From e413f3fc478da395fab295671b1ccd9f5bdb5b7e Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 2 Mar 2021 22:45:12 +0400 Subject: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20=D1=80?= =?UTF-8?q?=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=87=D0=B5=D1=82=D0=B2?= =?UTF-8?q?=D1=91=D1=80=D1=82=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=B4=D0=B0=D1=87?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BE=20=D1=81=D0=B2=D1=8F=D0=B7=D0=BD=D1=8B?= =?UTF-8?q?=D0=BC=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- list/Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 list/Makefile (limited to 'list/Makefile') diff --git a/list/Makefile b/list/Makefile new file mode 100644 index 0000000..4a9376f --- /dev/null +++ b/list/Makefile @@ -0,0 +1,24 @@ +CXX=g++ +CFLAGS=-g -Wall +COMPILE=$(CXX) $(CFLAGS) + +task4: + $(COMPILE) -o task.out task4.cpp +test4: task4 + @printf "9\n5 2 9 1 3 7 9 2 9" | ./task.out + @printf "Answer: 5 9 1 3 7 9 9\n" + +task7: + $(COMPILE) -o task.out task7.cpp +test7: task7 + @printf "9\n6\n5 2 9 1 3 7 9 2 9" | ./task.out + @printf "Answer: 5 2 1 3 2 9 7 9 9\n" + +task15: + $(COMPILE) -o task.out task15.cpp +test15: task15 + @printf "9\n3\n1 2 3 4 5 6 7 8 9" | ./task.out + @printf "Answer: 1\n" + +clean: + rm task.out -- cgit v1.2.3