Help me in solving DONDRIVE problem

My issue is it does not take submissions

My code

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

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--){
	    int n,m;
	    cin>>n>>m;
	    cout<<abs(n-m)<<endl;
	}
	return 0;
}

Problem Link: DONDRIVE Problem - CodeChef

You don’t have to use abs(). Or, if you want to use this, then try submitting the code after including <cmath.h> header.