记录详情

Accepted

foo.cc: In function 'std::vector<int> add(std::vector<int>, std::vector<int>)':
foo.cc:12:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |         for (int i = 0; i < a.size(); i++)
      |                         ~~^~~~~~~~~~
foo.cc:15:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   15 |                 if (i < b.size()) t += b[i];
      |                     ~~^~~~~~~~~~
foo.cc: In function 'std::vector<int> fun(std::vector<int>)':
foo.cc:28:27: 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 < a.size(); i++) t += a[i];
      |                         ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 5ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 408.0 KiB
#5 Accepted 3ms 412.0 KiB
#6 Accepted 3ms 412.0 KiB
#7 Accepted 3ms 412.0 KiB
#8 Accepted 3ms 412.0 KiB
#9 Accepted 3ms 412.0 KiB
#10 Accepted 3ms 332.0 KiB
#11 Accepted 3ms 412.0 KiB
#12 Accepted 3ms 412.0 KiB
#13 Accepted 18ms 2.773 MiB
#14 Accepted 18ms 2.695 MiB
#15 Accepted 17ms 2.691 MiB
#16 Accepted 16ms 2.648 MiB
#17 Accepted 16ms 2.648 MiB
#18 Accepted 18ms 2.773 MiB
#19 Accepted 16ms 2.648 MiB
#20 Accepted 17ms 2.648 MiB

信息

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