Submission #147994

#TimeUsernameProblemLanguageResultExecution timeMemory
147994bruteforcer (#201)Play Onwards (FXCUP4_onward)C++17
Compilation error
0 ms0 KiB
#include "make.h" #include <string> 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" #include <string> 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/ccosPS8g.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:3:1: error: 'string' does not name a type; did you mean 'stdin'?
 string GuessWord(int M, string YH)
 ^~~~~~
 stdin