/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:43:10: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations]
  if (t1[i]) cout<<i<<" ";
      ~~~~^
/in/foo.cc:42:16: note: within this loop
  for (int i=1;i<=1005;i++)
               ~^~~~~~
/in/foo.cc:40:10: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations]
  if (t2[i]) cout<<i<<" ";
      ~~~~^
/in/foo.cc:39:16: note: within this loop
  for (int i=1;i<=1005;i++)
               ~^~~~~~
/in/foo.cc:37:7: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
   t2[p]++;
   ~~~~^
/in/foo.cc:24:13: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
         t1[p]++; 
         ~~~~^
# 状态 耗时 内存占用
#1 Accepted 2ms 372.0 KiB
#2 Accepted 3ms 376.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 2ms 372.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 5ms 368.0 KiB
#8 Accepted 2ms 372.0 KiB
#9 Accepted 4ms 372.0 KiB
#10 Accepted 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1498 排座椅
语言
C++
递交时间
2018-05-30 22:03:45
评测时间
2018-05-30 22:03:45
评测机
分数
100
总耗时
32ms
峰值内存
384.0 KiB