QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#98601#2919. SubprimeMaMengQiCompile Error//C++17825b2023-04-19 08:14:312023-04-19 08:14:35

Details

answer.code: In function ‘bool contains(long long int, std::string)’:
answer.code:30:55: error: expected unqualified-id before ‘-’ token
   30 |         return to_string(num).find(substr) != string::-1;
      |                                                       ^