Main.cc: In function 'int main()':
Main.cc:12:7: error: 'z' was not declared in this scope
j=z/n;
^
Main.cc:14:17: error: invalid operands of types 'int' and '' to binary 'operator>'
if(a[i]>max){
^
Main.cc:19:1: error: expected '}' at end of input
}
^