Problem | weddingcoins |
---|---|
User | AltheaZ |
Submission Time | 2023-07-06 14:03:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int calc(std::vector<int>, int)’:
weddingcoins.cpp:8:18: error: ‘n’ was not declared in this scope
8 | if (coin[val]<=n){
| ^
weddingcoins.cpp:9:4: error: ‘amt’ was not declared in this scope
9 | amt+=1;
| ^~~
weddingcoins.cpp:10:34: error: expected ‘;’ before ‘}’ token
10 | return calc(coin,x-=coin[val])
| ^
| ;
11 | }
| ~
weddingcoins.cpp:15:2: error: expected ‘}’ before ‘else’
15 | else{
| ^~~~
weddingcoins.cpp:7:10: note: to match this ‘{’
7 | if (x>0){
| ^
weddingcoins.cpp:16:10: error: ‘amt’ was not declared in this scope
16 | return amt;
| ^~~