Problem | goodchef |
---|---|
User | c00dingstudygolden |
Submission Time | 2024-07-31 17:26:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
goodchef.cpp: In function ‘int main()’:
goodchef.cpp:16:30: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘int’)
16 | bestIngredients[i] = 0;
| ^
In file included from /usr/include/c++/9/vector:72,
from goodchef.cpp:2:
/usr/include/c++/9/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]’
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:199:42: note: no known conversion for argument 1 from ‘int’ to ‘const std::vector<long long int>&’
199 | operator=(const vector<_Tp, _Alloc>& __x)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/9/vector:67,