Compile Error
foo.cc:4:12: error: expected initializer before ‘replaceName’ 4 | int string replaceName(const string& story,const string& oldName, const string& newName) { | ^~~~~~~~~~~ foo.cc: In function ‘int main()’: foo.cc:20:28: error: ‘replaceName’ was not declared in this scope 20 | std::string newStory = replaceName(story, oldName, newName); | ^~~~~~~~~~~
信息
- 递交者
- 类型
- 自测
- 语言
- C++
- 递交时间
- 2025-04-12 20:12:08
- 评测时间
- 2025-04-12 20:12:08
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes