Problem moneychanger
User Etw
Submission Time 2024-06-20 23:48:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp:5:1: error: expected initializer before ‘long’
5 | long long n, v;
| ^~~~
moneychanger.cpp: In function ‘long long int bill(long long int)’:
moneychanger.cpp:8:9: error: ‘change’ was not declared in this scope
8 | if (change[sum] != -1) return change[sum];
| ^~~~~~
moneychanger.cpp:10:5: error: ‘change’ was not declared in this scope
10 | change[sum] = 9999999;
| ^~~~~~
moneychanger.cpp:11:25: error: ‘n’ was not declared in this scope
11 | for (int i = 0; i < n; i++) {
| ^
moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:20:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
20 | cin >> n >> v;
| ^
| yn
moneychanger.cpp:20:17: error: ‘v’ was not declared in this scope
20 | cin >> n >> v;
| ^
moneychang