Problem coinbag
User Henries
Submission Time 2024-10-26 23:01:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinbag.cpp: In function ‘long long int recur(int, long long int)’:
coinbag.cpp:18:29: error: cannot convert ‘std::vector<std::pair<long long int, long long int> >’ to ‘int’
18 | long long current = recur(v,remainder);
| ^
| |
| std::vector<std::pair<long long int, long long int> >
coinbag.cpp:5:21: note: initializing argument 1 of ‘long long int recur(int, long long int)’
5 | long long recur(int n,long long weight){
| ~~~~^