Language: C++

#include <bits/stdc++.h>

#define FI(i,a,b) for(int i=(a);i<=(b);i++)
#define FD(i,a,b) for(int i=(a);i>=(b);i--)

#define LL long long
#define Ldouble long double

using namespace std;

char s[10];
int len;

int main(){
  gets(s);
  len = strlen(s);
  FI(i, 1, len - 1){
    if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      printf(“YES\n”);
      return 0;
    }
  }
  printf(“NO\n”);
  return 0;
}#include <bits/stdc++.h>

#define FI(i,a,b) for(int i=(a);i<=(b);i++)
#define FD(i,a,b) for(int i=(a);i>=(b);i--)

#define LL long long
#define Ldouble long double

using namespace std;

char s[10];
int len;

int main(){
  gets(s);
  len = strlen(s);
  FI(i, 1, len - 1){
    if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      printf(“Yes\n”);
      return 0;
    }
  }
  printf(“No\n”);
  return 0;
}

Compiler output:
a.cc:18:16: error: extended character ‘ is not valid in an identifier
   18 |     if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      |                ^
a.cc:18:16: error: extended character ’ is not valid in an identifier
a.cc:18:35: error: extended character ‘ is not valid in an identifier
   18 |     if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      |                                   ^
a.cc:18:35: error: extended character ’ is not valid in an identifier
a.cc:19:14: error: extended character “ is not valid in an identifier
   19 |       printf(“YES\n”);
      |              ^
a.cc:19:18: error: stray '\' in program
   19 |       printf(“YES\n”);
      |                  ^
a.cc:19:19: error: extended character ” is not valid in an identifier
   19 |       printf(“YES\n”);
      |                   ^
a.cc:23:10: error: extended character “ is not valid in an identifier
   23 |   printf(“NO\n”);
      |          ^
a.cc:23:13: error: stray '\' in program
   23 |   printf(“NO\n”);
      |             ^
a.cc:23:14: error: extended character ” is not valid in an identifier
   23 |   printf(“NO\n”);
      |              ^
a.cc:25:2: error: stray '#' in program
   25 | }#include <bits/stdc++.h>
      |  ^
a.cc:42:16: error: extended character ‘ is not valid in an identifier
   42 |     if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      |                ^
a.cc:42:16: error: extended character ’ is not valid in an identifier
a.cc:42:35: error: extended character ‘ is not valid in an identifier
   42 |     if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      |                                   ^
a.cc:42:35: error: extended character ’ is not valid in an identifier
a.cc:43:14: error: extended character “ is not valid in an identifier
   43 |       printf(“Yes\n”);
      |              ^
a.cc:43:18: error: stray '\' in program
   43 |       printf(“Yes\n”);
      |                  ^
a.cc:43:19: error: extended character ” is not valid in an identifier
   43 |       printf(“Yes\n”);
      |                   ^
a.cc:47:10: error: extended character “ is not valid in an identifier
   47 |   printf(“No\n”);
      |          ^
a.cc:47:13: error: stray '\' in program
   47 |   printf(“No\n”);
      |             ^
a.cc:47:14: error: extended character ” is not valid in an identifier
   47 |   printf(“No\n”);
      |              ^
a.cc: In function 'int main()':
a.cc:15:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
   15 |   gets(s);
      |   ^~~~
      |   getw
a.cc:18:16: error: '\U00002018C\U00002019' was not declared in this scope
   18 |     if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      |                ^~~
a.cc:18:35: error: '\U00002018A\U00002019' was not declared in this scope
   18 |     if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      |                                   ^~~
a.cc:19:14: error: '\U0000201cYES' was not declared in this scope
   19 |       printf(“YES\n”);
      |              ^~~~
a.cc:23:10: error: '\U0000201cNO' was not declared in this scope
   23 |   printf(“NO\n”);
      |          ^~~
a.cc: At global scope:
a.cc:25:3: error: 'include' does not name a type
   25 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:35:6: error: redefinition of 'char s [10]'
   35 | char s[10];
      |      ^
a.cc:11:6: note: 'char s [10]' previously declared here
   11 | char s[10];
      |      ^
a.cc:36:5: error: redefinition of 'int len'
   36 | int len;
      |     ^~~
a.cc:12:5: note: 'int len' previously declared here
   12 | int len;
      |     ^~~
a.cc:38:5: error: redefinition of 'int main()'
   38 | int main(){
      |     ^~~~
a.cc:14:5: note: 'int main()' previously defined here
   14 | int main(){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:39:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
   39 |   gets(s);
      |   ^~~~
      |   getw
a.cc:42:16: error: '\U00002018C\U00002019' was not declared in this scope
   42 |     if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      |                ^~~
a.cc:42:35: error: '\U00002018A\U00002019' was not declared in this scope
   42 |     if(s[i] == ‘C’ && s[i - 1] == ‘A’){
      |                                   ^~~
a.cc:43:14: error: '\U0000201cYes' was not declared in this scope
   43 |       printf(“Yes\n”);
      |              ^~~~
a.cc:47:10: error: '\U0000201cNo' was not declared in this scope
   47 |   printf(“No\n”);
      |          ^~~