/ Vijos /

记录详情

Compile Error

/in/foo.cc:10:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main(){
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:14:22: error: 'abs' was not declared in this scope
   if(++a>=11&&abs(d-f)>1)h[++j]=d,h[++j]=f,a=d=f=0;
                      ^
/in/foo.cc:14:22: note: suggested alternative:
In file included from /in/foo.cc:1:0:
/usr/include/c++/6/cmath:103:5: note:   'std::abs'
     abs(_Tp __x)
     ^~~
/in/foo.cc:15:22: error: 'abs' was not declared in this scope
   if(++b>=21&&abs(e-g)>1)i[++k]=e,i[++k]=g,b=e=g=0;
                      ^
/in/foo.cc:15:22: note: suggested alternative:
In file included from /in/foo.cc:1:0:
/usr/include/c++/6/cmath:103:5: note:   'std::abs'
     abs(_Tp __x)
     ^~~

信息

递交者
类型
递交
题目
P1217 乒乓球
语言
C++
递交时间
2019-09-01 13:40:48
评测时间
2019-09-01 13:40:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes