/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:55:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   55 |                 for (int k = 0; k < ve[i].size(); k++)
      |                                 ~~^~~~~~~~~~~~~~
foo.cc:28:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   28 |     scanf("%d%d%d", &n, &wMax, &k);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:30:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   30 |         scanf("%d%d", &eqp[i].val, &eqp[i].w);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:36:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   36 |         scanf("%d%d", &a, &b);
      |         ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 6ms 2.125 MiB
#3 Accepted 6ms 3.375 MiB
#4 Accepted 6ms 3.5 MiB
#5 Accepted 10ms 5.625 MiB
#6 Accepted 9ms 2.5 MiB
#7 Accepted 11ms 2.5 MiB
#8 Accepted 7ms 2.5 MiB
#9 Accepted 6ms 512.0 KiB
#10 Accepted 11ms 7.0 MiB

信息

递交者
类型
递交
题目
P1250 最勇敢的机器人
语言
C++
递交时间
2022-06-05 16:20:13
评测时间
2022-06-05 16:20:13
评测机
分数
100
总耗时
80ms
峰值内存
7.0 MiB