Language: Java

#include <stdio.h>

int main(void)
{
	char a,S,H,C,D;
	int i,j,k,n,s[13],h[13],c[13],d[13];
	scanf("%d",&n);
	for(i=0;i<=12;i++)
	{
		s[i]=0;
		h[i]=0;
		c[i]=0;
		d[i]=0;
	}
	for(j=0;j<=2*n-1;j++)
	{
		scanf("%c",&a);
		if(a=='S')
		{
			scanf("%d",&i);
			s[i-1] = 1;
		}
		else if(a=='H')
		{
			scanf("%d",&i);
			h[i-1] = 1;
		}
		else if(a=='C')
		{
			scanf("%d",&i);
			c[i-1] = 1;
		}
		else if(a=='D')
		{
			scanf("%d",&i);
			d[i-1] = 1;
		}
	}
	for(i=0;i<13;i++)
	{
		if(s[i]==0)
		{
			k = i+1;
			printf("S %d\n",k);
		}
	}
	for(i=0;i<13;i++)
	{
		if(h[i]==0)
		{
			k = i+1;
			printf("H %d\n",k);
		}
	}
	for(i=0;i<13;i++)
	{
		if(c[i]==0)
		{
			k = i+1;
			printf("C %d\n",k);
		}
	}
	for(i=0;i<13;i++)
	{
		if(d[i]==0)
		{
			k = i+1;
			printf("D %d\n",k);
		}
	}
	return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:6: error: class, interface, enum, or record expected
	int i,j,k,n,s[13],h[13],c[13],d[13];
	^
Main.java:7: error: class, interface, enum, or record expected
	scanf("%d",&n);
	^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<=12;i++)
	^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<=12;i++)
	        ^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<=12;i++)
	              ^
Main.java:11: error: class, interface, enum, or record expected
		h[i]=0;
		^
Main.java:12: error: class, interface, enum, or record expected
		c[i]=0;
		^
Main.java:13: error: class, interface, enum, or record expected
		d[i]=0;
		^
Main.java:14: error: class, interface, enum, or record expected
	}
	^
Main.java:15: error: class, interface, enum, or record expected
	for(j=0;j<=2*n-1;j++)
	        ^
Main.java:15: error: class, interface, enum, or record expected
	for(j=0;j<=2*n-1;j++)
	                 ^
Main.java:18: error: class, interface, enum, or record expected
		if(a=='S')
		^
Main.java:21: error: class, interface, enum, or record expected
			s[i-1] = 1;
			^
Main.java:22: error: class, interface, enum, or record expected
		}
		^
Main.java:26: error: class, interface, enum, or record expected
			h[i-1] = 1;
			^
Main.java:27: error: class, interface, enum, or record expected
		}
		^
Main.java:31: error: class, interface, enum, or record expected
			c[i-1] = 1;
			^
Main.java:32: error: class, interface, enum, or record expected
		}
		^
Main.java:36: error: class, interface, enum, or record expected
			d[i-1] = 1;
			^
Main.java:37: error: class, interface, enum, or record expected
		}
		^
Main.java:39: error: class, interface, enum, or record expected
	for(i=0;i<13;i++)
	        ^
Main.java:39: error: class, interface, enum, or record expected
	for(i=0;i<13;i++)
	             ^
Main.java:44: error: class, interface, enum, or record expected
			printf("S %d\n",k);
			^
Main.java:45: error: class, interface, enum, or record expected
		}
		^
Main.java:47: error: class, interface, enum, or record expected
	for(i=0;i<13;i++)
	        ^
Main.java:47: error: class, interface, enum, or record expected
	for(i=0;i<13;i++)
	             ^
Main.java:52: error: class, interface, enum, or record expected
			printf("H %d\n",k);
			^
Main.java:53: error: class, interface, enum, or record expected
		}
		^
Main.java:55: error: class, interface, enum, or record expected
	for(i=0;i<13;i++)
	        ^
Main.java:55: error: class, interface, enum, or record expected
	for(i=0;i<13;i++)
	             ^
Main.java:60: error: class, interface, enum, or record expected
			printf("C %d\n",k);
			^
Main.java:61: error: class, interface, enum, or record expected
		}
		^
Main.java:63: error: class, interface, enum, or record expected
	for(i=0;i<13;i++)
	        ^
Main.java:63: error: class, interface, enum, or record expected
	for(i=0;i<13;i++)
	             ^
Main.java:68: error: class, interface, enum, or record expected
			printf("D %d\n",k);
			^
Main.java:69: error: class, interface, enum, or record expected
		}
		^
Main.java:72: error: class, interface, enum, or record expected
}
^
39 errors