foo.cc: In member function 'void prt::build(int&, int, int)':
foo.cc:19:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int m=l+r>>1;
~^~
foo.cc: In member function 'void prt::ins(int&, int, int, int, int, node)':
foo.cc:26:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int m=l+r>>1;
~^~
foo.cc: In member function 'node prt::ask(int, int, int, int, int)':
foo.cc:32:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
int m=l+r>>1;
~^~
foo.cc: In function 'void ST()':
foo.cc:57:52: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
st[k][i]=gmd(st[k-1][i],st[k-1][i+(1<<k-1)]);
~^~
foo.cc: In function 'void solve()':
foo.cc:116:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%u%u%u%d",&n,&p,&SA,&SB,&SC,&q);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:123:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&p,&x,&y),
~~~~~~~~~~~~~~~~~~~~~~~~^~
printf("%lld\n",p==1?ask1(x,y):ask2(x,y));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:131:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int T;scanf("%d",&T);
~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务