crocodile.cpp: In function 'void SETIO(std::string)':
crocodile.cpp:8:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | freopen((name+".inp").c_str(),"r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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+".out").c_str(),"w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
crocodile.cpp: At global scope:
crocodile.cpp:17:16: warning: 'P' defined but not used [-Wunused-variable]
17 | static int P[maxn+2];
| ^
crocodile.cpp:16:16: warning: 'L' defined but not used [-Wunused-variable]
16 | static int L[maxn+2];
| ^
crocodile.cpp:15:16: warning: 'R' defined but not used [-Wunused-variable]
15 | static int R[maxm+2][2];
| ^
/usr/bin/ld: /tmp/ccaZQUjG.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