Compile Error

foo.cc: In function 'int main()':
foo.cc:9:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |  for(int i=0;i<a.length();i++){
      |              ~^~~~~~~~~~~
foo.cc:23:29: error: expected primary-expression before '<' token
   23 |  cout<<c<<endl<<b<<endl<<d<<<endl<e;
      |                             ^
foo.cc:23:35: error: the value of 'e' is not usable in a constant expression
   23 |  cout<<c<<endl<<b<<endl<<d<<<endl<e;
      |                                   ^
foo.cc:7:18: note: 'int e' is not const
    7 |  int b=0,c=0,d=0,e=0;
      |                  ^
foo.cc:23:30: error: parse error in template argument list
   23 |  cout<<c<<endl<<b<<endl<<d<<<endl<e;
      |                              ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1103 字符统计
语言
C++
递交时间
2022-07-18 20:56:07
评测时间
2022-07-18 20:56:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes