QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#314940#4184. Amusement ArcadeZhangYiDeCompile Error//C++20680b2024-01-26 15:12:322024-01-26 15:12:32

詳細信息

answer.code:4:1: error: ‘::main’ must return ‘int’
    4 | void main()
      | ^~~~
answer.code: In function ‘int main()’:
answer.code:12:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
   12 |         return;
      |         ^~~~~~
answer.code:28:17: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
   28 |                 return;
      |                 ^~~~~~