QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#489232#9156. 百万富翁Inaba00Compile Error//C++142.1kb2024-07-24 19:04:262024-07-24 19:04:29

Details

answer.code: In function ‘std::vector<int> ask(std::vector<int>, std::vector<int>)’:
answer.code:9:49: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | vector<int> ask(vector<int> a, vector<int> b) { }
      |                                                 ^
answer.code: In function ‘int richest(int, int, int)’:
answer.code:65:1: warning: control reaches end of non-void function [-Wreturn-type]
   65 | }
      | ^
/usr/bin/ld: /tmp/ccxqkI0w.o: in function `ask(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)':
answer.code:(.text.unlikely+0x50): multiple definition of `ask(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'; /tmp/ccXC5Rnz.o:implementer.cpp:(.text+0xfd0): first defined here
collect2: error: ld returned 1 exit status