QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#127970#149. PeruqiuzxCompile Error//C++142.2kb2023-07-20 13:24:192024-09-10 16:40:23

Details

implementer.cpp: In function ‘char nextch()’:
implementer.cpp:15:31: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   15 |     if (pos == BUF_SIZE) fread(buf, BUF_SIZE, 1, fin), pos = 0;
      |                          ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccOMF7tR.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/ccARY3EP.o:implementer.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccARY3EP.o: in function `main':
implementer.cpp:(.text.startup+0x151): undefined reference to `solve(int, int, int*)'
collect2: error: ld returned 1 exit status