记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:19:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   19 |     for (int i = 0; i < arr.length(); i++)
      |                     ~~^~~~~~~~~~~~~~
foo.cc:33:13: warning: 'max_sp' may be used uninitialized [-Wmaybe-uninitialized]
   33 |     cout << max_sp << endl;
      |             ^~~~~~
foo.cc:15:10: note: 'max_sp' was declared here
   15 |     char max_sp;
      |          ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer 2d1 < 6 \ No newline at end of 3ms 412.0 KiB
#2 Wrong Answer Standard answer longer than user output. 4ms 284.0 KiB
#3 Wrong Answer Standard answer longer than user output. 4ms 332.0 KiB
#4 Runtime Error Segmentation fault 4ms 412.0 KiB
#5 Wrong Answer 2d1 < 10 \ No newline at end o 3ms 412.0 KiB

信息

递交者
类型
递交
比赛
2023 程序设计与基础(语言的世界)
语言
C++
递交时间
2023-12-05 16:02:21
评测时间
2023-12-05 16:02:21
评测机
分数
0
总耗时
20ms
峰值内存
412.0 KiB