/ Vijos /

记录详情

Wrong Answer

/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 4ms 376.0 KiB
#2 Wrong Answer 2ms 360.0 KiB
#3 Wrong Answer 4ms 344.0 KiB
#4 Wrong Answer 6ms 352.0 KiB
#5 Wrong Answer 10ms 348.0 KiB
#6 Wrong Answer 28ms 768.0 KiB
#7 Wrong Answer 53ms 752.0 KiB
#8 Wrong Answer 51ms 968.0 KiB
#9 Wrong Answer 87ms 1.203 MiB
#10 Wrong Answer 66ms 1.484 MiB

信息

递交者
类型
递交
题目
P1036 安装服务器
语言
C++
递交时间
2018-08-28 22:16:37
评测时间
2018-08-28 22:16:37
评测机
分数
0
总耗时
314ms
峰值内存
1.484 MiB