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