记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:10:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |         for(int i=0;i<=s.length() && success;i++){
      |                     ~^~~~~~~~~~~~
foo.cc:10:38: error: 'success' was not declared in this scope
   10 |         for(int i=0;i<=s.length() && success;i++){
      |                                      ^~~~~~~
foo.cc:14:32: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |                         while(j<t.length()){
      |                               ~^~~~~~~~~~~
foo.cc:20:29: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |                         if(j==t.length())
      |                            ~^~~~~~~~~~~~
foo.cc:24:24: error: expected '}' at end of input
   24 |         return 0;
      |                        ^
foo.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1470 6-1 小红的环形字符串
语言
C++
递交时间
2023-07-11 09:33:35
评测时间
2023-07-11 09:33:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes