QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#780637#9578. 爱上字典MaMengQiCompile Error//C++201016b2024-11-25 12:01:122024-11-25 12:01:12

详细

answer.code: In function ‘bool find(char*)’:
answer.code:35:20: error: expected ‘;’ before ‘return’
   35 |         if(cnt[s]>0
      |                    ^
      |                    ;
   36 |         return true;
      |         ~~~~~~      
answer.code:37:9: error: expected primary-expression before ‘else’
   37 |         else return false;
      |         ^~~~
answer.code:36:21: error: expected ‘)’ before ‘else’
   36 |         return true;
      |                     ^
      |                     )
   37 |         else return false;
      |         ~~~~         
answer.code:35:11: note: to match this ‘(’
   35 |         if(cnt[s]>0
      |           ^
answer.code:38:1: warning: control reaches end of non-void function [-Wreturn-type]
   38 | }
      | ^