记录详情

Accepted

/in/foo.cc:8:12: warning: 'judgement' initialized and declared 'extern'
 extern int judgement=0;
            ^~~~~~~~~
/in/foo.cc: In function 'std::istream& operator>>(std::istream&, Point&)':
/in/foo.cc:38:13: warning: statement has no effect [-Wunused-value]
             static_cast<int>(exm.y);
             ^~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:48:13: warning: statement has no effect [-Wunused-value]
             static_cast<int>(exm.x);
             ^~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:54:13: warning: statement has no effect [-Wunused-value]
             static_cast<int>(exm.x);
             ^~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:55:13: warning: statement has no effect [-Wunused-value]
             static_cast<int>(exm.y);
             ^~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In member function 'Point Point::add(Point)':
/in/foo.cc:72:5: warning: statement has no effect [-Wunused-value]
     static_cast<int>(sum.x);
     ^~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:73:5: warning: statement has no effect [-Wunused-value]
     static_cast<int>(sum.y);
     ^~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 212.0 KiB

信息

递交者
类型
自测
题目
P1013 类的输入输出--点与向量
语言
C++
递交时间
2020-04-14 14:35:26
评测时间
2020-04-14 14:35:26
评测机
分数
10
总耗时
2ms
峰值内存
212.0 KiB