stations.cpp: In function 'int main()':
stations.cpp:17:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | freopen("input.txt","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
stations.cpp:18:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | freopen("output.txt","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccqy5Z6W.o: in function `main':
stub.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccngUFWR.o:stations.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccngUFWR.o: in function `main':
stations.cpp:(.text.startup+0x2bb): undefined reference to `label(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: stations.cpp:(.text.startup+0x72b): undefined reference to `find_next_station(int, int, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: /tmp/ccqy5Z6W.o: in function `main':
stub.cpp:(.text.startup+0x2d7): undefined reference to `label(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: stub.cpp:(.text.startup+0x4fc): undefined reference to `find_next_station(int, int, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status