/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   23 |  scanf("%d%d",&n,&m);
      |  ~~~~~^~~~~~~~~~~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |   scanf("%d%d%d",&a[i].x,&a[i].y,&a[i].t);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:38:11: warning: iteration 100005 invokes undefined behavior [-Waggressive-loop-optimizations]
   38 |   ans+=b[i];
      |        ~~~^
foo.cc:37:16: note: within this loop
   37 |  for(int i=0; i<=100005; i++)
      |               ~^~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 640.0 KiB
#2 Accepted 5ms 640.0 KiB
#3 Accepted 7ms 640.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 4ms 640.0 KiB
#6 Accepted 2ms 512.0 KiB
#7 Accepted 2ms 512.0 KiB
#8 Accepted 4ms 640.0 KiB
#9 Accepted 3ms 512.0 KiB
#10 Accepted 7ms 640.0 KiB

信息

递交者
类型
递交
题目
P1336 牧场的道路
题目数据
下载
语言
C++
递交时间
2022-08-09 09:06:43
评测时间
2022-08-09 09:06:43
评测机
分数
100
总耗时
48ms
峰值内存
640.0 KiB