Submission #148000

# Submission time Handle Problem Language Result Execution time Memory
148000 2019-08-31T10:54:48 Z bruteforcer(#3659, SinkingHeart) Play Onwards (FXCUP4_onward) C++17
Compilation error
0 ms 0 KB
#include "make.h"
using namespace std;
char *  MakeWord(int N, int M, char ** dict)
{
    char * myrequest = new char[M + 1];
    myrequest[M] = 0;
    for (int i = 0; i < M; ++i)
    {
        myrequest[i] = 'a';
    }
    return myrequest;
}
#include "guess.h"
using namespace std;
char * GuessWord(int M, char * YH)
{
    char * myrequest = new char[M + 1];
    myrequest[M] = 0;
    for (int i = 0; i < M; ++i)
    {
        myrequest[i] = 'a';
    }
    return myrequest;
}

Compilation message

/tmp/ccKQznC7.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

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