Compile Error

foo.cc: In function 'int main()':
foo.cc:7:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |         for(int i=0;i<s.size();i++)
      |                     ~^~~~~~~~~
foo.cc:16:17: error: 'else' without a previous 'if'
   16 |                 else
      |                 ^~~~

信息

递交者
类型
递交
语言
C++
递交时间
2024-03-21 15:00:38
评测时间
2024-03-21 15:00:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes