QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#633104#7029. Xu Xiake in Henan ProvinceGuanYunchangCompile Error//C++20929b2024-10-12 14:33:312024-10-12 14:33:31

Details

answer.code: In function ‘int main()’:
answer.code:16:14: error: ‘scanf’ was not declared in this scope
   16 |         for (scanf("%d", &Case); Case; Case --)
      |              ^~~~~
answer.code:22:37: error: ‘stdin’ was not declared in this scope
   22 |                         fgets(s, M, stdin);
      |                                     ^~~~~
answer.code:5:1: note: ‘stdin’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
    4 | #include <algorithm>
  +++ |+#include <cstdio>
    5 | using namespace std;
answer.code:22:25: error: ‘fgets’ was not declared in this scope
   22 |                         fgets(s, M, stdin);
      |                         ^~~~~
answer.code:37:50: error: expected primary-expression before ‘)’ token
   37 |                                         else if ()
      |                                                  ^
answer.code:38:33: error: expected primary-expression before ‘}’ token
   38 |                                 }
      |                                 ^