Language: C

#include<stdio.h>
#include<string.h>

int main(){
  char text;
  int aa,a[50],c,d,i;
  scanf("%d",&c);
  for(i=0;i<c;i++){
    scanf("%s %d",text,&aa);}
    if(strcmp(text,’S’)==0){
       a[i]=aa;}
    if(strcmp(text,’H’)==0){
       a[2*i]=aa;}
    if(strcmp(text,’C’)==0){
       a[3*i]=aa;}
    if(strcmp(text,’D’)==0){
       a[4*i]=aa;}
 
  for(i=0;i<c;i++){
    if(a[i]==0){
       if(i<13){
    printf("S %d",i+1);}
       if(i>=13 && i<26){
    printf("H %d",i+1);}
       if(i>=26 && i<39){
    printf("C %d",i+1);}
       if(i>=39){
    printf("D %d",i+1);}}
  }
  printf("\n");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:20: error: stray '\342' in program
   10 |     if(strcmp(text,<U+2019>S<U+2019>)==0){
      |                    ^~~~~~~~
main.c:10:22: error: stray '\342' in program
   10 |     if(strcmp(text,<U+2019>S<U+2019>)==0){
      |                             ^~~~~~~~
main.c:10:21: error: 'S' undeclared (first use in this function)
   10 |     if(strcmp(text,’S’)==0){
      |                     ^
main.c:10:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   10 |     if(strcmp(text,’S’)==0){
      |               ^~~~
      |               |
      |               char
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:12:20: error: stray '\342' in program
   12 |     if(strcmp(text,<U+2019>H<U+2019>)==0){
      |                    ^~~~~~~~
main.c:12:22: error: stray '\342' in program
   12 |     if(strcmp(text,<U+2019>H<U+2019>)==0){
      |                             ^~~~~~~~
main.c:12:21: error: 'H' undeclared (first use in this function)
   12 |     if(strcmp(text,’H’)==0){
      |                     ^
main.c:12:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   12 |     if(strcmp(text,’H’)==0){
      |               ^~~~
      |               |
      |               char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:14:20: error: stray '\342' in program
   14 |     if(strcmp(text,<U+2019>C<U+2019>)==0){
      |                    ^~~~~~~~
main.c:14:22: error: stray '\342' in program
   14 |     if(strcmp(text,<U+2019>C<U+2019>)==0){
      |                             ^~~~~~~~
main.c:14:21: error: 'C' undeclared (first use in this function)
   14 |     if(strcmp(text,’C’)==0){
      |                     ^
main.c:14:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   14 |     if(strcmp(text,’C’)==0){
      |               ^~~~
      |               |
      |               char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:16:20: error: stray '\342' in program
   16 |     if(strcmp(text,<U+2019>D<U+2019>)==0){
      |                    ^~~~~~~~
main.c:16:22: error: stray '\342' in program
   16 |     if(strcmp(text,<U+2019>D<U+2019>)==0){
      |                             ^~~~~~~~
main.c:16:21: error: 'D' undeclared (first use in this function)
   16 |     if(strcmp(text,’D’)==0){
      |                     ^
main.c:16:15: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   16 |     if(strcmp(text,’D’)==0){
      |               ^~~~
      |               |
      |               char
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'char'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~