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

int main() {
    // your code goes here
    int t;
    cin >> t;
    vector<int>v1, v2;
    v1.push_back(0);
    v2.push_back(0);
    while (t--)
    {
        int a, b;
        cin >> a >> b;
        if (a > b)
            v1.push_back(a - b);
        else
            v2.push_back(b - a);
    }
    int m1, m2;
    if (v1.size() > 1)

        m1 = *max_element(v1.begin(), v1.end());
    else
        m1 = 0;
    if (v2.size() > 1)
        m2 = *max_element(v2.begin(), v2.end());
    else
        m2 = 0;
    if (m1 > m2)
        cout << "1" << " " << m1;
    else
        cout << "2" << " " << m2;
}
`

```

this is lead game question in codechef but I am getting SIGSTP error while running code. I am not getting how to overcome this. I have spend my a plenty of time. Can someone help me to getting rid of this problem.I am new in the competitive programming. Please suggest me some resources or lectures on youtube to do better.
Thanks in Advance...