/ Vijos /

记录详情

Compile Error

foo.cpp: In constructor 'Vector2D::Vector2D(int, double, double)':
foo.cpp:18:6: warning: 'Vector2D::index' will be initialized after [-Wreorder]
  int index;
      ^
foo.cpp:17:9: warning:   'double Vector2D::x' [-Wreorder]
  double x, y;
         ^
foo.cpp:15:2: warning:   when initialized here [-Wreorder]
  Vector2D(int _idx, double _x, double _y): index(_idx), x(_x), y(_y){}
  ^
foo.cpp: In function 'int main()':
foo.cpp:67:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < vec.size(); i++)
                               ^
foo.cpp:69:51: error: 'printf' was not declared in this scope
   printf("%.3f %.3f\n", vec[i].x+eps, vec[i].y+eps);
                                                   ^
foo.cpp:39:6: warning: unused variable 'm' [-Wunused-variable]
  int m = b - a + 2;
      ^

信息

递交者
类型
递交
题目
P1510 多边形顶点
语言
C++
递交时间
2016-11-18 22:56:39
评测时间
2016-11-18 22:56:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes