the link is here to the question : https://www.codechef.com/problems/LOSTMAX

my solution:

#include

using namespace std;

int main()

{

int T,N,max;

cin>>T;

cin>>N;

int A[++N];

max=A[0];

while(T)

{

```
for(int i=0;i<N-1;i++)
{
cin>>A[i];
if(A[i]==N){}
else if(A[i]>max)
max=A[i];
}
T--;
}
cout<<endl<<max;
return 0;
```

}