QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#525118 | #7062. Prince and Princess | HuangHanSheng | Compile Error | / | / | C++23 | 457b | 2024-08-20 13:05:49 | 2024-08-20 13:05:49 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:18:17: error: ‘else’ without a previous ‘if’ 18 | else printf("%d", 2*(b+c)+(a!=1)); | ^~~~ answer.code:14:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d %d %d", &a, &b, &c); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~