For this Question: Given an array <b>nums</b> of N integers where each element is in between 1 to N. Your task is to print all the integers from 1 to N which are not present in the given array.First line contains n the length of input
Second line of input contains the array of integers in range from (1 to n)

<b> Constraints </b>
1 <= n <= 100000
1 <= arr[i] <= nPrint all the integers in range [1, n] that dose not appear in array.Sample Input :
5
1 2 3 4 4

Sample Output : 
5

Sample Input:
7
4 1 3 2 5 5 4

Sample Output:
6 7

Explaination:
In the first test, only 5 is the integer from 1 to n, which is missing from the array.
In the second test, both 6 and 7 are missing., I have written this Solution Code: /**
 *      Author : tourist1256
 *      Time   : 2022-01-08 12:34:09
 **/

#include <bits/stdc++.h>

using namespace std;

#ifdef LOCAL
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
#define debug(...) 2351
#endif

vector<int> findDisappearedNumbers(vector<int>& nums) {
    int i = 0, size = nums.size();
    while (i < size) {
        if (nums[i] != i + 1 && nums[nums[i] - 1] != nums[i])
            swap(nums[i], nums[nums[i] - 1]);
        else
            i++;
    }
    vector<int> ans;
    for (i = 0; i < size; i++)
        if (nums[i] != i + 1) ans.push_back(i + 1);
    return ans;
}

int main() {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
    }
    vector<int> x = findDisappearedNumbers(a);
    for (auto& it : x) {
        cout << it << " ";
    }
    cout << "\n";
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?