foo.cc: In function 'void spt::splay(int, int&)':
foo.cc:54:24: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
54 | if(L(y)==x^L(z)==y)rotate(x,k);
| ^
foo.cc: In function 'void spt::opt::init(int)':
foo.cc:85:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
85 | for(int i=1;i<=n;i++)scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
foo.cc: In function 'void spt::opt::ins(int, int)':
foo.cc:113:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
113 | for(int i=0;i<tot;i++)scanf("%d ",&a[i]);
| ~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:125:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
125 | int n,m;scanf("%d %d\n",&n,&m);
| ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:129:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
129 | scanf("%s",s);
| ~~~~~^~~~~~~~
foo.cc:130:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
130 | if(s[2]!='X')scanf("%d %d",&p,&t);
| ~~~~~^~~~~~~~~~~~~~~
foo.cc:131:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
131 | if(s[2]=='K')scanf("%d",&k);
| ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务