QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#96775#6128. Flippy SequenceMaMengQiCompile Error//C++981022b2023-04-15 16:15:152023-04-15 16:15:18

详细

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>’?