Problem lunchbox
User yuxiangt
Submission Time 2025-07-26 23:57:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:5:20: error: expected ‘;’ before ‘signed’
5 | using namespace std
| ^
| ;
6 |
7 | signed main(){
| ~~~~~~
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:7: error: ‘sync’ is not a member of ‘std::ios’ {aka ‘std::basic_ios<char>’}
8 | ios::sync with studio;
| ^~~~
lunchbox.cpp:14:9: error: expected primary-expression before ‘<’ token
14 | vector <int> requiremnt (m);
| ^
lunchbox.cpp:14:10: error: expected primary-expression before ‘int’
14 | vector <int> requiremnt (m);
| ^~~
lunchbox.cpp:15:6: error: ‘i’ was not declared in this scope
15 | for(i=0; i<m;i++){
| ^
lunchbox.cpp:16:8: error: ‘requirement’ was not declared in this scope
16 | cin>>requirement[i];
| ^~~~~~~~~~~
lunchbox.cpp:22:7: error: ‘i’