Problem paint
User StormyGood
Submission Time 2024-01-26 15:00:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

paint.cpp: In function ‘int main()’:
paint.cpp:28:9: error: reference to ‘list’ is ambiguous
28 | list[i] = bro;
| ^~~~
In file included from /usr/include/c++/9/list:63,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:79,
from paint.cpp:1:
/usr/include/c++/9/bits/stl_list.h:552:11: note: candidates are: ‘template<class _Tp, class _Alloc> class std::__cxx11::list’
552 | class list : protected _List_base<_Tp, _Alloc>
| ^~~~
paint.cpp:4:42: note: ‘int list [20001]’
4 | int jobcost[20001], jobincrement[20001], list[20001];
| ^~~~
paint.cpp:35:13: error: reference to ‘list’ is ambiguous
35 | if (list[i] > i) {
| ^~~~
In file included from /usr/include/c++/9/list:63,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:79,