/ Vijos /

记录详情

Accepted

foo.cc: In function 'void dfs(int, int, int)':
foo.cc:20:20: 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 < infectceng[k].size(); i++) {
      |                  ~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:22:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |    for (int j = 0; j < infect[infectceng[k][i]].size(); j++) {
      |                    ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:33:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   33 |  for (int i = 0; i < infectceng[k + 1].size(); i++) {
      |                  ~~^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:42:7: warning: variable 'exist' set but not used [-Wunused-but-set-variable]
   42 |  bool exist[301] = { 0 };
      |       ^~~~~
foo.cc:41:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   41 |  scanf("%d%d", &n, &p);
      |  ~~~~~^~~~~~~~~~~~~~~~
foo.cc:46:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   46 |   scanf("%d%d", &f, &c);
      |   ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 44ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 4ms 384.0 KiB
#7 Accepted 5ms 384.0 KiB
#8 Accepted 3ms 384.0 KiB
#9 Accepted 5ms 384.0 KiB
#10 Accepted 49ms 508.0 KiB

信息

递交者
类型
递交
题目
P1101 传染病防治
语言
C++
递交时间
2021-12-11 21:03:40
评测时间
2021-12-11 21:03:40
评测机
分数
100
总耗时
127ms
峰值内存
508.0 KiB