Runtime Error

foo.cc: In function ‘std::string num(std::string)’:
foo.cc:7:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
    7 |         for(int i=0;i<=s.size();i++)
      |                     ~^~~~~~~~~~
foo.cc:15:1: warning: control reaches end of non-void function [-Wreturn-type]
   15 | }
      | ^
# 状态 耗时 内存占用
#1 Runtime Error Aborted 2ms 504.0 KiB
#2 Runtime Error Aborted 3ms 504.0 KiB
#3 Runtime Error Aborted 2ms 504.0 KiB
#4 Runtime Error Aborted 2ms 504.0 KiB

信息

递交者
类型
递交
题目
P2558 单位转换3级T2 2023.12
语言
C++
递交时间
2025-07-22 19:07:13
评测时间
2025-07-22 19:07:13
评测机
分数
0
总耗时
11ms
峰值内存
504.0 KiB