game.cpp: In function 'int main()':
game.cpp:18:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | freopen("output.txt","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccxoEJpy.o: in function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cck3hIgw.o:game.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cck3hIgw.o: in function `main':
game.cpp:(.text.startup+0x106): undefined reference to `init(int, int)'
/usr/bin/ld: game.cpp:(.text.startup+0x163): undefined reference to `add_teleporter(int, int)'
/usr/bin/ld: /tmp/ccxoEJpy.o: in function `main':
stub.cpp:(.text.startup+0x64): undefined reference to `init(int, int)'
/usr/bin/ld: stub.cpp:(.text.startup+0xda): undefined reference to `add_teleporter(int, int)'
collect2: error: ld returned 1 exit status