QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#874218 | #1138. Counting Mushrooms | asdfghjkl | Compile Error | / | / | C++14 | 931b | 2025-01-27 20:56:33 | 2025-01-27 20:56:34 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:35:23: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 35 | system("make"); | ~~~~~~^~~~~~~~ answer.code:36:23: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 36 | system("g++ grader.cpp mushroom.cpp -o mushroom -std=c++11"); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:37:23: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 37 | system("mushroom"); | ~~~~~~^~~~~~~~~~~~ /usr/bin/ld: /tmp/cc3cVoUx.o: in function `main': answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/cceam24D.o:implementer.cpp:(.text.startup+0x0): first defined here /usr/bin/ld: /tmp/cceam24D.o: in function `main': implementer.cpp:(.text.startup+0x65): undefined reference to `count_mushrooms(int)' collect2: error: ld returned 1 exit status