/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:145:16: error: 'abs' was not declared in this scope
   if (abs(b - a) == numOfVec / 2) {
                ^
foo.cpp:145:16: note: suggested alternative:
In file included from foo.cpp:12:0:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cmath:99:5: note:   'std::abs'
     abs(_Tp __x)
     ^
foo.cpp:171:16: error: 'abs' was not declared in this scope
   if (abs(b - a) < numOfVec / 2) {
                ^
foo.cpp:171:16: note: suggested alternative:
In file included from foo.cpp:12:0:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cmath:99:5: note:   'std::abs'
     abs(_Tp __x)
     ^

信息

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