Problem gecko
User god
Submission Time 2026-02-23 09:00:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gecko.cpp: In function ‘int main()’:
gecko.cpp:20:51: error: ‘max’ cannot be used as a function
20 | wall[i][j] += max(wall[i-1][j], wall[i-1][j+1]);
| ^
gecko.cpp:22:51: error: ‘max’ cannot be used as a function
22 | wall[i][j] += max(wall[i-1][j-1], wall[i-1][j]);
| ^
gecko.cpp:24:69: error: ‘max’ cannot be used as a function
24 | wall[i][j] += max({wall[i-1][j-1], wall[i-1][j], wall[i-1][j+1]});
| ^