Compile Error

foo.cc: In function 'int main()':
foo.cc:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |         for(int i=0;i<st.size();i++)
      |                     ~^~~~~~~~~~
foo.cc:10:18: error: 'class std::queue<char>' has no member named 'top'; did you mean 'pop'?
   10 |         q.push(q.top());
      |                  ^~~
      |                  pop
foo.cc:14:25: error: 'class std::queue<char>' has no member named 'top'; did you mean 'pop'?
   14 |                 cout<<q.top();
      |                         ^~~
      |                         pop
[Hydro](https://hydro.ac)提供评测服务

信息

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