Compile Error

/in/foo.cc: In function 'int hw(std::string&, int)':
/in/foo.cc:5:26: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    5 |         string s3=reverse(s4.begin(),s4.end());
      |                   ~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:19: error: 'substr' was not declared in this scope; did you mean 'strstr'?
   23 |         string s2=substr(i,i+j);
      |                   ^~~~~~
      |                   strstr

信息

递交者
类型
递交
题目
P2422 1.7.34回文子串
语言
C++
递交时间
2026-02-24 15:42:31
评测时间
2026-02-24 15:42:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes