C++ code compilation error

so i’m getting an error:

nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: /tmp/switch-87fb5b.o: in function `main':
/home/runner/C-tutorials/./Basics/switch.cpp:3: multiple definition of `main'; /tmp/ternary-f835ee.o:/home/runner/C-tutorials/./Basics/ternary.cpp:3: first defined here
/nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: /tmp/forloop-5a885d.o: in function `main':
/home/runner/C-tutorials/./Basics/forloop.cpp:3: multiple definition of `main'; /tmp/ternary-f835ee.o:/home/runner/C-tutorials/./Basics/ternary.cpp:3: first defined here
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:10: main] Error 1

Here’s my make file code :

all: main

CXX = clang++
override CXXFLAGS += -g -Wmost -Werror

SRCS = $(shell find . -name '.ccls-cache' -type d -prune -o -type f -name '*.cpp' -print | sed -e 's/ /\\ /g')
HEADERS = $(shell find . -name '.ccls-cache' -type d -prune -o -type f -name '*.h' -print)

main: $(SRCS) $(HEADERS)
	$(CXX) $(CXXFLAGS) $(SRCS) -o "$@"

main-debug: $(SRCS) $(HEADERS)
	$(CXX) $(CXXFLAGS) -U_FORTIFY_SOURCE -O0 $(SRCS) -o "$@"

clean:
	rm -f main main-debug

I’ve created multiples files in a folder . Here’s the link to it : Basics/forloop.cpp - C++ tutorials - Replit

(post deleted by author)