QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#96775#6128. Flippy SequenceMaMengQiCompile Error//C++981022b2023-04-15 16:15:152023-04-15 16:15:18

Details

answer.code: In function ‘int main()’:
answer.code:53:25: error: ‘printf’ was not declared in this scope
   53 |                         printf("0\n");
      |                         ^~~~~~
answer.code:2:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
    1 | #include <iostream>
  +++ |+#include <cstdio>
    2 | #include <string>
answer.code:64:25: error: ‘printf’ was not declared in this scope
   64 |                         printf("6\n");
      |                         ^~~~~~
answer.code:64:25: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?