Problem | lunchbox |
---|---|
User | yuxiangt |
Submission Time | 2025-07-26 23:58:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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: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’ was not declared in this scope
22 | for (i=0; i<m; i++){
| ^
lunchbox.cpp:23:13: error: ‘requirement’ was not declared in this scope
23 | if (total+requiremen