QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#476125 | #9116. DRD String | ucup-team3648# | Compile Error | / | / | C++20 | 2.0kb | 2024-07-13 17:56:03 | 2024-07-13 17:56:05 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:72:3: error: expected primary-expression before ‘for’ 72 | for (int bit = 32; bit >= 0; --bit) { | ^~~ answer.code:71:19: error: expected ‘;’ before ‘for’ 71 | int64_t ans = 0; | ^ | ; 72 | for (int bit = 32; bit >= 0; --bit) { | ~~~ answer.code:72:3: error: expected primary-expression before ‘for’ 72 | for (int bit = 32; bit >= 0; --bit) { | ^~~ answer.code:71:19: error: expected ‘)’ before ‘for’ 71 | int64_t ans = 0; | ^ | ) 72 | for (int bit = 32; bit >= 0; --bit) { | ~~~ answer.code:69:7: note: to match this ‘(’ 69 | for ( | ^ answer.code:77:11: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 77 | cout << ans + 1 << "\n"; | ^~~ | abs