/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1720 阿狸的打字机
语言
C++
递交时间
2021-12-29 19:01:30
评测时间
2021-12-29 19:01:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes