/ Vijos /

记录详情

Accepted

foo.cc: In function 'VI sub(VI&, VI&)':
foo.cc:20:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   20 |         if (i < b.size()) t -= b[i];
      |             ~~^~~~~~~~~~
foo.cc: In function 'VI add(VI&, VI&)':
foo.cc:32:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   32 |         if (i < a.size()) t += a[i];
      |             ~~^~~~~~~~~~
foo.cc:33:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |         if (i < b.size()) t += b[i];
      |             ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1372 数学课做减法
语言
C++
递交时间
2021-12-16 18:41:54
评测时间
2021-12-16 18:41:54
评测机
分数
100
总耗时
13ms
峰值内存
384.0 KiB