Problem | numbers |
---|---|
User | Potato3218 |
Submission Time | 2023-04-04 22:20:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
numbers.cpp: In function ‘long long int dp(long long int, long long int, long long int, bool, bool)’:
numbers.cpp:16:40: error: incompatible types in assignment of ‘int’ to ‘long long int [2]’
16 | if(digits == X.length()) return mm=1;
| ^
numbers.cpp:17:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | if(mm != -1) return mm;
| ^
numbers.cpp:15:53: error: invalid conversion from ‘long long int*’ to ‘long long int’ [-fpermissive]
15 | #define mm memo[digits][last2][last1][is_bounded]
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
| |
| long long int*
numbers.cpp:17:25: note: in expansion of macro ‘mm’
17 | if(mm != -1) return mm;
| ^~
numbers.cpp:30:15: err