Problem moneychanger
User NgMinSong123
Submission Time 2024-08-19 13:26:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:6:58: error: expected ‘;’ before ‘long’
6 | cin.tie(0); ios_base::sync_with_stdio(0); cout.tie(0)
| ^
| ;
7 | long long n, v, m;
| ~~~~
moneychanger.cpp:8:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | cin >> n >> v;
| ^
| yn
moneychanger.cpp:8:17: error: ‘v’ was not declared in this scope
8 | cin >> n >> v;
| ^
moneychanger.cpp:11:16: error: ‘arr’ was not declared in this scope
11 | cin >> arr[i];
| ^~~
moneychanger.cpp:12:9: error: ‘dp’ was not declared in this scope
12 | dp[arr[i]-1] = 1;
|