Compile Error
foo.cc: In function 'int main()': foo.cc:14:12: error: conflicting declaration 'std::string n' 14 | string n,m; | ^ foo.cc:7:9: note: previous declaration as 'int n' 7 | int n; | ^ foo.cc:16:9: error: request for member 'find' in 'a', which is of non-class type 'std::string [1000]' {aka 'std::__cxx11::basic_string<char> [1000]'} 16 | a[a.find(n)]=m; | ^~~~
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1006 查找子串且替换
- 语言
- C++
- 递交时间
- 2023-05-22 21:27:48
- 评测时间
- 2023-05-22 21:27:48
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes