/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:64:84: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long long int' [-Wformat=]
   printf("now(%d,%d) ans(%d,%d)=%d  rand(%d,%d)=%d\n",nx,ny,ansx,ansy,ans,tx,ty,num);
                                                                                    ^
/in/foo.cc:64:84: warning: format '%d' expects argument of type 'int', but argument 9 has type 'long long int' [-Wformat=]
/in/foo.cc: In function 'long long int calc(int, int)':
/in/foo.cc:16:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return ans;
         ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:45:5: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  ans=calc(nx,ny);
  ~~~^~~~~~~~~~~~
/in/foo.cc:61:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
    else if (num==ans && ansx>tx) ansx=nx=tx,ansy=ny=ty;
         ^~
/in/foo.cc:47:43: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%lld %lld\n",calc(1,1),calc(4,4));
                                           ^
/in/foo.cc:47:43: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 376.0 KiB
#2 Wrong Answer 14ms 344.0 KiB
#3 Wrong Answer 3ms 384.0 KiB
#4 Wrong Answer 6ms 384.0 KiB
#5 Wrong Answer 15ms 360.0 KiB
#6 Wrong Answer 26ms 744.0 KiB
#7 Wrong Answer 40ms 840.0 KiB
#8 Wrong Answer 62ms 1.0 MiB
#9 Wrong Answer 52ms 1.223 MiB
#10 Wrong Answer 53ms 1.496 MiB

信息

递交者
类型
递交
题目
P1036 安装服务器
语言
C++
递交时间
2018-08-28 18:56:35
评测时间
2018-08-28 18:56:35
评测机
分数
0
总耗时
277ms
峰值内存
1.496 MiB