Why do I get a SIGFPE?

#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
long long int a,b;
while(t–){

	cin>>a>>b;
	if(b<=a){
		cout<<a/b<<endl;
	}
	else{
		
		cout<<"cannot distribute"<<endl;
	}
}
return 0;

}

It would be more helpful if you could provide the question so that I could get some context. But if I had to guess, I would say may be it is divide by zero exception, that is when b = 0 and you are attempting to divide a by it.

Hope this helped :slight_smile:

which question?

1 Like