Compile Error

foo.cc: In function 'std::string ans(std::string, int)':
foo.cc:7:18: 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++)
      |                 ~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:13:10: error: 'ket' was not declared in this scope; did you mean 'key'?
   13 |     cin>>ket>>s;
      |          ^~~
      |          key
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1990 凯撒密码
语言
C++
递交时间
2022-08-10 20:07:49
评测时间
2022-08-10 20:07:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes