/usr/bin/ld: /tmp/ccDv2AXp.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccudYuWp.o:horses.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccudYuWp.o: in function `main':
horses.cpp:(.text.startup+0xaa): undefined reference to `init(int, int*, int*)'
/usr/bin/ld: horses.cpp:(.text.startup+0x113): undefined reference to `updateX(int, int)'
/usr/bin/ld: horses.cpp:(.text.startup+0x16d): undefined reference to `updateY(int, int)'
/usr/bin/ld: /tmp/ccDv2AXp.o: in function `main':
grader.c:(.text.startup+0xaa): undefined reference to `init(int, int*, int*)'
/usr/bin/ld: grader.c:(.text.startup+0x113): undefined reference to `updateX(int, int)'
/usr/bin/ld: grader.c:(.text.startup+0x16d): undefined reference to `updateY(int, int)'
collect2: error: ld returned 1 exit status