What is error in my code---------
import java.util.*;
public class Main {
public static void main (String args[]) {
Scanner cin = new Scanner(System.in);
int n = cin.nextInt(),arr[] = new int[n],i,j,k,s = 0,carry = 0;
for(int l =0;l<arr.length;l++){
arr[l] = cin.nextInt();
}
int m = cin.nextInt(), arr1[] = new int[m];
for(int l = 0;l<arr.length;l++){
arr1[l] = cin.nextInt();
}
if(n>m){
i = n-1;
j= m-1;
k = n;
}else{
i = m-1;
j= n-1;
k = m;
}
int [] sum = new int[k+1];
while(j>-1){
if(n>m){
s = carry+arr[i]+arr1[j];
}else{
s = carry+ arr[j] + arr1[i];
}
sum[k] = s%10;
carry = carry / 10;
k–;
i–;
j–;
}
while(i>-1){
if(n>m){
s = carry+arr[i];
}else{
s = carry+arr1[i];
}
sum[k] = s%10;
s = s / 10;
i–;
k–;
}
if(carry == 1){
sum[k] = 1;
for(int ar: sum){
System.out.println(ar+","+" ");
}
}else{
for(int l = 1;l<sum.length;l++){
System.out.print(sum[l]+","+" ");
}
}
System.out.print("END");
}
}