Problem gecko
User loyaltypollution
Submission Time 2025-09-26 18:30:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gecko.cpp: In function ‘int main()’:
gecko.cpp:19:26: error: ‘max’ was not declared in this scope
19 | bestup = max(bestup, row[i-1]);
| ^~~
gecko.cpp:21:26: error: ‘max’ was not declared in this scope
21 | bestup = max(bestup, row[i+1]);
| ^~~
gecko.cpp:28:9: error: redeclaration of ‘int best’
28 | int best = row[0];
| ^~~~
gecko.cpp:13:22: note: ‘int best’ previously declared here
13 | int tmp, bestup, best = 0;
| ^~~~
gecko.cpp:30:16: error: ‘max’ was not declared in this scope
30 | best = max(best, row[i]);
| ^~~