Problem | coinbag |
---|---|
User | Henries |
Submission Time | 2024-10-26 23:01:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coinbag.cpp: In function ‘long long int recur(long long int, long long int)’:
coinbag.cpp:18:29: error: cannot convert ‘std::vector<std::pair<long long int, long long int> >’ to ‘long long int’
18 | long long current = recur(v,remainder);
| ^
| |
| std::vector<std::pair<long long int, long long int> >
coinbag.cpp:5:27: note: initializing argument 1 of ‘long long int recur(long long int, long long int)’
5 | long long recur(long long n,long long weight){
| ~~~~~~~~~~^