Accepted

/in/foo.cc: In function 'std::vector<int> mul(std::vector<int>, std::vector<int>&)':
/in/foo.cc:7:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < a.size(); i++)
                  ~~^~~~~~~~~~
/in/foo.cc:10:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int j = 0; j < b.size(); j++)
                   ~~^~~~~~~~~~
/in/foo.cc:13:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (i + j < ans.size())
        ~~~~~~^~~~~~~~~~~~
/in/foo.cc: In function 'std::vector<int> add(std::vector<int>, std::vector<int>)':
/in/foo.cc:44:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < a.size() || i < b.size(); i++)
                  ~~^~~~~~~~~~
/in/foo.cc:44:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < a.size() || i < b.size(); i++)
                                  ~~^~~~~~~~~~
/in/foo.cc:46:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (i < a.size())t += a[i];
       ~~^~~~~~~~~~
/in/foo.cc:47:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (i < b.size()) t += b[i];
       ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 388.0 KiB
#2 Accepted 2ms 480.0 KiB
#3 Accepted 9ms 608.0 KiB
#4 Accepted 9ms 584.0 KiB
#5 Accepted 18ms 652.0 KiB
#6 Accepted 5ms 492.0 KiB
#7 Accepted 18ms 588.0 KiB
#8 Accepted 40ms 656.0 KiB
#9 Accepted 44ms 664.0 KiB
#10 Accepted 46ms 672.0 KiB

信息

递交者
类型
递交
题目
「一本通 5.1 例 3」凸多边形的划分
语言
C++
递交时间
2024-10-03 18:51:04
评测时间
2024-10-03 18:51:04
评测机
分数
100
总耗时
198ms
峰值内存
672.0 KiB