crocodile.cpp: In function 'void SETIO(std::string)':
crocodile.cpp:9:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | freopen((name+".inp").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crocodile.cpp:10:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | freopen((name+".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crocodile.cpp: At global scope:
crocodile.cpp:18:16: warning: 'P' defined but not used [-Wunused-variable]
18 | static int P[maxn+2];
| ^
crocodile.cpp:17:16: warning: 'L' defined but not used [-Wunused-variable]
17 | static int L[maxn+2];
| ^
crocodile.cpp:16:16: warning: 'R' defined but not used [-Wunused-variable]
16 | static int R[maxm+2][2];
| ^
/usr/bin/ld: /tmp/ccnjGv55.o: in function `main':
grader.cpp:(.text.startup+0x36): undefined reference to `travel_plan(int, int, int (*) [2], int*, int, int*)'
collect2: error: ld returned 1 exit status