Compile Error

/in/foo.cc:40:10: error: stray '\357' in program
  return 0; 
          ^
/in/foo.cc:40:11: error: stray '\274' in program
  return 0; 
           ^
/in/foo.cc:40:12: error: stray '\233' in program
  return 0; 
            ^
/in/foo.cc: In function 'bool check(std::__cxx11::string)':
/in/foo.cc:9:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<str.size();i++)
              ~^~~~~~~~~~~
/in/foo.cc:15:11: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
     str[i]=='#'|str[i]=='$')fhnum =1;
            
/in/foo.cc: In function 'int main()':
/in/foo.cc:25:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<st.size();i++)
              ~^~~~~~~~~~
/in/foo.cc:30:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if(i==st.size()-1&&check(s))
       ~^~~~~~~~~~~~~
/in/foo.cc:41:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P2596 密码合规检测3级2 202306
语言
C++
递交时间
2024-06-27 12:02:55
评测时间
2024-06-27 12:02:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes