Help me in solving DIVSUBS problem -- i think the CC EDITOR has some issues?

My issue

include <bits/stdc++.h>
using namespace std;

void solve() {
int N;
cin >> N;

vector<int> arr(N);
for (int i = 0; i < N; i++) {
    cin >> arr[i];
}
cout<<N;


for(auto &x : arr)cout<<x<<" ";

}

int main() {
ios::sync_with_stdio(0);
cin.tie(0);

int T;
cin >> T;
while (T--) {
    solve();
}

return 0;

}

there is some issue , im not able to get the value of n , even though im taking the i/p , please check from your side , if its correct plss let me know

My code

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

void solve() {
    int N;
    cin >> N;
    
    vector<int> arr(N);
    for (int i = 0; i < N; i++) {
        cin >> arr[i];
    }
    cout<<N;
    

    for(auto &x : arr)cout<<x<<" ";
}

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    
    int T;
    cin >> T;
    while (T--) {
        solve();
    }
    
    return 0;
}

Problem Link: Divisible Subset Practice Coding Problem