Accepted

foo.cc: In function 'int main()':
foo.cc:9:14: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    9 |   if(!(k>='a'&&k<='z'||k>='A'&&k<='Z'))
      |        ~~~~~~^~~~~~~~
foo.cc:11:15: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   11 |    if(b.size()>s)s=b.size(),m=b;
      |       ~~~~~~~~^~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 1ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1954 最长长度单词
语言
C++
递交时间
2022-08-02 16:55:57
评测时间
2022-08-02 16:55:57
评测机
分数
100
总耗时
9ms
峰值内存
384.0 KiB