/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:8:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |   scanf("%d%d%d%d%d",&m,&n,&k,&l,&d);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:12:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   12 |     scanf("%d%d%d%d",&xi,&yi,&pi,&qi);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:50:11: warning: iteration 1001 invokes undefined behavior [-Waggressive-loop-optimizations]
   50 |     if(c[i])
      |        ~~~^
foo.cc:48:17: note: within this loop
   48 |   for(int i=0; i<1005;i++)
      |                ~^~~~~
foo.cc:56:11: warning: iteration 1001 invokes undefined behavior [-Waggressive-loop-optimizations]
   56 |     if(o[i])
      |        ~~~^
foo.cc:54:17: note: within this loop
   54 |   for(int i=0; i<1005; i++)
      |                ~^~~~~
foo.cc:46:8: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
   46 |     o[p]++;
      |     ~~~^
foo.cc:31:8: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
   31 |     c[p]++;
      |     ~~~^
正在同步测试数据,请稍后
Found 5 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 396.0 KiB
#4 Accepted 2ms 396.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1244 [NOIP2008 普及组] 排座椅
题目数据
下载
语言
C++
递交时间
2022-07-03 18:58:46
评测时间
2022-07-03 18:58:46
评测机
分数
100
总耗时
13ms
峰值内存
396.0 KiB