QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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.
Details
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