QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#691650#7054. Fibonacci SequencewelikestudyingCompile Error//C++2326b2024-10-31 12:27:282024-10-31 12:27:28

Judging History

你现在查看的是最新测评结果

  • [2024-10-31 12:27:28]
  • 评测
  • [2024-10-31 12:27:28]
  • 提交

answer

main(){puts("1 1 2 3 5");}

Details

answer.code:1:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    1 | main(){puts("1 1 2 3 5");}
      | ^~~~
answer.code: In function ‘int main()’:
answer.code:1:8: error: ‘puts’ was not declared in this scope
    1 | main(){puts("1 1 2 3 5");}
      |        ^~~~