/in/foo.cc: In function 'int DC(int, int)':
/in/foo.cc:9:40: error: expression list treated as compound expression in functional cast [-fpermissive]
if(l==r) return int(abs(a[l]),abs(a[l]));
^
/in/foo.cc:9:24: warning: left operand of comma operator has no effect [-Wunused-value]
if(l==r) return int(abs(a[l]),abs(a[l]));
~~~^~~~~~
/in/foo.cc:10:8: error: 'INF' was not declared in this scope
int v(-INF,INF);
^~~
/in/foo.cc:10:15: error: expression list treated as compound expression in initializer [-fpermissive]
int v(-INF,INF);
^
/in/foo.cc:15:3: error: request for member 'first' in 'v', which is of non-class type 'int'
v.first=max(v.first, DC(l,i).first-DC(i+1,r).second );
^~~~~
/in/foo.cc:15:15: error: request for member 'first' in 'v', which is of non-class type 'int'
v.first=max(v.first, DC(l,i).first-DC(i+1,r).second );
^~~~~
/in/foo.cc:15:30: error: request for member 'first' in 'DC(l, i)', which is of non-class type 'int'
v.first=max(v.first, DC(l,i).first-DC(i+1,r).second );
^~~~~
/in/foo.cc:15:46: error: request for member 'second' in 'DC((i + 1), r)', which is of non-class type 'int'
v.first=max(v.first, DC(l,i).first-DC(i+1,r).second );
^~~~~~
/in/foo.cc:16:3: error: request for member 'second' in 'v', which is of non-class type 'int'
v.second=min(v.second, DC(l,i).second-DC(i+1,r).first );
^~~~~~
/in/foo.cc:16:16: error: request for member 'second' in 'v', which is of non-class type 'int'
v.second=min(v.second, DC(l,i).second-DC(i+1,r).first );
^~~~~~
/in/foo.cc:16:32: error: request for member 'second' in 'DC(l, i)', which is of non-class type 'int'
v.second=min(v.second, DC(l,i).second-DC(i+1,r).first );
^~~~~~
/in/foo.cc:16:49: error: request for member 'first' in 'DC((i + 1), r)', which is of non-class type 'int'
v.second=min(v.second, DC(l,i).second-DC(i+1,r).first );
^~~~~
/in/foo.cc:19:3: error: request for member 'first' in 'v', which is of non-class type 'int'
v.first=max(v.first, DC(l,i).first+DC(i+1,r).first );
^~~~~
/in/foo.cc:19:15: error: request for member 'first' in 'v', which is of non-class type 'int'
v.first=max(v.first, DC(l,i).first+DC(i+1,r).first );
^~~~~
/in/foo.cc:19:30: error: request for member 'first' in 'DC(l, i)', which is of non-class type 'int'
v.first=max(v.first, DC(l,i).first+DC(i+1,r).first );
^~~~~
/in/foo.cc:19:46: error: request for member 'first' in 'DC((i + 1), r)', which is of non-class type 'int'
v.first=max(v.first, DC(l,i).first+DC(i+1,r).first );
^~~~~
/in/foo.cc:20:3: error: request for member 'second' in 'v', which is of non-class type 'int'
v.second=min(v.second, DC(l,i).second+DC(i+1,r).second );
^~~~~~
/in/foo.cc:20:16: error: request for member 'second' in 'v', which is of non-class type 'int'
v.second=min(v.second, DC(l,i).second+DC(i+1,r).second );
^~~~~~
/in/foo.cc:20:32: error: request for member 'second' in 'DC(l, i)', which is of non-class type 'int'
v.second=min(v.second, DC(l,i).second+DC(i+1,r).second );
^~~~~~
/in/foo.cc:20:49: error: request for member 'second' in 'DC((i + 1), r)', which is of non-class type 'int'
v.second=min(v.second, DC(l,i).second+DC(i+1,r).second );
^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:27:1: error: incomplete type 'std::ios {aka std::basic_ios<char>}' used in nested name specifier
ios::sync_with_stdio(false);
^~~
/in/foo.cc:28:1: error: 'cin' was not declared in this scope
cin>>n;
^~~
/in/foo.cc:31:1: error: 'cout' was not declared in this scope
cout<<DC(0,n-1).first<<endl;
^~~~
/in/foo.cc:31:17: error: request for member 'first' in 'DC(0, (n - 1))', which is of non-class type 'int'
cout<<DC(0,n-1).first<<endl;
^~~~~
/in/foo.cc:31:24: error: 'endl' was not declared in this scope
cout<<DC(0,n-1).first<<endl;
^~~~