记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<=s.length() && success;i++){
              ~^~~~~~~~~~~~
/in/foo.cc:10:31: error: 'success' was not declared in this scope
  for(int i=0;i<=s.length() && success;i++){
                               ^~~~~~~
/in/foo.cc:14:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    while(j<t.length()){
          ~^~~~~~~~~~~
/in/foo.cc:20:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(j==t.length())
       ~^~~~~~~~~~~~
/in/foo.cc:24:10: error: expected '}' at end of input
  return 0;
          ^

信息

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