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=1;i<n.size();i++)
      |                     ~^~~~~~~~~
foo.cc:9:23: error: ‘s’ was not declared in this scope
    9 |                 cout<<s[i];
      |                       ^
foo.cc:11:15: error: ‘s’ was not declared in this scope
   11 |         cout<<s[0];
      |               ^

信息

递交者
类型
递交
题目
P1080 1-1 数字循环左移
语言
C++
递交时间
2024-07-19 23:19:37
评测时间
2024-07-19 23:19:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes