记录详情

Compile Error

foo.cc: In function 'void x(std::string&)':
foo.cc:4:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    4 |  for(int i=0;i<a.size();i++)
      |              ~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:14:6: error: could not convert 'a.std::__cxx11::basic_string<char>::operator=(b)' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |  if(a=b)
      |     ~^~
      |      |
      |      std::__cxx11::basic_string<char>
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1385 Problem D. strcmp
语言
C++
递交时间
2022-08-05 13:42:41
评测时间
2022-08-05 13:42:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes