routers.cpp: In function 'void cdq(int, int, int, int)':
routers.cpp:13:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
13 | if (nL > nR or pL > pR) return; if (pL == pR) return chmax(last_place[use_detector(pL)], pL), void(); int pM = pL + pR >> 1, nM = use_detector(pM); chmax(last_place[nM], pM); cdq(nL, nM-1, pL, pM-1), cdq(nM, nR, pM+1, pR);} vector<int> find_routers(int L, int N, int Q) { last_place.assign(N, -1); cdq(0, N-2, 0, L-1); // for (auto x : last_place) cout << x << " "; // cout << "\n";
| ^~
routers.cpp:13:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
13 | if (nL > nR or pL > pR) return; if (pL == pR) return chmax(last_place[use_detector(pL)], pL), void(); int pM = pL + pR >> 1, nM = use_detector(pM); chmax(last_place[nM], pM); cdq(nL, nM-1, pL, pM-1), cdq(nM, nR, pM+1, pR);} vector<int> find_routers(int L, int N, int Q) { last_place.assign(N, -1); cdq(0, N-2, 0, L-1); // for (auto x : last_place) cout << x << " "; // cout << "\n";
| ^~
routers.cpp:13:123: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
13 | if (nL > nR or pL > pR) return; if (pL == pR) return chmax(last_place[use_detector(pL)], pL), void(); int pM = pL + pR >> 1, nM = use_detector(pM); chmax(last_place[nM], pM); cdq(nL, nM-1, pL, pM-1), cdq(nM, nR, pM+1, pR);} vector<int> find_routers(int L, int N, int Q) { last_place.assign(N, -1); cdq(0, N-2, 0, L-1); // for (auto x : last_place) cout << x << " "; // cout << "\n";
| ~~~^~~~