Problem gecko
User god
Submission Time 2026-02-23 08:59:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gecko.cpp: In function ‘int main()’:
gecko.cpp:10:16: error: ‘xi’ was not declared in this scope; did you mean ‘i’?
10 | for(int i=0;i<xi++) {
| ^~
| i
gecko.cpp:10:20: error: expected ‘;’ before ‘)’ token
10 | for(int i=0;i<xi++) {
| ^
| ;
gecko.cpp:19:51: error: ‘max’ cannot be used as a function
19 | wall[i][j] += max(wall[i-1][j], wall[i-1][j+1]);
| ^
gecko.cpp:21:51: error: ‘max’ cannot be used as a function
21 | wall[i][j] += max(wall[i-1][j-1], wall[i-1][j]);
| ^
gecko.cpp:23:69: error: ‘max’ cannot be used as a function
23 | wall[i][j] += max({wall[i-1][j-1], wall[i-1][j], wall[i-1][j+1]});
| ^