Help me in solving FLOW001 problem

My issue

showing unexpected output

My code

#include <iostream>
using namespace std;

int main() {
    int t , b , a ;
    cin>>t;
    for(int a = 1 ; a<=t ; a++){
        for(int b = 1 ; b<=t ; b++)
    }    
        cout<<a+b<<endl;
}
	return 0;
}

Learning course: Practice C++
Problem Link: CodeChef: Practical coding for everyone

@visheshta67
U have to do simply like this

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--)
	{
	  int a,b;
	  cin>>a>>b;
	  cout<<a+b<<endl;
	}
	return 0;
}

The question is quite simple but you are making it complex. The question asks you take input of two integers t number of times and just add them.
So the right code would be :-

#include <iostream>
using namespace std;

int main() {
	int t;
	cin>>t;
	while(t--){
	    int a,b;
	    cin>>a>>b;
	    cout<<a+b<<endl;
	}
	return 0;
}

Hope it helps​:blush::blush::blush:.

include
using namespace std;

int main() {
int t , b , a ;
cin>>t;
for(int a = 1 ; a<=t ; a++)
for(int b = 1 ; b<=t ; b++)

    cout<<a+b<<endl;

}

Dear you are doing plenty of mistakes go through the code…
include
using namespace std;

int main() {
int t;
cin>>t;
for(int i=1;i<=t;i++){
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
}
return 0;
}