记录详情

Accepted

foo.cc: In function 'bool bin_find(std::vector<int>&, int, int)':
foo.cc:16:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |     if (right < nums.size() && nums[right] == aim) return true;
      |         ~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:28:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |     for (int i = 0; i < nums.size() - 1; i++)
      |                     ~~^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 5ms 412.0 KiB
#3 Accepted 8ms 412.0 KiB
#4 Accepted 18ms 540.0 KiB
#5 Accepted 49ms 820.0 KiB

信息

递交者
类型
递交
题目
6-1 和为定值的数对
语言
C++
递交时间
2023-12-04 16:52:00
评测时间
2023-12-04 16:52:00
评测机
分数
100
总耗时
86ms
峰值内存
820.0 KiB