QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#593543#5637. M-ary PartitionsGuanYunchangCompile Error//C++141.3kb2024-09-27 14:34:142024-09-27 14:34:15

Details

answer.code:55:5: error: redefinition of ‘int main()’
   55 | int main()
      |     ^~~~
answer.code:4:5: note: ‘int main()’ previously defined here
    4 | int main()
      |     ^~~~
answer.code: In function ‘int main()’:
answer.code:75:5: error: expected primary-expression before ‘for’
   75 |     for(int i=0; i<t-1; i++)
      |     ^~~
answer.code:75:18: error: ‘i’ was not declared in this scope
   75 |     for(int i=0; i<t-1; i++)
      |                  ^