QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#871835#9678. 网友小 Z 的树yaohaoyouCompile Error//C++145.1kb2025-01-25 22:19:392025-01-25 22:19:39

Details

answer.code: In function ‘int main()’:
answer.code:124:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  124 |         scanf("%d%d", &GRADER::subid, &T);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘void GRADER::solve()’:
answer.code:64:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   64 |         scanf("%d", &n);
      |         ~~~~~^~~~~~~~~~
answer.code:68:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   68 |                 scanf("%d%d", &x, &y);
      |                 ~~~~~^~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccePxp1g.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/ccueOfMx.o:implementer.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status