boxes.cpp: In function 'll delivery(int, int, int, int*)':
boxes.cpp:15:9: error: reference to 'right' is ambiguous
right[i]=min(l, (ll)(l-data[i])*2);
^~~~~
boxes.cpp:6:28: note: candidates are: ll right [10000010]
ll n, k, l, lef[10000010], right[10000010], ans;
^~~~~
In file included from /usr/include/c++/7/ios:42:0,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from boxes.cpp:1:
/usr/include/c++/7/bits/ios_base.h:1007:3: note: std::ios_base& std::right(std::ios_base&)
right(ios_base& __base)
^~~~~
boxes.cpp:16:9: error: reference to 'right' is ambiguous
right[i]+=right[i+k];
^~~~~
boxes.cpp:6:28: note: candidates are: ll right [10000010]
ll n, k, l, lef[10000010], right[10000010], ans;
^~~~~
In file included from /usr/include/c++/7/ios:42:0,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from boxes.cpp:1:
/usr/include/c++/7/bits/ios_base.h:1007:3: note: std::ios_base& std::right(std::ios_base&)
right(ios_base& __base)
^~~~~
boxes.cpp:16:19: error: reference to 'right' is ambiguous
right[i]+=right[i+k];
^~~~~
boxes.cpp:6:28: note: candidates are: ll right [10000010]
ll n, k, l, lef[10000010], right[10000010], ans;
^~~~~
In file included from /usr/include/c++/7/ios:42:0,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from boxes.cpp:1:
/usr/include/c++/7/bits/ios_base.h:1007:3: note: std::ios_base& std::right(std::ios_base&)
right(ios_base& __base)
^~~~~
boxes.cpp:18:21: error: reference to 'right' is ambiguous
ans=min(lef[n], right[1]);
^~~~~
boxes.cpp:6:28: note: candidates are: ll right [10000010]
ll n, k, l, lef[10000010], right[10000010], ans;
^~~~~
In file included from /usr/include/c++/7/ios:42:0,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from boxes.cpp:1:
/usr/include/c++/7/bits/ios_base.h:1007:3: note: std::ios_base& std::right(std::ios_base&)
right(ios_base& __base)
^~~~~
boxes.cpp:19:47: error: reference to 'right' is ambiguous
for(ll i=1; i<n; i++) ans=min(ans, lef[i]+right[i+1]);
^~~~~
boxes.cpp:6:28: note: candidates are: ll right [10000010]
ll n, k, l, lef[10000010], right[10000010], ans;
^~~~~
In file included from /usr/include/c++/7/ios:42:0,
from /usr/include/c++/7/istream:38,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from boxes.cpp:1:
/usr/include/c++/7/bits/ios_base.h:1007:3: note: std::ios_base& std::right(std::ios_base&)
right(ios_base& __base)
^~~~~