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

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:7: error: ‘sync_with_studio’ is not a member of ‘std::ios’ {aka ‘std::basic_ios<char>’}
8 | ios::sync_with_studio(0);
| ^~~~~~~~~~~~~~~~
lunchbox.cpp:14:9: error: expected primary-expression before ‘<’ token
14 | vector <int> requirement (m);
| ^
lunchbox.cpp:14:10: error: expected primary-expression before ‘int’
14 | vector <int> requirement (m);
| ^~~
lunchbox.cpp:16:8: error: ‘requirement’ was not declared in this scope
16 | cin>>requirement[i];
| ^~~~~~~~~~~
lunchbox.cpp:19:7: error: ‘requirement’ was not declared in this scope
19 | sort(requirement.begin, requirement.end);
| ^~~~~~~~~~~