Problem lunchbox
User yuxiangt
Submission Time 2025-07-27 00:03:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:15:9: error: expected primary-expression before ‘<’ token
15 | vector <int> requirement (m);
| ^
lunchbox.cpp:15:10: error: expected primary-expression before ‘int’
15 | vector <int> requirement (m);
| ^~~
lunchbox.cpp:17:8: error: ‘requirement’ was not declared in this scope
17 | cin>>requirement[i];
| ^~~~~~~~~~~
lunchbox.cpp:20:7: error: ‘requirement’ was not declared in this scope
20 | sort(requirement.begin(), requirement.end());
| ^~~~~~~~~~~