foo.cc:28:18: error: empty character constant
28 | if(ch[node][S[i]-'']){
| ^~
foo.cc:29:20: error: empty character constant
29 | node=ch[node][S[i]-''];
| ^~
foo.cc: In function 'int main()':
foo.cc:162:37: warning: operation on 'cntQ' may be undefined [-Wsequence-point]
162 | scanf("%d%d",&Query[cntQ][0],&Query[++cntQ][1]);
| ^~~~~~
foo.cc:162:37: warning: operation on 'cntQ' may be undefined [-Wsequence-point]
foo.cc:160:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
160 | scanf("%d",&Q);
| ~~~~~^~~~~~~~~
foo.cc:162:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
162 | scanf("%d%d",&Query[cntQ][0],&Query[++cntQ][1]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In member function 'void A_Cautomation::Insert()':
foo.cc:23:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
23 | scanf("%s",S);
| ~~~~~^~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务