QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#94134#5673. CornholeZhangYiDeCompile Error//C++98345b2023-04-05 14:13:472023-04-05 14:13:48

詳細信息

answer.code: In function ‘int main()’:
answer.code:9:9: error: ‘scanf’ was not declared in this scope; did you mean ‘wscanf’?
    9 |         scanf("%d %d", &n1.h, &n1.b);
      |         ^~~~~
      |         wscanf
answer.code:14:17: error: ‘printf’ was not declared in this scope
   14 |                 printf("1 %d\n", s1 - s2);
      |                 ^~~~~~
answer.code:2:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
    1 | #include<iostream>
  +++ |+#include <cstdio>
    2 | using namespace std;
answer.code:16:17: error: ‘printf’ was not declared in this scope
   16 |                 printf("NO SCORE\n");
      |                 ^~~~~~
answer.code:16:17: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
answer.code:18:17: error: ‘printf’ was not declared in this scope
   18 |                 printf("2 %d\n", s2 - s1);
      |                 ^~~~~~
answer.code:18:17: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?