Help me in solving SPCP2 problem

My issue

I don’t know why my code is not submitted, it is showing wrong answer but my testcases are executed correctly.

My code

#include <iostream>
#include<algorithm>
#include<cmath>
using namespace std;

int main() {
	int Testcase,AirLine,Pass;
	cin>>Testcase;
	for(int i=0; i<Testcase; i++){
	    cin>>AirLine>>Pass;
	    float res = ceil((double)Pass/100);
	    if(AirLine>=res){
	        cout<<0;
	}
	else if(AirLine<res){
	   // res=ceil(res);
	    cout<<(res-AirLine);
	    cout<<endl;
	}

}
	return 0;

}

Problem Link: Airlines Practice Coding Problem - CodeChef

here is my code ,I think this will be helpful to you.

include
using namespace std;

int main() {
int t;
cin>>t;
int i=0;
while(i<t){
int x,n;
cin>>x>>n;
n=n-(100*x);
int count=0;
while(n>0){
n=n-100;
count++;
}
cout<<count<<endl;
i++;
}
return 0;
}

remove ceil and work around it…ceil should work but idk why it isn’t
I had the same issue

It seems like you’re missing

cout<<endl;

in this part

you can use the following test case to identify your mistake

3
4 600
8 245
3 523

Yeah, it worked!. Thank you so much.

How did you debug it?