记录详情

Runtime Error

/in/foo.cc: In function 'bool find(std::vector<std::__cxx11::basic_string<char> >&, int, int, std::__cxx11::string)':
/in/foo.cc:9:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if(x < 0 || y > s.size() - 1 || x > y) return false;
                 ~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:32:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 for(int i = 0; i < s.size(); i++)
                                ~~^~~~~~~~~~
/in/foo.cc:40:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                     else if(tmp > s[i] && i == s.size() - 1)
                                           ~~^~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 1ms 328.0 KiB
#2 Runtime Error 1ms 324.0 KiB
#3 Runtime Error 1ms 208.0 KiB
#4 Runtime Error 1ms 208.0 KiB
#5 Runtime Error 1ms 200.0 KiB
#6 Runtime Error 1ms 208.0 KiB
#7 Runtime Error 1ms 204.0 KiB
#8 Runtime Error 1ms 208.0 KiB
#9 Runtime Error 1ms 200.0 KiB
#10 Runtime Error 1ms 212.0 KiB

信息

递交者
类型
递交
题目
图书管理
题目数据
下载
语言
C++
递交时间
2019-10-28 19:33:39
评测时间
2019-10-28 19:33:39
评测机
分数
0
总耗时
13ms
峰值内存
328.0 KiB