//What went wrong with this code?
public class Program
{
public static void main
(String[] args
) { int c=0,a,temp;
int n=153;
temp=n;
while(n>0) {
a=n%10;
n=n/10;
c=c+(a*a*a);
}
if(temp==c){
System.
out.
println("Armstrong"); }
else{
System.
out.
println("Not Armstrong"); }
}
Ly9XaGF0IHdlbnQgd3Jvbmcgd2l0aCB0aGlzIGNvZGU/CgpwdWJsaWMgY2xhc3MgUHJvZ3JhbQp7CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CiAgICBpbnTCoGM9MCxhLHRlbXA7CiAgICBpbnTCoG49MTUzOwogICAgdGVtcD1uOwogICAgd2hpbGUobj4wKcKgwqDCoMKgwqDCoHvCoMKgwqDCoMKgwqAKICAgICAgICBhPW4lMTA7wqDCoMKgCiAgICAgICAgbj1uLzEwO8KgwqDCoMKgCiAgICAgICAgYz1jKyhhKmEqYSk7CiAgICAgICAgfcKgwqDCoMKgwqDCoAogICAgaWYodGVtcD09Yyl7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJBcm1zdHJvbmciKTsKICAgIH0KICAgIGVsc2V7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKCJOb3QgQXJtc3Ryb25nIik7CiAgICB9Cn0=
Main.java:6: error: illegal character: '\u00a0'
int?c=0,a,temp;
^
Main.java:6: error: not a statement
int?c=0,a,temp;
^
Main.java:6: error: ';' expected
int?c=0,a,temp;
^
Main.java:6: error: not a statement
int?c=0,a,temp;
^
Main.java:6: error: ';' expected
int?c=0,a,temp;
^
Main.java:6: error: not a statement
int?c=0,a,temp;
^
Main.java:7: error: illegal character: '\u00a0'
int?n=153;
^
Main.java:7: error: not a statement
int?n=153;
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: ';' expected
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:9: error: illegal character: '\u00a0'
while(n>0)??????{??????
^
Main.java:10: error: illegal character: '\u00a0'
a=n%10;???
^
Main.java:10: error: illegal character: '\u00a0'
a=n%10;???
^
Main.java:10: error: illegal character: '\u00a0'
a=n%10;???
^
Main.java:11: error: illegal character: '\u00a0'
n=n/10;????
^
Main.java:11: error: illegal character: '\u00a0'
n=n/10;????
^
Main.java:11: error: illegal character: '\u00a0'
n=n/10;????
^
Main.java:11: error: illegal character: '\u00a0'
n=n/10;????
^
Main.java:13: error: illegal character: '\u00a0'
}??????
^
Main.java:13: error: illegal character: '\u00a0'
}??????
^
Main.java:13: error: illegal character: '\u00a0'
}??????
^
Main.java:13: error: illegal character: '\u00a0'
}??????
^
Main.java:13: error: illegal character: '\u00a0'
}??????
^
Main.java:13: error: illegal character: '\u00a0'
}??????
^
Main.java:14: error: illegal start of type
if(temp==c){
^
Main.java:14: error: <identifier> expected
if(temp==c){
^
Main.java:14: error: ';' expected
if(temp==c){
^
Main.java:14: error: illegal start of type
if(temp==c){
^
Main.java:14: error: <identifier> expected
if(temp==c){
^
Main.java:14: error: ';' expected
if(temp==c){
^
Main.java:15: error: illegal start of type
System.out.println("Armstrong");
^
Main.java:15: error: ';' expected
System.out.println("Armstrong");
^
Main.java:15: error: invalid method declaration; return type required
System.out.println("Armstrong");
^
Main.java:15: error: illegal start of type
System.out.println("Armstrong");
^
Main.java:17: error: class, interface, or enum expected
else{
^
Main.java:19: error: class, interface, or enum expected
}
^
46 errors