/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:24:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 |             scanf("%d", &s[i]);
      |             ~~~~~^~~~~~~~~~~~~
foo.cc:27:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   27 |             scanf("%d%d%d", &u, &v, &w);
      |             ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:31:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   31 |         scanf("%d", &q);
      |         ~~~~~^~~~~~~~~~
foo.cc:35:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   35 |             scanf("%d%d", &u, &v);
      |             ~~~~~^~~~~~~~~~~~~~~~
foo.cc:25:27: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
   25 |         for (int i = 0; i < m; i++)
      |                         ~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read -1, expect 2552. 2ms 384.0 KiB
#2 Wrong Answer Read -1, expect 3572. 2ms 384.0 KiB
#3 Wrong Answer Read -1, expect 5835. 2ms 384.0 KiB
#4 Wrong Answer Read -1, expect 1455. 3ms 384.0 KiB
#5 Wrong Answer Read -1, expect 5011. 3ms 384.0 KiB
#6 Wrong Answer Read -1, expect 1497. 2ms 384.0 KiB
#7 Wrong Answer Read -1, expect 1628. 2ms 384.0 KiB
#8 Wrong Answer Read -1, expect 601. 2ms 384.0 KiB
#9 Wrong Answer Read -1, expect 2525. 5ms 384.0 KiB
#10 Wrong Answer Read -1, expect 492. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1746 小D的旅行
语言
C++
递交时间
2022-03-19 06:55:15
评测时间
2022-03-19 06:55:15
评测机
分数
0
总耗时
28ms
峰值内存
384.0 KiB