QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#98563#2919. SubprimeMaMengQiCompile Error//C++171.0kb2023-04-19 07:54:072023-04-19 07:54:10

详细

answer.code: In function ‘int main()’:
answer.code:44:27: error: cannot convert ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int’
   44 |         if (has_substring(p, prime)) {
      |                           ^
      |                           |
      |                           std::string {aka std::__cxx11::basic_string<char>}
answer.code:24:24: note:   initializing argument 1 of ‘bool has_substring(int, int)’
   24 | bool has_substring(int p, int n) {
      |                    ~~~~^