Language: C++

#include<cstdio>

int main() {
   int n;
   scanf(“%d”,&n);
   bool card[4][13];
   for(int i = 0;i < 4;i++) {
       for(int j = 0;j < 13;j++) {
           card[i][j] = false;
       }
   }
   for(int i = 0;i < n;i++) {
       char c;
       scanf(“\n%c”,&c);
       int x;
       scanf(“%d”,&x);
       if(c ==‘S’) {
           card[0][x - 1] = true;
       }
       else if(c ==‘H’) {
           card[1][x - 1] = true;
       }
       else if(c ==‘C’) {
           card[2][x - 1] = true;
       }
       else if(c ==‘D’) {
           card[3][x - 1] = true;
       }
   }
   for(int i = 0;i < 4;i++) {
       for(int j = 0;j < 13;j++) {
           if(!card[i][j]) {
               if(i == 0) {
                   printf(“S %d\n”,j + 1);
               }
               else if(i == 1) {
                   printf(“H %d\n”,j + 1);
               }
               else if(i == 2) {
                   printf(“C %d\n”,j + 1);
               }
               else if(i == 3) {
                   printf(“D %d\n”,j + 1);
               }
           }
       }
   }
}


Compiler output:
a.cc:5:10: error: extended character “ is not valid in an identifier
    5 |    scanf(“%d”,&n);
      |          ^
a.cc:5:12: error: extended character ” is not valid in an identifier
    5 |    scanf(“%d”,&n);
      |            ^
a.cc:14:14: error: extended character “ is not valid in an identifier
   14 |        scanf(“\n%c”,&c);
      |              ^
a.cc:14:15: error: stray '\' in program
   14 |        scanf(“\n%c”,&c);
      |               ^
a.cc:14:18: error: extended character ” is not valid in an identifier
   14 |        scanf(“\n%c”,&c);
      |                  ^
a.cc:16:14: error: extended character “ is not valid in an identifier
   16 |        scanf(“%d”,&x);
      |              ^
a.cc:16:16: error: extended character ” is not valid in an identifier
   16 |        scanf(“%d”,&x);
      |                ^
a.cc:17:15: error: extended character ‘ is not valid in an identifier
   17 |        if(c ==‘S’) {
      |               ^
a.cc:17:15: error: extended character ’ is not valid in an identifier
a.cc:20:20: error: extended character ‘ is not valid in an identifier
   20 |        else if(c ==‘H’) {
      |                    ^
a.cc:20:20: error: extended character ’ is not valid in an identifier
a.cc:23:20: error: extended character ‘ is not valid in an identifier
   23 |        else if(c ==‘C’) {
      |                    ^
a.cc:23:20: error: extended character ’ is not valid in an identifier
a.cc:26:20: error: extended character ‘ is not valid in an identifier
   26 |        else if(c ==‘D’) {
      |                    ^
a.cc:26:20: error: extended character ’ is not valid in an identifier
a.cc:34:27: error: extended character “ is not valid in an identifier
   34 |                    printf(“S %d\n”,j + 1);
      |                           ^
a.cc:34:32: error: stray '\' in program
   34 |                    printf(“S %d\n”,j + 1);
      |                                ^
a.cc:34:33: error: extended character ” is not valid in an identifier
   34 |                    printf(“S %d\n”,j + 1);
      |                                 ^
a.cc:37:27: error: extended character “ is not valid in an identifier
   37 |                    printf(“H %d\n”,j + 1);
      |                           ^
a.cc:37:32: error: stray '\' in program
   37 |                    printf(“H %d\n”,j + 1);
      |                                ^
a.cc:37:33: error: extended character ” is not valid in an identifier
   37 |                    printf(“H %d\n”,j + 1);
      |                                 ^
a.cc:40:27: error: extended character “ is not valid in an identifier
   40 |                    printf(“C %d\n”,j + 1);
      |                           ^
a.cc:40:32: error: stray '\' in program
   40 |                    printf(“C %d\n”,j + 1);
      |                                ^
a.cc:40:33: error: extended character ” is not valid in an identifier
   40 |                    printf(“C %d\n”,j + 1);
      |                                 ^
a.cc:43:27: error: extended character “ is not valid in an identifier
   43 |                    printf(“D %d\n”,j + 1);
      |                           ^
a.cc:43:32: error: stray '\' in program
   43 |                    printf(“D %d\n”,j + 1);
      |                                ^
a.cc:43:33: error: extended character ” is not valid in an identifier
   43 |                    printf(“D %d\n”,j + 1);
      |                                 ^
a.cc: In function 'int main()':
a.cc:5:10: error: '\U0000201c' was not declared in this scope
    5 |    scanf(“%d”,&n);
      |          ^
a.cc:5:12: error: 'd\U0000201d' was not declared in this scope
    5 |    scanf(“%d”,&n);
      |            ^~
a.cc:14:15: error: expected ')' before 'n'
   14 |        scanf(“\n%c”,&c);
      |             ~ ^~
      |               )
a.cc:17:15: error: '\U00002018S\U00002019' was not declared in this scope
   17 |        if(c ==‘S’) {
      |               ^~~
a.cc:20:20: error: '\U00002018H\U00002019' was not declared in this scope
   20 |        else if(c ==‘H’) {
      |                    ^~~
a.cc:23:20: error: '\U00002018C\U00002019' was not declared in this scope
   23 |        else if(c ==‘C’) {
      |                    ^~~
a.cc:26:20: error: '\U00002018D\U00002019' was not declared in this scope
   26 |        else if(c ==‘D’) {
      |                    ^~~
a.cc:34:27: error: '\U0000201cS' was not declared in this scope
   34 |                    printf(“S %d\n”,j + 1);
      |                           ^~
a.cc:34:31: error: 'd' was not declared in this scope
   34 |                    printf(“S %d\n”,j + 1);
      |                               ^
a.cc:37:27: error: '\U0000201cH' was not declared in this scope
   37 |                    printf(“H %d\n”,j + 1);
      |                           ^~
a.cc:37:31: error: 'd' was not declared in this scope
   37 |                    printf(“H %d\n”,j + 1);
      |                               ^
a.cc:40:27: error: '\U0000201cC' was not declared in this scope
   40 |                    printf(“C %d\n”,j + 1);
      |                           ^~
a.cc:40:31: error: 'd' was not declared in this scope
   40 |                    printf(“C %d\n”,j + 1);
      |                               ^
a.cc:43:27: error: '\U0000201cD' was not declared in this scope
   43 |                    printf(“D %d\n”,j + 1);
      |                           ^~
a.cc:43:31: error: 'd' was not declared in this scope
   43 |                    printf(“D %d\n”,j + 1);
      |                               ^