catdog.cpp: In function 'int main()':
catdog.cpp:17:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | freopen(".in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccTf6zuO.o: in function `readInt()':
grader.cpp:(.text+0x0): multiple definition of `readInt()'; /tmp/ccQMk5VJ.o:catdog.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccTf6zuO.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccQMk5VJ.o:catdog.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccQMk5VJ.o: in function `main':
catdog.cpp:(.text.startup+0x211): undefined reference to `initialize(int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: catdog.cpp:(.text.startup+0x249): undefined reference to `neighbor(int)'
/usr/bin/ld: catdog.cpp:(.text.startup+0x28d): undefined reference to `dog(int)'
/usr/bin/ld: catdog.cpp:(.text.startup+0x331): undefined reference to `cat(int)'
/usr/bin/ld: /tmp/ccTf6zuO.o: in function `main':
grader.cpp:(.text.startup+0x1f1): undefined reference to `initialize(int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: grader.cpp:(.text.startup+0x229): undefined reference to `neighbor(int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x26d): undefined reference to `dog(int)'
/usr/bin/ld: grader.cpp:(.text.startup+0x311): undefined reference to `cat(int)'
collect2: error: ld returned 1 exit status