TLE given codeforces question

tle

#1

The following code gives TLE but i think it should have given Runtime Errror…
As The size of the input(n) was 10^5… and i took it as 100.

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
int x[102],y[102];
set<int> s1;
set<int> s2;
for(int i=1;i<=n;i++)
{
cin>>x*>>y*;
s1.insert(x*);
s2.insert(y*);
}
cout<<min(s1.size(),s2.size())<<endl;
}

#2

s2.insert(x*);
s1.insert(y*);


#3

indent your code please!