0_0_29714598_2524.cpp: In function 'int main()': 0_0_29714598_2524.cpp:29:13: error: 'mx' was not declared in this scope mx=max(mx,a[i]); ^