Submission #147991

#TimeUsernameProblemLanguageResultExecution timeMemory
147991bruteforcer (#201)Play Onwards (FXCUP4_onward)C++17
Compilation error
0 ms0 KiB
#include "make.h" using namespace std; string MakeWord(int N, int M, string dict[]) { string myrequest; for (int i = 0; i < M; ++i) { myrequest.push_back('a'); } return myrequest; }
#include "guess.h" string GuessWord(int M, string YH) { string myrequest; for (int i = 0; i < M; ++i) { myrequest.push_back('a'); } return myrequest; }

Compilation message (stderr)

/tmp/ccVzqgZ3.o: In function `main':
grader_m.cpp:(.text.startup+0x220): undefined reference to `MakeWord(int, int, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >)'
collect2: error: ld returned 1 exit status

guess.cpp:2:1: error: 'string' does not name a type; did you mean 'stdin'?
 string GuessWord(int M, string YH)
 ^~~~~~
 stdin