Submission #147675

# Submission time Handle Problem Language Result Execution time Memory
147675 2019-08-30T11:39:11 Z 하이(#3650, heiler) Play Onwards (FXCUP4_onward) C++17
Compilation error
0 ms 0 KB
#include "make.h"

std::string MakeWord(int N, int M, std::vector<std::string>) {
	std::string ret = "";
	for(int i=0;i<M;i++) {
		ret += (Dict[N-1][i]-'a'+1)%26 + 'a';
	}
	return ret;
}
#include "guess.h"

std::string GuessWord(int M, std::string YH) {
	std::string ret = "";
	for(int i=0;i<M;i++){
		ret += (YH[i]-'a'-1+26)%26 + 'a';
	}
	return ret;
}

Compilation message

make.cpp: In function 'std::__cxx11::string MakeWord(int, int, std::vector<std::__cxx11::basic_string<char> >)':
make.cpp:6:11: error: 'Dict' was not declared in this scope
   ret += (Dict[N-1][i]-'a'+1)%26 + 'a';
           ^~~~
make.cpp:6:11: note: suggested alternative: 'uint'
   ret += (Dict[N-1][i]-'a'+1)%26 + 'a';
           ^~~~
           uint