QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#464078#6964. WerewolvesZhaoZiLongCompile Error//C++237.7kb2024-07-05 19:12:412024-07-05 19:12:43

Details

answer.code: In function ‘void solve()’:
answer.code:219:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
  219 |     ans.clear();
      |     ^~~
      |     abs
answer.code: In function ‘void FileIO::setIn(std::string)’:
answer.code:66:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   66 |         void setIn(string s)  { freopen(s.c_str(),"r",stdin); }
      |                                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘void FileIO::setOut(std::string)’:
answer.code:67:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   67 |         void setOut(string s) { freopen(s.c_str(),"w",stdout); }
      |                                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~