wiring.cpp: In function 'long long int subtask1(std::vector<int>, std::vector<int>)':
wiring.cpp:41:7: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
41 | for(int j=1; j<m; j++)
| ^~~
wiring.cpp:44:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
44 | return dp[n-1][m-1];
| ^~~~~~
wiring.cpp: In function 'long long int subtask3(std::vector<int>, std::vector<int>)':
wiring.cpp:73:90: error: call of overloaded 'subtask2(std::vector<int>&, std::vector<int>&, int&, int&, int&, int&)' is ambiguous
73 | dp[curr] = subtask2(r,b,a[prev].first,a[curr-1].first,a[curr].first,a[curr].first);
| ^
wiring.cpp:22:11: note: candidate: 'long long int subtask2(std::vector<int>, std::vector<int>, int, int, int, int)'
22 | long long subtask2(std::vector<int>, std::vector<int>, int, int, int, int);
| ^~~~~~~~
wiring.cpp:47:11: note: candidate: 'long long int subtask2(std::vector<int>&, std::vector<int>&, int, int, int, int)'
47 | long long subtask2(std::vector<int> &arr1, std::vector<int> &arr2, int s1, int e1, int s2, int e2) {
| ^~~~~~~~
wiring.cpp:75:90: error: call of overloaded 'subtask2(std::vector<int>&, std::vector<int>&, int&, int&, int&, int&)' is ambiguous
75 | dp[curr] = subtask2(b,r,a[prev].first,a[curr-1].first,a[curr].first,a[curr].first);
| ^
wiring.cpp:22:11: note: candidate: 'long long int subtask2(std::vector<int>, std::vector<int>, int, int, int, int)'
22 | long long subtask2(std::vector<int>, std::vector<int>, int, int, int, int);
| ^~~~~~~~
wiring.cpp:47:11: note: candidate: 'long long int subtask2(std::vector<int>&, std::vector<int>&, int, int, int, int)'
47 | long long subtask2(std::vector<int> &arr1, std::vector<int> &arr2, int s1, int e1, int s2, int e2) {
| ^~~~~~~~
wiring.cpp:83:88: error: call of overloaded 'subtask2(std::vector<int>&, std::vector<int>&, int&, int&, int&, int&)' is ambiguous
83 | temp = subtask2(r,b,a[j].first,a[curr-1].first,a[curr].first,a[i].first);
| ^
wiring.cpp:22:11: note: candidate: 'long long int subtask2(std::vector<int>, std::vector<int>, int, int, int, int)'
22 | long long subtask2(std::vector<int>, std::vector<int>, int, int, int, int);
| ^~~~~~~~
wiring.cpp:47:11: note: candidate: 'long long int subtask2(std::vector<int>&, std::vector<int>&, int, int, int, int)'
47 | long long subtask2(std::vector<int> &arr1, std::vector<int> &arr2, int s1, int e1, int s2, int e2) {
| ^~~~~~~~
wiring.cpp:85:88: error: call of overloaded 'subtask2(std::vector<int>&, std::vector<int>&, int&, int&, int&, int&)' is ambiguous
85 | temp = subtask2(b,r,a[j].first,a[curr-1].first,a[curr].first,a[i].first);
| ^
wiring.cpp:22:11: note: candidate: 'long long int subtask2(std::vector<int>, std::vector<int>, int, int, int, int)'
22 | long long subtask2(std::vector<int>, std::vector<int>, int, int, int, int);
| ^~~~~~~~
wiring.cpp:47:11: note: candidate: 'long long int subtask2(std::vector<int>&, std::vector<int>&, int, int, int, int)'
47 | long long subtask2(std::vector<int> &arr1, std::vector<int> &arr2, int s1, int e1, int s2, int e2) {
| ^~~~~~~~