fish.cpp: In function 'll max_weights(int, int, int*, int*, int*)':
fish.cpp:9:40: warning: variable 'subtask3' set but not used [-Wunused-but-set-variable]
9 | bool subtask1=true, subtask2=true, subtask3=true;
| ^~~~~~~~
fish.cpp:44:1: warning: control reaches end of non-void function [-Wreturn-type]
44 | }
| ^
/usr/bin/ld: /tmp/cceUszyb.o: in function `main':
grader.cpp:(.text.startup+0x25e): undefined reference to `max_weights(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status