记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:28:28: warning: 'z1' is used uninitialized [-Wuninitialized]
   28 |         Vector3 v1(x1,y1,z1);
      |                            ^
/in/foo.cc:27:31: note: 'z1' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |                               ^~
/in/foo.cc:28:28: warning: 'y1' is used uninitialized [-Wuninitialized]
   28 |         Vector3 v1(x1,y1,z1);
      |                            ^
/in/foo.cc:27:22: note: 'y1' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |                      ^~
/in/foo.cc:28:28: warning: 'x1' is used uninitialized [-Wuninitialized]
   28 |         Vector3 v1(x1,y1,z1);
      |                            ^
/in/foo.cc:27:13: note: 'x1' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |             ^~
/in/foo.cc:29:28: warning: 'z2' is used uninitialized [-Wuninitialized]
   29 |         Vector3 v2(x2,y2,z2);
      |                            ^
/in/foo.cc:27:34: note: 'z2' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |                                  ^~
/in/foo.cc:29:28: warning: 'y2' is used uninitialized [-Wuninitialized]
   29 |         Vector3 v2(x2,y2,z2);
      |                            ^
/in/foo.cc:27:25: note: 'y2' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |                         ^~
/in/foo.cc:29:28: warning: 'x2' is used uninitialized [-Wuninitialized]
   29 |         Vector3 v2(x2,y2,z2);
      |                            ^
/in/foo.cc:27:16: note: 'x2' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |                ^~
/in/foo.cc:30:28: warning: 'z3' is used uninitialized [-Wuninitialized]
   30 |         Vector3 v3(x3,y3,z3);
      |                            ^
/in/foo.cc:27:37: note: 'z3' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |                                     ^~
/in/foo.cc:30:28: warning: 'y3' is used uninitialized [-Wuninitialized]
   30 |         Vector3 v3(x3,y3,z3);
      |                            ^
/in/foo.cc:27:28: note: 'y3' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |                            ^~
/in/foo.cc:30:28: warning: 'x3' is used uninitialized [-Wuninitialized]
   30 |         Vector3 v3(x3,y3,z3);
      |                            ^
/in/foo.cc:27:19: note: 'x3' declared here
   27 |         int x1,x2,x3,y1,y2,y3,z1,z2,z3,k;
      |                   ^~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 476.0 KiB

信息

递交者
类型
自测
题目
P1017 OO4-1 向量类的算术运算符的重载
语言
C++
递交时间
2025-03-28 19:55:57
评测时间
2025-03-28 19:55:57
评测机
分数
0
总耗时
2ms
峰值内存
476.0 KiB