/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:19: warning: unused variable 'k' [-Wunused-variable]
  register int i,j,k,n,x1,m,sa,sb,fmin,smin,seatb,seata,pfmin,psmin,p,ans,preans,citynum;
                   ^
/in/foo.cc:5:28: warning: unused variable 'sa' [-Wunused-variable]
  register int i,j,k,n,x1,m,sa,sb,fmin,smin,seatb,seata,pfmin,psmin,p,ans,preans,citynum;
                            ^~
/in/foo.cc:5:31: warning: unused variable 'sb' [-Wunused-variable]
  register int i,j,k,n,x1,m,sa,sb,fmin,smin,seatb,seata,pfmin,psmin,p,ans,preans,citynum;
                               ^~
/in/foo.cc:10:11: warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(i=1;i<=m;i++) cin>>s[i]>>x[i];
          ~^~~
/in/foo.cc:60:15: warning: 'citynum' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<citynum;  
               ^
/in/foo.cc:51:15: warning: 'smin' may be used uninitialized in this function [-Wmaybe-uninitialized]
   pans[i]=smin/fmin;
           ~~~~^~~~~
/in/foo.cc:5:34: warning: 'fmin' may be used uninitialized in this function [-Wmaybe-uninitialized]
  register int i,j,k,n,x1,m,sa,sb,fmin,smin,seatb,seata,pfmin,psmin,p,ans,preans,citynum;
                                  ^~~~
/in/foo.cc:39:51: warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
   for(j=i+1;(h[i]-h[j]<0?h[j]-h[i]:h[i]-h[j])<=x1 && j<=p;j++){
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
# 状态 耗时 内存占用
#1 Runtime Error 2ms 312.0 KiB
#2 Runtime Error 1ms 220.0 KiB
#3 Runtime Error 1ms 224.0 KiB
#4 Runtime Error 1ms 216.0 KiB
#5 Runtime Error 3ms 220.0 KiB
#6 Runtime Error 3ms 324.0 KiB
#7 Runtime Error 2ms 344.0 KiB
#8 Runtime Error 3ms 352.0 KiB
#9 Runtime Error 2ms 344.0 KiB
#10 Runtime Error 2ms 336.0 KiB
#11 Runtime Error 12ms 1.078 MiB
#12 Runtime Error 10ms 856.0 KiB
#13 Runtime Error 10ms 1.016 MiB
#14 Runtime Error 10ms 1.078 MiB
#15 Runtime Error 11ms 6.148 MiB
#16 Runtime Error 11ms 6.121 MiB
#17 Runtime Error 13ms 6.141 MiB
#18 Runtime Error 15ms 6.16 MiB
#19 Runtime Error 16ms 6.176 MiB
#20 Runtime Error 15ms 6.176 MiB

信息

递交者
类型
递交
题目
P1780 开车旅行
语言
C++
递交时间
2019-08-28 16:33:53
评测时间
2019-08-28 16:33:53
评测机
分数
0
总耗时
153ms
峰值内存
6.176 MiB