QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#780637 | #9578. 爱上字典 | MaMengQi | Compile Error | / | / | C++20 | 1016b | 2024-11-25 12:01:12 | 2024-11-25 12:01:12 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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 | } | ^