QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#443097#8583. 팰린드롬 판별하기ZhangYiDeCompile Error//C++231.3kb2024-06-15 14:24:262024-06-15 14:24:27

Details

answer.code: In function ‘int guess_palindromicity(int)’:
answer.code:32:30: error: ‘n’ was not declared in this scope
   32 |         for (int i = 0; i < (n - 1) / 2; i++) {
      |                              ^
answer.code:33:35: error: could not convert ‘{<expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘std::vector<int>’
   33 |                 if (find_character(i, {n - 1 - i}) == 0) {
      |                     ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
      |                                   |
      |                                   <brace-enclosed initializer list>