Problem lunchbox
User phoenix348
Submission Time 2025-02-03 17:00:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:6:1: error: expected declaration before ‘}’ token
6 | }
| ^
lunchbox.cpp:9:5: error: ‘cin’ does not name a type; did you mean ‘sin’?
9 | cin>>N;
| ^~~
| sin
lunchbox.cpp:10:5: error: ‘cin’ does not name a type; did you mean ‘sin’?
10 | cin>>m;
| ^~~
| sin
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:40:12: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::vector<int>’)
40 | cin>>ki;
| ~~~^~~~
| | |
| | std::vector<int>
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/iostream:40,
from lunchbox.cpp:1:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& s