QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#335246 | #7698. ISBN Conversion | ZhangYiDe | Compile Error | / | / | C++17 | 2.0kb | 2024-02-23 01:14:56 | 2024-02-23 01:14:58 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:65:56: error: expected ‘;’ before ‘{’ token 65 | if(S[9] != (sum == 10 ? 'X' : (char)(sum + 48)) | ^ | ; 66 | { | ~ answer.code:70:9: error: expected primary-expression before ‘if’ 70 | if(sum==10 && S[9] != 'X') | ^~ answer.code:69:10: error: expected ‘)’ before ‘if’ 69 | } | ^ | ) 70 | if(sum==10 && S[9] != 'X') | ~~ answer.code:65:11: note: to match this ‘(’ 65 | if(S[9] != (sum == 10 ? 'X' : (char)(sum + 48)) | ^ answer.code:84:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 84 | ans[ans.size() - 1] = (char) sum + 48; | ^~~ | abs