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;
	    int X;
	    cin >> X;
	    int c=X*2;
	    int d=X/10;

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

The logic is if X % 10 ==0 then answer would be 0.
if X % 5 ==0 then answer would be 1.
answer would be -1.