记录详情

Accepted

foo.cc: In function 'std::vector<int> add(std::vector<int>&, std::vector<int>&)':
foo.cc:11:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |         for(int i=0;i<A.size()||i<B.size();i++)
      |                     ~^~~~~~~~~
foo.cc:11:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   11 |         for(int i=0;i<A.size()||i<B.size();i++)
      |                                 ~^~~~~~~~~
foo.cc:13:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |                 if(i<A.size()) t+=A[i];
      |                    ~^~~~~~~~~
foo.cc:14:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |                 if(i<B.size()) t+=B[i];
      |                    ~^~~~~~~~~
foo.cc: In function 'std::vector<int> solve(std::vector<int>&)':
foo.cc:26:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   26 |         for(int i=0;i<res.size();i++)
      |                     ~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 5ms 412.0 KiB
#2 Accepted 4ms 328.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 5ms 412.0 KiB
#6 Accepted 5ms 332.0 KiB
#7 Accepted 4ms 412.0 KiB
#8 Accepted 3ms 412.0 KiB
#9 Accepted 3ms 412.0 KiB
#10 Accepted 4ms 412.0 KiB
#11 Accepted 4ms 412.0 KiB
#12 Accepted 3ms 412.0 KiB
#13 Accepted 16ms 2.023 MiB
#14 Accepted 17ms 1.992 MiB
#15 Accepted 16ms 2.023 MiB
#16 Accepted 15ms 2.023 MiB
#17 Accepted 16ms 1.926 MiB
#18 Accepted 16ms 2.051 MiB
#19 Accepted 16ms 2.023 MiB
#20 Accepted 16ms 2.023 MiB

信息

递交者
类型
递交
题目
P1511 Problem 2D. A+B,但是人生苦短...
比赛
2023秋 悬赏令第二周
语言
C++
递交时间
2023-10-20 19:50:24
评测时间
2023-10-20 19:50:24
评测机
分数
100
总耗时
184ms
峰值内存
2.051 MiB