foo.cpp: In function 'void Update(REC, REC)':
foo.cpp:28:31: error: 'abs' was not declared in this scope
dis[xx.num][0]=abs(xx.h-yy.h);
^
foo.cpp:31:19: error: 'abs' was not declared in this scope
if (abs(xx.h-yy.h)<dis[xx.num][0] || (abs(xx.h-yy.h)==dis[xx.num][0] && yy.h<a[ne[xx.num][0]].h))
^
foo.cpp: In function 'int main()':
foo.cpp:120:33: warning: unknown conversion type character 'l' in format [-Wformat=]
printf("%lld %lld\n",disa,disb);
^
foo.cpp:120:33: warning: unknown conversion type character 'l' in format [-Wformat=]
foo.cpp:120:33: warning: too many arguments for format [-Wformat-extra-args]