Main.java:48: error: incompatible types: possible lossy conversion from long to int nmin = head[j]; ^1 error