Problem | paint |
---|---|
User | jambusk |
Submission Time | 2025-06-18 17:16:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
paint.cpp: In function ‘int main()’:
paint.cpp:15:21: error: ‘price’ was not declared in this scope; did you mean ‘prices’?
15 | p[i] = {p_inc[i], price[i]};
| ^~~~~
| prices
paint.cpp:15:29: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’} and ‘<brace-enclosed initializer list>’)
15 | p[i] = {p_inc[i], price[i]};
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from paint.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:378:7: note: candidate: ‘std::pair<_T1, _T2>& std