walk.cpp: In function 'std::vector<int> longest_increasing()':
walk.cpp:41:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
41 | for (int i = 0; i < left_idc.size(); i ++)
| ~~^~~~~~~~~~~~~~~~~
walk.cpp: In function 'std::vector<int> longest_decreasing()':
walk.cpp:82:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
82 | for (int i = 0; i < left_idc.size(); i ++)
| ~~^~~~~~~~~~~~~~~~~
walk.cpp: In function 'void solve()':
walk.cpp:157:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
157 | for (int i = 0; i < up.size(); i ++)
| ~~^~~~~~~~~~~
walk.cpp:163:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
163 | if (i + 1 != up.size())
| ~~~~~~^~~~~~~~~~~~
walk.cpp:170:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
170 | if (i + 1 != up.size())
| ~~~~~~^~~~~~~~~~~~
walk.cpp:204:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
204 | for (int i = 0; i < down.size(); i ++)
| ~~^~~~~~~~~~~~~
walk.cpp:210:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
210 | if (i + 1 != down.size())
| ~~~~~~^~~~~~~~~~~~~~
walk.cpp:217:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
217 | if (i + 1 != down.size())
| ~~~~~~^~~~~~~~~~~~~~
walk.cpp:129:9: warning: unused variable 'cnt' [-Wunused-variable]
129 | int cnt = n;
| ^~~
walk.cpp:133:9: warning: variable 'last_step' set but not used [-Wunused-but-set-variable]
133 | int last_step = 0, step = 0;
| ^~~~~~~~~
walk.cpp:133:24: warning: unused variable 'step' [-Wunused-variable]
133 | int last_step = 0, step = 0;
| ^~~~
walk.cpp: In function 'void input_file()':
walk.cpp:7:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | freopen("03.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
walk.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("03.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
walk.cpp: In function 'void all_cases(int)':
walk.cpp:263:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
263 | freopen(file_name_in.c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
walk.cpp:264:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
264 | freopen(file_name_out.c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccBsudZe.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccWG2Rwe.o:walk.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccBsudZe.o: in function `main':
grader.cpp:(.text.startup+0x385): undefined reference to `min_distance(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, int, int)'
collect2: error: ld returned 1 exit status