/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int k(int*, int*, int*)':
/in/foo.cc:12:23: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
  ans=(xx[i]-xx[i+1])^2+(yy[i]-yy[i+1])^2+(zz[i]-zz[i+1])^2;
                      ~^~~~~~~~~~~~~~~~
/in/foo.cc:12:41: warning: suggest parentheses around arithmetic in operand of '^' [-Wparentheses]
  ans=(xx[i]-xx[i+1])^2+(yy[i]-yy[i+1])^2+(zz[i]-zz[i+1])^2;
                                        ~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:36: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int (*)[10001]' [-Wformat=]
    scanf("%d%d%d",&x[j],&y[j],&z[j]);
                                    ^
/in/foo.cc:23:36: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int (*)[10001]' [-Wformat=]
/in/foo.cc:23:36: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int (*)[10001]' [-Wformat=]
# 状态 耗时 内存占用
#1 Time Exceeded ≥1001ms ≥8.184 MiB
#2 Time Exceeded ≥1000ms ≥8.188 MiB
#3 Time Exceeded ≥1001ms ≥8.203 MiB
#4 Time Exceeded ≥1000ms ≥10.188 MiB
#5 Wrong Answer 4ms 8.301 MiB
#6 Wrong Answer 5ms 12.305 MiB
#7 Time Exceeded ≥1000ms ≥8.195 MiB
#8 Time Exceeded ≥1000ms ≥8.191 MiB
#9 Runtime Error 20ms 8.176 MiB
#10 Wrong Answer 4ms 8.188 MiB

信息

递交者
类型
递交
题目
P2031 奶酪
语言
C++
递交时间
2019-12-31 17:18:56
评测时间
2019-12-31 17:18:56
评测机
分数
0
总耗时
6039ms
峰值内存
12.305 MiB