记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:11:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |         for(int i=0;i<a.length();i++)
      |                     ~^~~~~~~~~~~
foo.cc:14:28: error: expected ';' before 'c'
   14 |         cout<<abs(c-d)<<" "
      |                            ^
      |                            ;
   15 |         c=0,d=0;
      |         ~                   
foo.cc:16:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |         for(int i=0;i<b.length();i++)
      |                     ~^~~~~~~~~~~
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
P1028 A8-3 字符串的统计函数
语言
C++
递交时间
2024-03-21 13:53:35
评测时间
2024-03-21 13:53:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes