Compile Error

foo.cc: In function 'int main()':
foo.cc:8:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
    8 |  for (int i = 0; i < strlen(s); i++)
      |                  ~~^~~~~~~~~~~
foo.cc:10:14: error: 'a' was not declared in this scope
   10 |   if ('a' <= a[i] && a[i] <= 'z')
      |              ^
foo.cc:19:20: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   19 |  for (int i = 0; i < strlen(s); i++)
      |                  ~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1102 字符大小写转换
语言
C++
递交时间
2022-07-18 17:35:48
评测时间
2022-07-18 17:35:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes