QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#778200#9628. 骰子HuangHanShengCompile Error//C++14160b2024-11-24 13:17:502024-11-24 13:17:50

Details

answer.code:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
answer.code: In function ‘int main()’:
answer.code:6:6: error: ‘scanf’ was not declared in this scope
    6 |      scanf("%d%d",&n,&m);
      |      ^~~~~
answer.code:8:6: error: ‘printf’ was not declared in this scope
    8 |      printf("%d\n",ans);
      |      ^~~~~~
answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
  +++ |+#include <cstdio>
    1 | #inlcude <bits/stdc++.h>