What is problem in my code

it gives only 50 points

#include<bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
//using namespace boost::multiprecision;
using namespace std;
#define ll long long int
#define ld long long double
#define vi vector
#define vl vector
#define pi pair<int, int>
#define pl pair<ll, ll>
#define pb push_back
#define pf push_front
#define pob pop_back
#define pof pop_front
#define nl ‘\n’
#define mp make_pair
#define debug1(x) cout <<#x<<" “<<x<<’\n’;
#define debug2(x,y) cout <<#x<<” “<<x <<” “<<#y<<” “<<y <<’\n’;
#define debug3(x,y,z) cout<<#x<<” “<<x<<” “<<#y<<” “<<y<<” “<<#z<<” "<<z<<’\n’;
#define fi first
#define se second
#define boost ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define inf 1e18
const int mod = (int)1e9+7;
pair<ll,ll>s4[4]={{-1,0},{1,0},{0,-1},{0,1}};
pair<ll,ll>s8[8]={{-1,-1},{-1,0},{-1,1},{0,-1},{0,1},{1,1},{1,0},{1,-1}};

void solve() {
ll n;
cin >> n;
unordered_map<ll, ll>m;
for(int i=0;i<n;i++) {
ll x;
cin >> x;
m[x]++;
}
ll ans = 0;
ll x=0;
for(auto it = m.begin();it!=m.end();it++) {
x = max(x,it->second);
}
for(auto it = m.begin();it!=m.end();it++) {
if(it->second == x) {
cout << it->first << " ";

    }
}

}

signed main() {
boost;
solve();
}

@code_dynamo
hello ashish,
pls save ur code on https://ide.codingblocks.com/ and then share the link

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.