Problem coinbag
User SheepHeads
Submission Time 2024-02-09 15:13:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinbag.cpp: In function ‘int main()’:
coinbag.cpp:2:5: error: ‘ios_base’ has not been declared
2 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
coinbag.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin.tie(0);
| ^~~
coinbag.cpp:8:5: error: ‘vector’ was not declared in this scope
8 | vector<int> weight, value;
| ^~~~~~
coinbag.cpp:8:12: error: expected primary-expression before ‘int’
8 | vector<int> weight, value;
| ^~~
coinbag.cpp:13:9: error: ‘weight’ was not declared in this scope
13 | weight.push_back(x);
| ^~~~~~
coinbag.cpp:14:9: error: ‘value’ was not declared in this scope
14 | value.push_back(y);
| ^~~~~
coinbag.cpp:17:12: error: expected primary-expression before ‘int’
17 | vector<int> prev(k+1, 0);
| ^~~
coinbag.cpp:18:17: error: ‘