Problem | coinbag |
---|---|
User | Henries |
Submission Time | 2024-10-26 22:59:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coinbag.cpp:4:37: error: ‘n’ was not declared in this scope
4 | vector<pair<long long,long long>> v(n);
| ^
coinbag.cpp: In function ‘long long int recur(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)’
5 | long long recur(long long weight){
| ~~~~~~~~~~^~~~~~
coinbag.cpp: In function ‘int main()’:
coinbag.cpp:36:16: error: cannot convert ‘std::vector<std::pair<long long int, long long int> >’ to ‘long long int’
36 | cout << recur(v,s