/ Vijos /

记录详情

Compile Error

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]

信息

递交者
类型
递交
题目
P1780 开车旅行
语言
C++
递交时间
2015-10-04 16:46:54
评测时间
2015-10-04 16:46:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes