For this Question: Given a positive integer number N. The task is to generate all the positive binary numbers of N digits. These binary numbers should be in ascending order.The first line contains integer N - the number of digits in binary string

Constraints:
1 <= N <= 20Print all the positive binary numbers of N digits.Sample input 1:
1

Output:
1

Sample input 2:
2

Output:
10
11

Explanation:
2 can be written as 10 in binary 
3 can be written as 11 in binary, I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;
#define endl            "\n"
#define ll				long long int
#define f(n) 			for(int i=0;i<n;i++)
#define fo(n)			for(int j=0;j<n;j++)
#define foo(n)			for(int i=1;i<=n;i++)
#define ff 				first
#define ss 				second
#define pb 				push_back
#define pii 			pair<int,int>
#define vi 				vector<int>
#define vp 				vector<pii>
#define test            int tt; cin>>tt; while(tt--)
#define mod 			1000000007
void fastio()
{
	ios_base::sync_with_stdio(0); cin.tie(0);
#ifndef ONLINE_JUDGE
	freopen("Input 1.txt", "r", stdin);
	freopen("Output 1.txt", "w", stdout);
#endif
}

int main() {
	fastio();
	int n;
	cin >> n;
	for (int i = (1 << (n - 1)); i < (1 << n); i++) {
		int x = i;
		string s;
		while (x) {
			if (x & 1) {
				s = '1' + s;
			}
			else s = '0' + s;
			x /= 2;
		}
		cout << s << endl;
	}

}, In this Programming Language: C++, Now tell me if this Code is compilable or not?