Main.cc: In function ‘int main()’:
Main.cc:17:12: error: ‘maxn’ was not declared in this scope
byd=max(maxn,a[i+j-1]);
^~~~
Main.cc:17:12: note: suggested alternative: ‘main’
byd=max(maxn,a[i+j-1]);
^~~~
main