| Problem | moneychanger |
|---|---|
| User | RandomCtfNoob |
| Submission Time | 2025-02-19 16:47:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:20:15: error: expected primary-expression before ‘int’
20 | cin >> n >> int v;
| ^~~
moneychanger.cpp:22:2: error: expected initializer before ‘vector’
22 | vector<int> done;
| ^~~~~~
moneychanger.cpp:24:10: error: ‘coin’ was not declared in this scope
24 | cin >> coin[i];
| ^~~~
moneychanger.cpp:26:7: error: ‘arr’ was not declared in this scope
26 | sort(arr,arr+n);
| ^~~
moneychanger.cpp:28:7: error: ‘coin’ was not declared in this scope
28 | if (coin[0] == v){
| ^~~~
moneychanger.cpp:28:18: error: ‘v’ was not declared in this scope
28 | if (coin[0] == v){
| ^
moneychanger.cpp:35:19: error: ‘v’ was not declared in this scope
35 | cout << loopy(n,v,coin,done,val,0,0);
| ^
moneychanger.cp