Language: C++

g`"using namespace std;

int read()
{
	int ans=0;
	char ch=getchar();
	for(;(ch<'0' || ch>'9') && ch!='-';ch=getchar());
	bool flag=false;
	if(ch=='-')
	{
		flag=true;
		ch=getchar();
	}
	for(;ch>='0' && ch<='9';ch=getchar())ans=ans*10+ch-'0';
	return flag?-ans:ans;
}

long long rell()
{
	long long ans=0;
	char ch=getchar();
	for(;(ch<'0' || ch>'9') && ch!='-';ch=getchar());
	bool flag=false;
	if(ch=='-')
	{
		flag=true;
		ch=getchar();
	}
	for(;ch>='0' && ch<='9';ch=getchar())ans=ans*10ll+(long long)(ch-'0');
	return flag?-ans:ans;
}

void write(int a)
{
	if(!a)
	{
		putchar('0');
		return;
	}
	static char ans[233];
	int n=0;
	for(;a;a/=10)ans[n++]=a%10+'0';
	for(;n;)putchar(ans[--n]);
}

void write(long long a)
{
	if(!a)
	{
		putchar('0');
		return;
	}
	static char ans[233];
	int n=0;
	for(;a;a/=10)ans[n++]=a%10+'0';
	for(;n;)putchar(ans[--n]);
}

int main()
{
	int n,x,y;
	scanf("%d%d%d",&n,&x,&y);
	if(x+y>n+1 || (long long)x*y<n)
	{
		puts("-1");
		return 0;
	}
	for(int i=n-x+1;i<=n;i++)printf("%d ",i);
	y--;
	for(int i=n-x,j;i;i=j-1)
	{
		j=i-i/y+1;
		y--;
		for(int k=j;k<=i;k++)printf("%d ",k);
	}
	puts("");
	return 0;
}


Compiler output:
a.cc:1:2: error: stray '`' in program
    1 | g`"using namespace std;
      |  ^
a.cc:1:3: warning: missing terminating " character
    1 | g`"using namespace std;
      |   ^
a.cc:1:3: error: missing terminating " character
    1 | g`"using namespace std;
      |   ^~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'g' does not name a type
    1 | g`"using namespace std;
      | ^
a.cc: In function 'long long int rell()':
a.cc:21:17: error: 'getchar' was not declared in this scope
   21 |         char ch=getchar();
      |                 ^~~~~~~
a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | g`"using namespace std;
a.cc: In function 'void write(int)':
a.cc:37:17: error: 'putchar' was not declared in this scope; did you mean 'char'?
   37 |                 putchar('0');
      |                 ^~~~~~~
      |                 char
a.cc:43:17: error: 'putchar' was not declared in this scope; did you mean 'char'?
   43 |         for(;n;)putchar(ans[--n]);
      |                 ^~~~~~~
      |                 char
a.cc: In function 'void write(long long int)':
a.cc:50:17: error: 'putchar' was not declared in this scope; did you mean 'char'?
   50 |                 putchar('0');
      |                 ^~~~~~~
      |                 char
a.cc:56:17: error: 'putchar' was not declared in this scope; did you mean 'char'?
   56 |         for(;n;)putchar(ans[--n]);
      |                 ^~~~~~~
      |                 char
a.cc: In function 'int main()':
a.cc:62:9: error: 'scanf' was not declared in this scope
   62 |         scanf("%d%d%d",&n,&x,&y);
      |         ^~~~~
a.cc:65:17: error: 'puts' was not declared in this scope
   65 |                 puts("-1");
      |                 ^~~~
a.cc:68:34: error: 'printf' was not declared in this scope
   68 |         for(int i=n-x+1;i<=n;i++)printf("%d ",i);
      |                                  ^~~~~~
a.cc:68:34: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:74:38: error: 'printf' was not declared in this scope
   74 |                 for(int k=j;k<=i;k++)printf("%d ",k);
      |                                      ^~~~~~
a.cc:74:38: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:76:9: error: 'puts' was not declared in this scope
   76 |         puts("");
      |         ^~~~