Help me in solving BMCC16 problem

My issue

My code

// Update the code below to solve the problem

#include <bits/stdc++.h>
using namespace std;

int main() 
{
	int t;
    cin >> t;
	
	while(t--)
	{
	    int X;
	    cin >> X;
	    if(X%10==0){
	        cout << 0 << endl;
	    }else{
	        cout << 1 << endl;
	    }
	}
}

Learning course: Solve Programming problems using C++
Problem Link: CodeChef: Practical coding for everyone

@ujwalgulhane31
U are missing one case when it is not divisible by 5 then the answer would be -1
// Update the code below to solve the problem

include <bits/stdc++.h>
using namespace std;

int main()
{
int t;
cin >> t;

while(t--)
{
    int x;
    cin >> x;
    if(x%10==0)
    cout<<0;
    else if(x%5==0)
    cout<<1;
    else
    cout<<-1;
    cout<<endl;
}

}
This is my code . Hope u will get it.