QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#413244#8644. Tricolor Lightshyforces#Compile Error//C++201.2kb2024-05-17 10:35:392024-06-05 09:05:06

Details

Anna.code: In function ‘std::pair<std::__cxx11::basic_string<char>, int> {anonymous}::anna(int, std::string)’:
Anna.code:17:21: error: ‘{anonymous}::gch’ cannot be used as a function
   17 |             ret+=gch((gid(s[a])+1)%3);
      |                  ~~~^~~~~~~~~~~~~~~~~
Anna.code:27:21: error: ‘{anonymous}::gch’ cannot be used as a function
   27 |             ret+=gch((gid(s[n-3])+1)%3);
      |                  ~~~^~~~~~~~~~~~~~~~~~~
Anna.code:30:21: error: ‘{anonymous}::gch’ cannot be used as a function
   30 |             ret+=gch(3^lstid^gid(s[n-3]));
      |                  ~~~^~~~~~~~~~~~~~~~~~~~~