Submission #147991

# Submission time Handle Problem Language Result Execution time Memory
147991 2019-08-31T10:47:13 Z bruteforcer(#3659, SinkingHeart) Play Onwards (FXCUP4_onward) C++17
Compilation error
0 ms 0 KB
#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

/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