Problem | beareatrabbit |
---|---|
User | wasdplant |
Submission Time | 2025-03-20 18:44:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
beareatrabbit.cpp: In function ‘int main()’:
beareatrabbit.cpp:26:13: error: invalid initialization of reference of type ‘std::vector<long long int>&’ from expression of type ‘long long int [n]’
26 | return rec(nums, memo, n-1);
| ^~~~
beareatrabbit.cpp:5:22: note: in passing argument 1 of ‘long long int rec(std::vector<long long int>&, std::vector<long long int>&, long long int)’
5 | int rec(vector<int>& nums, vector<int>& memo, int n) {
| ~~~~~~~~~~~~~^~~~
beareatrabbit.cpp: At global scope:
beareatrabbit.cpp:28:1: error: expected declaration before ‘}’ token
28 | };
| ^