QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#525118#7062. Prince and PrincessHuangHanShengCompile Error//C++23457b2024-08-20 13:05:492024-08-20 13:05:49

详细

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);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~