记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:10:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |  for(int i=0;i<str.size()-1;i++)
      |              ~^~~~~~~~~~~~~
foo.cc:11:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |   for(int j=i+1;j<str.size();j++)
      |                 ~^~~~~~~~~~~
foo.cc:12:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   12 |    if(str[i]==str[j]&&str[i]>='a'&&str[i]<='z'||str[i]>='A'&&str[i]<='Z')
foo.cc:15:27: warning: operation on 'k' may be undefined [-Wsequence-point]
   15 |   maxa[++k]=max(a[i],maxa[++k]);
      |                           ^~~
foo.cc:15:27: warning: operation on 'k' may be undefined [-Wsequence-point]
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 396.0 KiB
#2 Runtime Error Segmentation fault 2ms 512.0 KiB
#3 Runtime Error Segmentation fault 4ms 384.0 KiB
#4 Runtime Error Segmentation fault 4ms 384.0 KiB
#5 Runtime Error Segmentation fault 6ms 384.0 KiB

信息

递交者
类型
递交
题目
6-9 哪个字母用得最多
语言
C++
递交时间
2022-05-14 12:52:57
评测时间
2022-05-14 12:52:57
评测机
分数
0
总耗时
23ms
峰值内存
512.0 KiB