QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#749000#7900. Gifts from Knowledgeucup-team057Compile Error//C++17328b2024-11-14 22:19:412024-11-14 22:19:41

Details

answer.code: In function ‘int main()’:
answer.code:8:16: error: ‘r’ was not declared in this scope
    8 | scanf("%d%d", &r, &c);
      |                ^
answer.code:8:20: error: ‘c’ was not declared in this scope; did you mean ‘tc’?
    8 | scanf("%d%d", &r, &c);
      |                    ^
      |                    tc
answer.code:5:13: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 | int t; scanf("%d", &t);
      |        ~~~~~^~~~~~~~~~
answer.code:12:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 | scanf("%s", s+1);
      | ~~~~~^~~~~~~~~~~