/ /

记录详情

Compile Error

foo.cc: In function 'int Diff(std::__cxx11::string)':
foo.cc:6:18: error: 'std::__cxx11::string {aka class std::__cxx11::basic_string<char>}' has no member named 'lengh'; did you mean 'length'?
  for(int i=0;i<s.lengh();i++)
                  ^~~~~
                  length
foo.cc: In function 'int main()':
foo.cc:24:33: error: 'Endl' was not declared in this scope
  cout<<Diff(s1)<<" "<<Diff(s2)<<Endl;
                                 ^~~~
foo.cc:24:33: note: suggested alternative: 'ynl'
  cout<<Diff(s1)<<" "<<Diff(s2)<<Endl;
                                 ^~~~
                                 ynl
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1097 A8-3 字符串的统计函数
语言
C++
递交时间
2021-07-19 15:14:37
评测时间
2021-07-19 15:14:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes