답안 #147994

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
147994 2019-08-31T10:49:40 Z bruteforcer(#3659, SinkingHeart) Play Onwards (FXCUP4_onward) C++17
컴파일 오류
0 ms 0 KB
#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

/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