Problem | paint |
---|---|
User | StormyGood |
Submission Time | 2024-01-26 14:59:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
paint.cpp: In function ‘int main()’:
paint.cpp:28:3: 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:3:40: note: ‘int list [20001]’
3 | int jobcost[20001],jobincrement[20001],list[20001];
| ^~~~
paint.cpp:28:8: error: ‘i’ was not declared in this scope
28 | list[i] = bro;
| ^
paint.cpp:33:7: error: reference to ‘list’ is ambiguous
33 | if (list[i] > i)
| ^~~~
In file included from /usr/include/c++/9/list:63,