Armstrong number problem

I AM NOT ABLE TO PASS ANY TESTCASE IN HACKERS BLOCK . PLEASE KINDLY CHECK MY CODE

https://ide.codingblocks.com/s/97795 - THIS IS THE URL OF THE CODE.PLEASE CHECK IT FOR ARMSTRONG NUMBER PROBLEM.

@Ayushi21 hey ayushi change your main function
int x;
cin>>x;
if(isArmstrong(x)){
cout<<“true”;
}
else{
cout<<“false”;
}