/ Vijos /

记录详情

Wrong Answer

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

信息

递交者
类型
递交
题目
P1101 传染病防治
语言
C++
递交时间
2021-12-11 19:59:35
评测时间
2021-12-11 19:59:35
评测机
分数
10
总耗时
26ms
峰值内存
512.0 KiB