Compile Error

/in/foo.cc: In function 'int main()':
/in/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++)
      |                     ~^~~~~~~~~
/in/foo.cc:9:41: error: expected ';' before 'cout'
    9 |                 if (s[i]<'A'||s[i]>'Z')2
      |                                         ^
      |                                         ;
   10 |                         cout<<s[i];
      |                         ~~~~             
/in/foo.cc:9:40: warning: statement has no effect [-Wunused-value]
    9 |                 if (s[i]<'A'||s[i]>'Z')2
      |                                        ^

信息

递交者
类型
递交
题目
P2405 1.7.10简单密码
语言
C++
递交时间
3 周前
评测时间
3 周前
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes