Problem | deque |
---|---|
User | WH8 |
Submission Time | 2023-04-14 17:06:56 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deque.cpp: In function ‘void dp(long long int, long long int, long long int)’:
deque.cpp:34:30: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
34 | if (l == r) return mul * v[l];
| ^
deque.cpp:35:38: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
35 | if (vis[l][r][p]) return mem[l][r][p];
| ^
deque.cpp:36:28: error: invalid operands of types ‘void’ and ‘long long int’ to binary ‘operator+’
36 | int left = dp(l+1, r, !p) + mul * v[l];
| ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
| | |
| void long long int
deque.cpp:37:29: error: invalid operands of types ‘void’ and ‘long long int’ to binary ‘operator+’
37 | int right = dp(l, r-1, !p) + mul * v[r];
| ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~
|