Problem ranges
User tzuyuan
Submission Time 2025-06-20 16:15:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ranges.cpp: In function ‘int main()’:
ranges.cpp:11:2: error: ‘hi’ was not declared in this scope; did you mean ‘i’?
11 | hi=max(x[i],hi)
| ^~
| i
ranges.cpp:13:10: error: ‘hi’ was not declared in this scope
13 | cout << hi << " " << 1;
| ^~