/ Vijos /

记录详情

Accepted

foo.cc: In function 'void dfs(int)':
foo.cc:13:25: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   13 |         if(chosen.size()>k||chosen.size()+n-dep+1<k) return;
      |            ~~~~~~~~~~~~~^~
foo.cc:13:50: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   13 |         if(chosen.size()>k||chosen.size()+n-dep+1<k) return;
      |                             ~~~~~~~~~~~~~~~~~~~~~^~
foo.cc:16:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |                 for(int i=0;i<chosen.size();i++) sum+=a[chosen[i]];
      |                             ~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1128 选数
语言
C++
递交时间
2022-08-11 16:40:07
评测时间
2022-08-11 16:40:07
评测机
分数
50
总耗时
13ms
峰值内存
384.0 KiB