QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#646900 | #1771. 交通规划 | Nova_NightWind0311 | Compile Error | / | / | C++20 | 5.8kb | 2024-10-17 09:38:20 | 2024-10-17 09:38:24 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In instantiation of ‘IO& IO::operator<<(V) [with V = const char*]’: answer.code:139:15: required from here answer.code:33:15: error: ordered comparison of pointer with integer zero (‘const char*’ and ‘int’) 33 | if (v < 0) putchar('-'), v = -v; | ~~^~~ answer.code:33:39: error: wrong type argument to unary minus 33 | if (v < 0) putchar('-'), v = -v; | ^ answer.code:35:21: error: invalid operands of types ‘const char*’ and ‘int’ to binary ‘operator/’ 35 | for (; v; v /= 10) | ~~^~~~~ answer.code:35:21: note: in evaluation of ‘operator/=(const char*, int)’ answer.code:36:24: error: invalid operands of types ‘const char*’ and ‘int’ to binary ‘operator%’ 36 | *++top = v % 10 + '0'; | ~~^~~~