foo.cpp: In function 'int main()':
foo.cpp:28:27: error: 'abs' was not declared in this scope
p=sqr(abs(a[i].x-a[j].x)+abs(a[i].y-a[j].y));
^
foo.cpp:5:18: note: in definition of macro 'sqr'
#define sqr(x) ((x)*(x))
^
foo.cpp:28:27: note: suggested alternative:
p=sqr(abs(a[i].x-a[j].x)+abs(a[i].y-a[j].y));
^
foo.cpp:5:18: note: in definition of macro 'sqr'
#define sqr(x) ((x)*(x))
^
In file included from foo.cpp:2:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/cmath:99:5: note: 'std::abs'
abs(_Tp __x)
^