Problem coinbag
User bluecloud0099
Submission Time 2026-07-16 15:27:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinbag.cpp: In function ‘int main()’:
coinbag.cpp:12:8: error: ‘knapsack’ was not declared in this scope
12 | cin>>knapsack[i].first>>knapsack[i].second;
| ^~~~~~~~
coinbag.cpp:16:7: error: ‘knapsack’ was not declared in this scope
16 | if(knapsack[i].first>j) {
| ^~~~~~~~