/in/foo.cc: In function 'int F()':
/in/foo.cc:6:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(ch=getc(),ch<'0'||ch>'9');aa=ch-'0';
^~~~~
/in/foo.cc:6:37: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
while(ch=getc(),ch<'0'||ch>'9');aa=ch-'0';
^~
/in/foo.cc:7:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(ch=getc(),ch>='0'&&ch<='9')aa=aa*10+ch-'0';return aa;
^~~~~
/in/foo.cc:7:54: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
while(ch=getc(),ch>='0'&&ch<='9')aa=aa*10+ch-'0';return aa;
^~~~~~
/in/foo.cc: In function 'void bt(int, int, int)':
/in/foo.cc:132:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~
/in/foo.cc: In function 'void mt(int, int, int)':
/in/foo.cc:159:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~
/in/foo.cc: In function 'void upd(int, int, int)':
/in/foo.cc:169:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else a1[o]--;return;
^~~~
/in/foo.cc:169:22: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
else a1[o]--;return;
^~~~~~
/in/foo.cc:171:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;pd(o,l,r);
~^~
/in/foo.cc: In function 'void query(int, int, int)':
/in/foo.cc:186:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int mid=l+r>>1;
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:207:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while(op=getc(),op!='q'&&op!='p'&&op!='m');int l=F(),r=F();
^~~~~
/in/foo.cc:207:52: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
while(op=getc(),op!='q'&&op!='p'&&op!='m');int l=F(),r=F();
^~~
/in/foo.cc: In function 'V operator+(const V&, const V&)':
/in/foo.cc:118:32: warning: iteration 9 invokes undefined behavior [-Waggressive-loop-optimizations]
for(int i=0;i<=9;i++)c.m[i]=(a.m[i]+b.m[i])%p;
^
/in/foo.cc:118:18: note: within this loop
for(int i=0;i<=9;i++)c.m[i]=(a.m[i]+b.m[i])%p;
~^~~