/ Vijos /

记录详情

Accepted

foo.cc: In function 'std::vector<int> times(std::vector<int>&, std::vector<int>&)':
foo.cc:8:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    8 |  for(int b_pos=0;b_pos<b.size();b_pos++){
      |                  ~~~~~^~~~~~~~~
foo.cc:10:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |   for(int a_pos=0;a_pos<a.size();a_pos++){
      |                   ~~~~~^~~~~~~~~
foo.cc:12:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |    if(a_pos+b_pos>=c.size()) c.push_back(t%10);
      |       ~~~~~~~~~~~^~~~~~~~~~
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 |  for(int i=0;i<c.size();i++){
      |              ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 16ms 384.0 KiB
#4 Accepted 361ms 636.0 KiB

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2022-01-12 07:53:18
评测时间
2022-01-12 07:53:18
评测机
分数
100
总耗时
384ms
峰值内存
636.0 KiB