Problem | lunchbox |
---|---|
User | themadpotato |
Submission Time | 2023-01-11 16:31:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:17:3: error: reference to ‘left’ is ambiguous
17 | left.push_back(n-k[0]);
| ^~~~
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from lunchbox.cpp:1:
/usr/include/c++/9/bits/ios_base.h:1011:3: note: candidates are: ‘std::ios_base& std::left(std::ios_base&)’
1011 | left(ios_base& __base)
| ^~~~
lunchbox.cpp:5:20: note: ‘std::vector<int> left’
5 | vector<int> k, dp, left;
| ^~~~
lunchbox.cpp:20:3: error: reference to ‘left’ is ambiguous
20 | left.push_back(n);
| ^~~~
In file include