Problem lunchbox
User AJigglypuffCoder
Submission Time 2024-10-21 17:10:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:64:17: error: expected ‘;’ before ‘<’ token
64 | for (int i=0,i<m,i++) {
| ^
| ;
lunchbox.cpp:64:17: error: expected primary-expression before ‘<’ token
lunchbox.cpp:64:23: error: expected ‘;’ before ‘)’ token
64 | for (int i=0,i<m,i++) {
| ^
| ;
lunchbox.cpp:65:9: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::__cxx11::list<int>’)
65 | cin >> k[i];
| ~~~ ^~ ~~~~
| | |
| | std::__cxx11::list<int>
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,