foo.cc: In function 'int main()':
foo.cc:6:4: error: 'cinn' was not declared in this scope
cinn>>n;
^~~~
foo.cc:6:4: note: suggested alternative: 'uint'
cinn>>n;
^~~~
uint
foo.cc:9:21: warning: right operand of comma operator has no effect [-Wunused-value]
cin>>m>>p1,s1,s2;
^~
foo.cc:9:23: warning: right operand of comma operator has no effect [-Wunused-value]
cin>>m>>p1,s1,s2;
^
foo.cc:13:15: error: unable to find numeric literal operator 'operator""dra'
if(i<n)1dra=a[i]*(m-i)
^~~~
foo.cc:13:15: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
foo.cc:18:4: error: 'ans' was not declared in this scope
ans=m;
^~~
foo.cc:18:4: note: suggested alternative: 'abs'
ans=m;
^~~
abs
foo.cc:24:11: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
if(labs(tig-(d+(m-i)*s2))<minx;
^~~~
foo.cc:24:34: error: 'minx' was not declared in this scope
if(labs(tig-(d+(m-i)*s2))<minx;
^~~~
foo.cc:24:34: note: suggested alternative: 'main'
if(labs(tig-(d+(m-i)*s2))<minx;
^~~~
main
foo.cc:25:30: error: 'ans' was not declared in this scope
minx=tig-(d+(m-i)*s2),ans=1;
^~~
foo.cc:25:30: note: suggested alternative: 'abs'
minx=tig-(d+(m-i)*s2),ans=1;
^~~
abs
foo.cc:25:35: error: expected ')' before ';' token
minx=tig-(d+(m-i)*s2),ans=1;
^
foo.cc:33:11: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
if(labs(dra-(d+(i-m)*s2))<minx;
^~~~
foo.cc:33:34: error: 'minx' was not declared in this scope
if(labs(dra-(d+(i-m)*s2))<minx;
^~~~
foo.cc:33:34: note: suggested alternative: 'main'
if(labs(dra-(d+(i-m)*s2))<minx;
^~~~
main
foo.cc:34:36: error: 'ans' was not declared in this scope
minx=labs(dra-(t+(i-m)*s2)),ans=1;
^~~
foo.cc:34:36: note: suggested alternative: 'abs'
minx=labs(dra-(t+(i-m)*s2)),ans=1;
^~~
abs
foo.cc:34:41: error: expected ')' before ';' token
minx=labs(dra-(t+(i-m)*s2)),ans=1;
^
foo.cc:37:10: error: 'ans' was not declared in this scope
cout<<ans;
^~~
foo.cc:37:10: note: suggested alternative: 'abs'
cout<<ans;
^~~
abs
[Hydro](https://hydro.ac)提供评测服务