Submission #147675

#TimeUsernameProblemLanguageResultExecution timeMemory
147675하이 (#201)Play Onwards (FXCUP4_onward)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

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