记录详情

Runtime Error

foo.cc: In function 'void chai(std::string&, std::vector<std::__cxx11::basic_string<char> >&)':
foo.cc:49:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   49 |  for( ;j<v1.size()-1;j++)
      |        ~^~~~~~~~~~~~
foo.cc: In function 'void chaiOneWord(std::string)':
foo.cc:61:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   61 |  for(int i=0;i<str.size()-1;i++)
      |              ~^~~~~~~~~~~~~
foo.cc: In function 'int main(int, char**)':
foo.cc:77:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   77 |  for(int i=0;i<str.size();i++)
      |              ~^~~~~~~~~~~
foo.cc:86:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   86 |  for(int i=0;i<v2.size();i++)
      |              ~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Runtime Error Segmentation fault 4ms 384.0 KiB
#3 Wrong Answer User output longer than standard answer. 1ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Aborted 3ms 384.0 KiB

信息

递交者
类型
递交
题目
6-10 哪个字母对用得最多
比赛
2022暑期青少年社团(训练赛)
语言
C++
递交时间
2022-08-07 21:55:29
评测时间
2022-08-07 21:55:29
评测机
分数
20
总耗时
15ms
峰值内存
384.0 KiB