/ WHOJ /

记录详情

Accepted

foo.cc: In function 'void dfs(int, int, int)':
foo.cc:16:19: 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<g[x].size();i++) dfs(g[x][i],minx,x);
      |                  ~^~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:20:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   20 |     scanf("%d%d",&n,&m);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:22:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |     for (int i=1;i<=n;i++) scanf("%d",&c[i]);
      |                            ~~~~~^~~~~~~~~~~~
foo.cc:25:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |         scanf("%d%d%d",&t1,&t2,&t3);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 3.0 MiB
#2 Accepted 5ms 3.0 MiB
#3 Accepted 6ms 3.246 MiB
#4 Accepted 48ms 3.867 MiB
#5 Accepted 60ms 4.492 MiB
#6 Accepted 6ms 3.0 MiB
#7 Accepted 6ms 3.125 MiB
#8 Accepted 27ms 3.875 MiB
#9 Accepted 52ms 5.617 MiB
#10 Accepted 52ms 5.742 MiB

信息

递交者
类型
递交
题目
P1068 [NOIP2009 提高组] 最优贸易
题目数据
下载
语言
C++
递交时间
2022-02-19 19:38:37
评测时间
2022-07-30 21:12:17
评测机
分数
100
总耗时
272ms
峰值内存
5.742 MiB