foo.cc: In member function 'void prt::build(int&, int, int)':
foo.cc:19:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
19 | 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]
26 | 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]
32 | int m=l+r>>1;
| ~^~
foo.cc: In function 'void ST()':
foo.cc:57:52: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
57 | 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]
116 | scanf("%d%d%u%u%u%d",&n,&p,&SA,&SB,&SC,&q);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:123:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
123 | scanf("%d%d%d",&p,&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]
131 | int T;scanf("%d",&T);
| ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务