QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#314940#4184. Amusement ArcadeZhangYiDeCompile Error//C++20680b2024-01-26 15:12:322024-01-26 15:12:32

Details

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