Problem lunchbox
User god
Submission Time 2025-06-18 14:12:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:4:2: error: ‘vector’ was not declared in this scope
4 | vector<int> boxzez;
| ^~~~~~
lunchbox.cpp:4:9: error: expected primary-expression before ‘int’
4 | vector<int> boxzez;
| ^~~
lunchbox.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> m >> nol;
| ^~~
| std::cin
In file included from lunchbox.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
lunchbox.cpp:11:3: error: ‘boxzez’ was not declared in this scope
11 | boxzez.push_back(x);
| ^~~~~~
lunchbox.cpp:13:7: error: ‘boxzez’ was not declared in this scope
13 | sort(boxzez.begin(), boxzez.end());
| ^~~~~~
lunchbox.cpp:13:2: error: ‘sort’ was not declared in this scope;