Problem coinbag
User zyh571
Submission Time 2022-12-27 16:39:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinbag.cpp:2:20: error: expected ‘;’ before ‘pair’
2 | using namespace std
| ^
| ;
3 | pair<int,int> coins[505];
| ~~~~
coinbag.cpp: In function ‘int main()’:
coinbag.cpp:18:19: error: ‘w’ was not declared in this scope
18 | cout << dp[n][w];
| ^