Problem candycrush
User AndyBoiiii725
Submission Time 2022-12-31 14:35:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candycrush.cpp: In function ‘int main()’:
candycrush.cpp:77:9: error: expected primary-expression before ‘if’
77 | if (same) {
| ^~
candycrush.cpp:76:44: error: expected ‘]’ before ‘if’
76 | result = std::max(result, dp[i][j][
| ^
| ]
77 | if (same) {
| ~~
candycrush.cpp:86:7: error: redeclaration of ‘int result’
86 | int result = 0;
| ^~~~~~
candycrush.cpp:71:7: note: ‘int result’ previously declared here
71 | int result = 0;
| ^~~~~~