Problem lunchbox
User wahjsodhowasd
Submission Time 2026-02-11 11:55:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:4: error: ‘class std::vector<int>’ has no member named ‘pushback’; did you mean ‘push_back’?
11 | v.pushback(k);
| ^~~~~~~~
| push_back
lunchbox.cpp:14:12: error: expected ‘;’ before ‘)’ token
14 | for (N>v[0]){
| ^
| ;
lunchbox.cpp:18:1: error: ‘Cout’ was not declared in this scope
18 | Cout<<A;}
| ^~~~
lunchbox.cpp:18:9: error: expected primary-expression before ‘}’ token
18 | Cout<<A;}
| ^
lunchbox.cpp:18:9: error: expected ‘)’ before ‘}’ token
18 | Cout<<A;}
| ^
| )
lunchbox.cpp:14:5: note: to match this ‘(’
14 | for (N>v[0]){
| ^
lunchbox.cpp:18:9: error: expected primary-expression before ‘}’ token
18 | Cout<<A;}
| ^