Language: C++

#include<stdio.h>
int main()
{
char a,b;
while(scanf(“%c %c”,&a,&b)!=EOF)
{
If(‘a’-‘b’==0)
printf(“=\n”);
else if(‘a’-‘b’<0)
printf(“<\n”);
else if(‘a’-‘b’>0)
printf(“>\n”);
}
return 0;
}


Compiler output:
a.cc:5:13: error: extended character “ is not valid in an identifier
    5 | while(scanf(“%c %c”,&a,&b)!=EOF)
      |             ^
a.cc:5:18: error: extended character ” is not valid in an identifier
    5 | while(scanf(“%c %c”,&a,&b)!=EOF)
      |                  ^
a.cc:7:4: error: extended character ‘ is not valid in an identifier
    7 | If(‘a’-‘b’==0)
      |    ^
a.cc:7:4: error: extended character ’ is not valid in an identifier
a.cc:7:8: error: extended character ‘ is not valid in an identifier
    7 | If(‘a’-‘b’==0)
      |        ^
a.cc:7:8: error: extended character ’ is not valid in an identifier
a.cc:8:8: error: extended character “ is not valid in an identifier
    8 | printf(“=\n”);
      |        ^
a.cc:8:10: error: stray '\' in program
    8 | printf(“=\n”);
      |          ^
a.cc:8:11: error: extended character ” is not valid in an identifier
    8 | printf(“=\n”);
      |           ^
a.cc:9:9: error: extended character ‘ is not valid in an identifier
    9 | else if(‘a’-‘b’<0)
      |         ^
a.cc:9:9: error: extended character ’ is not valid in an identifier
a.cc:9:13: error: extended character ‘ is not valid in an identifier
    9 | else if(‘a’-‘b’<0)
      |             ^
a.cc:9:13: error: extended character ’ is not valid in an identifier
a.cc:10:8: error: extended character “ is not valid in an identifier
   10 | printf(“<\n”);
      |        ^
a.cc:10:10: error: stray '\' in program
   10 | printf(“<\n”);
      |          ^
a.cc:10:11: error: extended character ” is not valid in an identifier
   10 | printf(“<\n”);
      |           ^
a.cc:11:9: error: extended character ‘ is not valid in an identifier
   11 | else if(‘a’-‘b’>0)
      |         ^
a.cc:11:9: error: extended character ’ is not valid in an identifier
a.cc:11:13: error: extended character ‘ is not valid in an identifier
   11 | else if(‘a’-‘b’>0)
      |             ^
a.cc:11:13: error: extended character ’ is not valid in an identifier
a.cc:12:8: error: extended character “ is not valid in an identifier
   12 | printf(“>\n”);
      |        ^
a.cc:12:10: error: stray '\' in program
   12 | printf(“>\n”);
      |          ^
a.cc:12:11: error: extended character ” is not valid in an identifier
   12 | printf(“>\n”);
      |           ^
a.cc: In function 'int main()':
a.cc:5:13: error: '\U0000201c' was not declared in this scope
    5 | while(scanf(“%c %c”,&a,&b)!=EOF)
      |             ^
a.cc:5:15: error: 'c' was not declared in this scope
    5 | while(scanf(“%c %c”,&a,&b)!=EOF)
      |               ^
a.cc:5:18: error: 'c\U0000201d' was not declared in this scope
    5 | while(scanf(“%c %c”,&a,&b)!=EOF)
      |                  ^~
a.cc:7:4: error: '\U00002018a\U00002019' was not declared in this scope
    7 | If(‘a’-‘b’==0)
      |    ^~~
a.cc:7:8: error: '\U00002018b\U00002019' was not declared in this scope
    7 | If(‘a’-‘b’==0)
      |        ^~~
a.cc:7:1: error: 'If' was not declared in this scope
    7 | If(‘a’-‘b’==0)
      | ^~
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else if(‘a’-‘b’<0)
      | ^~~~
a.cc:10:11: error: 'n\U0000201d' was not declared in this scope
   10 | printf(“<\n”);
      |           ^~
a.cc:12:11: error: 'n\U0000201d' was not declared in this scope
   12 | printf(“>\n”);
      |           ^~