Submission #92955

#TimeUsernameProblemLanguageResultExecution timeMemory
92955beso123Combo (IOI18_combo)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; string guess_sequence(int N){ string s="ABX"; return s; } int press(string p){ } int main(){ return 0; }

Compilation message (stderr)

combo.cpp: In function 'int press(std::string)':
combo.cpp:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
/usr/bin/ld: /tmp/cc3StIOs.o: in function `press(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
grader.cpp:(.text+0x0): multiple definition of `press(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'; /tmp/ccTyXHNt.o:combo.cpp:(.text.unlikely+0x0): first defined here
/usr/bin/ld: /tmp/cc3StIOs.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccTyXHNt.o:combo.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status