/in/foo.cc: In function 'int calc(int, int, int)':
/in/foo.cc:35:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(l==p) ++l;if(r==p) --r;
       ^~
/in/foo.cc:35:20: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
       if(l==p) ++l;if(r==p) --r;
                    ^~
/in/foo.cc: In function 'int dfs(int, int, int)':
/in/foo.cc:63:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
         re int mid=l+r>>1;
                    ~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:94:19: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
       re int mid=l+r>>1;
                  ~^~