criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  sting S
  cin>>S;
  int l=S.size();
  for(int i=0;i<l-1;l++){
    if(S[i]==‘A’&&S[i+1]==‘C’){
      count<<“Yes”<<endl;
      return 0;
    }
  }
  count<<“No”<<endl;
  return 0;
}

Compiler output:
a.cc:9:14: error: extended character ‘ is not valid in an identifier
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |              ^
a.cc:9:14: error: extended character ’ is not valid in an identifier
a.cc:9:27: error: extended character ‘ is not valid in an identifier
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |                           ^
a.cc:9:27: error: extended character ’ is not valid in an identifier
a.cc:10:14: error: extended character “ is not valid in an identifier
   10 |       count<<“Yes”<<endl;
      |              ^
a.cc:10:14: error: extended character ” is not valid in an identifier
a.cc:14:10: error: extended character “ is not valid in an identifier
   14 |   count<<“No”<<endl;
      |          ^
a.cc:14:10: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:3: error: 'sting' was not declared in this scope
    5 |   sting S
      |   ^~~~~
a.cc:7:9: error: 'S' was not declared in this scope
    7 |   int l=S.size();
      |         ^
a.cc:9:14: error: '\U00002018A\U00002019' was not declared in this scope
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |              ^~~
a.cc:9:27: error: '\U00002018C\U00002019' was not declared in this scope
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |                           ^~~
a.cc:10:7: error: 'count' was not declared in this scope
   10 |       count<<“Yes”<<endl;
      |       ^~~~~
a.cc:10:14: error: '\U0000201cYes\U0000201d' was not declared in this scope
   10 |       count<<“Yes”<<endl;
      |              ^~~~~
a.cc:14:3: error: 'count' was not declared in this scope
   14 |   count<<“No”<<endl;
      |   ^~~~~
a.cc:14:10: error: '\U0000201cNo\U0000201d' was not declared in this scope
   14 |   count<<“No”<<endl;
      |          ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  sting S
  cin>>S;
  int l=S.size();
  for(int i=0;I<l-1;l++){
    if(S[i]==‘A’&&S[i+1]==‘C’){
      count<<“Yes”<<endl;
      return 0;
    }
  }
  count<<“No”<<endl;
  return 0;
}

Compiler output:
a.cc:9:14: error: extended character ‘ is not valid in an identifier
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |              ^
a.cc:9:14: error: extended character ’ is not valid in an identifier
a.cc:9:27: error: extended character ‘ is not valid in an identifier
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |                           ^
a.cc:9:27: error: extended character ’ is not valid in an identifier
a.cc:10:14: error: extended character “ is not valid in an identifier
   10 |       count<<“Yes”<<endl;
      |              ^
a.cc:10:14: error: extended character ” is not valid in an identifier
a.cc:14:10: error: extended character “ is not valid in an identifier
   14 |   count<<“No”<<endl;
      |          ^
a.cc:14:10: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:3: error: 'sting' was not declared in this scope
    5 |   sting S
      |   ^~~~~
a.cc:7:9: error: 'S' was not declared in this scope
    7 |   int l=S.size();
      |         ^
a.cc:8:15: error: 'I' was not declared in this scope
    8 |   for(int i=0;I<l-1;l++){
      |               ^
a.cc:9:14: error: '\U00002018A\U00002019' was not declared in this scope
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |              ^~~
a.cc:9:27: error: '\U00002018C\U00002019' was not declared in this scope
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |                           ^~~
a.cc:10:7: error: 'count' was not declared in this scope
   10 |       count<<“Yes”<<endl;
      |       ^~~~~
a.cc:10:14: error: '\U0000201cYes\U0000201d' was not declared in this scope
   10 |       count<<“Yes”<<endl;
      |              ^~~~~
a.cc:14:3: error: 'count' was not declared in this scope
   14 |   count<<“No”<<endl;
      |   ^~~~~
a.cc:14:10: error: '\U0000201cNo\U0000201d' was not declared in this scope
   14 |   count<<“No”<<endl;
      |          ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  sting S
  cin>>S;
  int l=S.size();
  for(int i=0;I<l-1;l++){
    if(S[i]==‘A’&&S[i+1]==‘C’){
      count<<“Yes”<<endless;
      return 0;
    }
  }
  count<<“No”<<endl;
  return 0;
}

Compiler output:
a.cc:9:14: error: extended character ‘ is not valid in an identifier
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |              ^
a.cc:9:14: error: extended character ’ is not valid in an identifier
a.cc:9:27: error: extended character ‘ is not valid in an identifier
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |                           ^
a.cc:9:27: error: extended character ’ is not valid in an identifier
a.cc:10:14: error: extended character “ is not valid in an identifier
   10 |       count<<“Yes”<<endless;
      |              ^
a.cc:10:14: error: extended character ” is not valid in an identifier
a.cc:14:10: error: extended character “ is not valid in an identifier
   14 |   count<<“No”<<endl;
      |          ^
a.cc:14:10: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:3: error: 'sting' was not declared in this scope
    5 |   sting S
      |   ^~~~~
a.cc:7:9: error: 'S' was not declared in this scope
    7 |   int l=S.size();
      |         ^
a.cc:8:15: error: 'I' was not declared in this scope
    8 |   for(int i=0;I<l-1;l++){
      |               ^
a.cc:9:14: error: '\U00002018A\U00002019' was not declared in this scope
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |              ^~~
a.cc:9:27: error: '\U00002018C\U00002019' was not declared in this scope
    9 |     if(S[i]==‘A’&&S[i+1]==‘C’){
      |                           ^~~
a.cc:10:7: error: 'count' was not declared in this scope
   10 |       count<<“Yes”<<endless;
      |       ^~~~~
a.cc:10:14: error: '\U0000201cYes\U0000201d' was not declared in this scope
   10 |       count<<“Yes”<<endless;
      |              ^~~~~
a.cc:10:21: error: 'endless' was not declared in this scope
   10 |       count<<“Yes”<<endless;
      |                     ^~~~~~~
a.cc:14:3: error: 'count' was not declared in this scope
   14 |   count<<“No”<<endl;
      |   ^~~~~
a.cc:14:10: error: '\U0000201cNo\U0000201d' was not declared in this scope
   14 |   count<<“No”<<endl;
      |          ^~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,i,k=0,l;
    char s[10000];
    gets(s);
    l=strlen(s);
    for(i=0;i<l;i++)
    {
        if(s[i]=='A'&&s[i+1]=='C')
        {
                       k=1;
                        break;
        }

    }
    if(k==1)printf("YES\n");
    else
        printf("NO\n");
    return 0;
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,i,k=0,l;
    char s[10000];
    gets(s);
    l=strlen(s);
    for(i=0;i<l;i++)
    {
        if(s[i]=='A'&&s[i+1]=='C')
        {
                       k=1;
                        break;
        }

    }
    if(k==1)printf("YES\n");
    else
        printf("NO\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include<stdio.h>
#include<iostream>
#include<string.h>
#include<math.h>
#include<algorithm>
#include<ctype.h>
#include<bits/stdc++.h>

using namespace std;
int main()
{
    char s[100];
    int l,i,k=0;
    gets(s);
    l=strlen(s);
    for(i=0; i<l-1; i++)
    {
        if(s[i]=='A' && s[i+1]=='C')
        {
            k=1;
            break;
        }
    }
    if(k==1)printf("YES\n");
    else printf("NO\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   14 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
string s;
cin >> s;
for (int i = 0; i < s.length() - 1; i++)
{
if (s.substr(i, 2) == "AC") cout << "Yes\n"; return 0;
}
}
cout << "No\n"; return 0;
}

Compiler output:
a.cc:14:1: error: 'cout' does not name a type
   14 | cout << "No\n"; return 0;
      | ^~~~
a.cc:14:17: error: expected unqualified-id before 'return'
   14 | cout << "No\n"; return 0;
      |                 ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
string s;
cin >> s;
for (int i = 0; i < s.length() - 1; i++)
{
if (s.substr(i, 2) == "AC") cout << "YES\n"; return 0;
}
}
cout << "NO\n"; return 0;
}

Compiler output:
a.cc:14:1: error: 'cout' does not name a type
   14 | cout << "NO\n"; return 0;
      | ^~~~
a.cc:14:17: error: expected unqualified-id before 'return'
   14 | cout << "NO\n"; return 0;
      |                 ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

import Data.List
import Data.Bool
main = putStrLn . bool "No" "Yes" . isInfixOf "AC" =<< getLine

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import Data.List
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String S = in.readLine();

		if(S.indexOf("AC") >= 0) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}

}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Test001 {

	public static void main(String[] args) throws IOException {
		// TODO 自動生成されたメソッド・スタブ
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String S = in.readLine();

		if(S.indexOf("AC") > 0) {
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}

}

Compiler output:
Main.java:5: error: class Test001 is public, should be declared in a file named Test001.java
public class Test001 {
       ^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
char s[10000];
scanf("%s",s);
for(int i0;i<s.size()-1;i++)
if(s[i]=='A'&&s[i+1]=='C') 
{puts("Yes"); return 0;}
puts("No");
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'i' was not declared in this scope; did you mean 'i0'?
    9 | for(int i0;i<s.size()-1;i++)
      |            ^
      |            i0
a.cc:9:16: error: request for member 'size' in 's', which is of non-class type 'char [10000]'
    9 | for(int i0;i<s.size()-1;i++)
      |                ^~~~
Language: C++

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)
//============================================================
var sc = bufio.NewScanner(os.Stdin)

func setScSplit() { sc.Split(bufio.ScanWords) }

func readStr() string {
	sc.Scan()

	return sc.Text()
}

func readInt() int {
	i, _ := strconv.Atoi(readStr())

	return i
}

func readFloat() float64 {
	f, _ := strconv.ParseFloat(readStr(), 64)

	return f
}
//=============================================================
var s string

func main(){
	s = readStr()

	for i := 0; i < len(s) - 1; i++ {
		if s[i: i + 2] == "AC" {
			fmt.Println("Yes")
			return
		}
	}

	fmt.Println("No")

	return
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:14:1: error: 'func' does not name a type
   14 | func readStr() string {
      | ^~~~
a.cc:20:1: error: 'func' does not name a type
   20 | func readInt() int {
      | ^~~~
a.cc:26:1: error: 'func' does not name a type
   26 | func readFloat() float64 {
      | ^~~~
a.cc:32:1: error: 'var' does not name a type
   32 | var s string
      | ^~~
Language: C++

// acdart C++
#include <set>
#include <map>
#include <list>
#include <cmath>
#include <ctime>
#include <stack>
#include <queue>
#include <deque>
#include <string>
#include <vector>
#include <bitset>
#include <cctype>
#include <fstream>
#include <numeric>
#include <utility>
#include <iomanip>
#include <complex>
#include <sstream>
#include <cstring>
#include <cstdlib>
#include <climits>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <functional>
#include <stdio.h>
#include <assert.h>
using namespace std;
typedef long long ll;
typedef long long LL;
typedef unsigned long long ull;
typedef unsigned long long ULL;
typedef double db;
typedef double D;
typedef long double ld;
typedef long double LD;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<ll> vll;
typedef vector<string> vs;
typedef vector< vi > vvi;
typedef vector< vd > vvd;
typedef vector< vll > vvll;
#define PB push_back
#define MP make_pair
#define MT make_tuple
#define X first
#define Y second
#define F first
#define S second
#define PI 3.1415926535897932384626433832795
#define mod9 1000000009ll
#define mod7 1000000007ll
#define inf 0x3f3f3f3f
#define inf8  1023456789ll
#define inf16 10000000000000000ll
#define SZ(x) ((int)(x).size())
#define ALL(x) ((x).begin()),((x).end())
#define RESET(a,b) memset(a,b, sizeof a)
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
#define LEN(X) strlen(X)
#define FI(a,b,c) for(int a=b; a<c; a++)
#define FD(a,b,c) for(int a=b; a>c; a--)
#define all(v) ((v).begin()), ((v).end())
#define sz(v) ((int)((v).size()))
#define clr(v, d) memset(v, d, sizeof(v))
#define rep(i, v) for(int i=0;i<sz(v);++i)
#define lp(i, n) for(int i=0;i<(int)(n);++i)
#define lpi(i, j, n) for(int i=(j);i<(int)(n);++i)
#define lpd(i, j, n) for(int i=(j);i>=(int)(n);--i)
#define gcd(x, y) __gcd(x, y)
#define lson (id << 1)
#define rson (id << 1 | 1)
#define lowb(x) (x & (-x))
#define eps 1e-7
/*********default*********/
#define maxm
#define maxn

int main()
{
	// ios::sync_with_stdio(false);
	char s[10];
	
	scanf("%s", s);
	int x = strlen(s);
	for (int i = 0; i + 1 < n; i++) {
		if (s[i] == 'A' && s[i + 1] == 'C') {
			puts("Yes");
			return 0;
		}
	} 
	puts("No");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:91:33: error: 'n' was not declared in this scope
   91 |         for (int i = 0; i + 1 < n; i++) {
      |                                 ^
Language: C++

#include"iomanip"
#include"iostream"
#include"limits"
#include"cmath"
#include"vector"
#include"algorithm"
#include"list"
#include"queue"
#include"stack"
#include"set"
#include"unordered_set"
#include"map"
#include"unordered_map"
#include"string"
#include"cstring"
#include"assert.h"
using namespace std;
#define ff first
#define ss second
#define all(v) v.begin(),v.end()
#define mp make_pair
#define pb push_back
#define mset(a,b) memset(a,b,sizeof(a))
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	string x;
	cin>>x;
	if(x.find("AC")!=string::npos)
	{
		cout<<"Yes\n";
	}
	else cout<<"No\n":
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:26: error: expected ';' before ':' token
   38 |         else cout<<"No\n":
      |                          ^
      |                          ;
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    string S;
    cin >> S;
    for (int i = 1; i < S.size()){
        if (S[i - 1] == 'A' and S[i] == 'C'){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected ';' before ')' token
    9 |     for (int i = 1; i < S.size()){
      |                                 ^
      |                                 ;
Language: C++

#include <bits/stdc++.h>
#define REP(i,x,y) for(int i=(int)x;i<=(int)y;i++)
#define PER(i,x,y) for(int i=(int)x;i>=(int)y;i--)
#define FOR(i,x,y) for(int i=(int)x;i< (int)y;i++)
#define fi first
#define se second
#define pb push_back
#define mk make_pair
using namespace std;
typedef long long LL;
typedef long double db;
typedef pair<int,int> PII;
const   int N=100005;
const   int P=1e9+7;

int main(){
	scanf("%s",s+1);
	FOR(i,1,strlen(s+1)){
		if(s[i]=='A'&&s[i+1]=='C'){
			puts("Yes");
			return 0;
		}
	}
	puts("No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:20: error: 's' was not declared in this scope
   17 |         scanf("%s",s+1);
      |                    ^
Language: C++

#include<bits/stdc++.h>
typedef long long ll;
using namespace std;
int INF = 1LL << 30;
int MOD = 1e9+7;
main(){
    string S;
    cin >> S;
    if(S.find("AC") != -1)cout << Yes << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:35: error: 'Yes' was not declared in this scope
    9 |     if(S.find("AC") != -1)cout << Yes << endl;
      |                                   ^~~
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner scanner = null;
		try {
			scanner = new Scanner(System.in);
			String s = scanner.next();
			if (s.contains("AC")) {
				System.out.println("Yes");
				return ;
			}
			System.out.println("No");

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}
}


Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scanner = null;
		^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
			scanner = new Scanner(System.in);
			              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

<string>
<iostream>

using namespace std;

int main(){
	string s;

	cin >> s;

	for(int i=1; i < (int)s.size(); i++){
		if(s[i-1]=='A' && s[i]=='C'){
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <string>
      | ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'string' was not declared in this scope
    7 |         string s;
      |         ^~~~~~
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> s;
      |         ^~~
a.cc:9:16: error: 's' was not declared in this scope
    9 |         cin >> s;
      |                ^
a.cc:13:25: error: 'cout' was not declared in this scope
   13 |                         cout << "Yes" << endl;
      |                         ^~~~
a.cc:13:42: error: 'endl' was not declared in this scope
   13 |                         cout << "Yes" << endl;
      |                                          ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "No" << endl;
      |         ^~~~
a.cc:17:25: error: 'endl' was not declared in this scope
   17 |         cout << "No" << endl;
      |                         ^~~~
Language: C++

S = input()
f = False 
for i in range(len(S)-1):
    if S[i] == 'A'and S[i+1]=='C':
        f = True
        print("Yes")
        break;


if not f: 
    print("No")



Compiler output:
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if not f:
      | ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
char S[1000010];
 
int main()
{
    scanf("%s",S);
 
    int N = strlen(S);
    for(int i = 0; i < N - 1; i++)
    {
        if(S[i] == 'A' && S[i + 1] == 'C')
        {
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
}

Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |  
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
a.cc:5:1: error: '\U000000a0' does not name a type
    5 |  
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
Int main()
{
    int n,cnt=0;
    cin>>n;
    for(int i=0;i<n;i++)
     {
           int t; cin >>t;
            if(t%2==0)cnt++;
      }
     int ans = pow(3,n) - pow(2,cnt);
 count<<ans;
}

Compiler output:
a.cc:3:1: error: 'Int' does not name a type; did you mean 'int'?
    3 | Int main()
      | ^~~
      | int
Language: C++

#include<iostream>
#include<string.h>
using namespace std;
string s;
int main(){
cin>>s;
for(int i=0;i<s.length()-1;i++){
if(s[i]=='A'&&s[i+1]=='C'){
cout<<"YES"<<endl;
return 0;
}
cout<<"NO"<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string.h>
using namespaces std;
string s;
int main(){
cin>>s;
for(int i=0;i<s.length()-1;i++){
if(s[i]=='A'&&s[i+1]=='C'){
cout<<"YES"<<endl;
return 0;
}
cout<<"NO"<<endl;
return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespaces'
    3 | using namespaces std;
      |       ^~~~~~~~~~
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string s;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>s;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:6: error: 's' was not declared in this scope
    6 | cin>>s;
      |      ^
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout<<"YES"<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout<<"YES"<<endl;
      |              ^~~~
      |              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout<<"NO"<<endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:13: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 | cout<<"NO"<<endl;
      |             ^~~~
      |             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
    string str;
    getline(cin,str);
    for(int i=0;i<str.length()-1;i++){
        if(str.at(i)=='A'&&str.at(i+1)=='C'){
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
}

Compiler output:
a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
    1 | #include<bits\stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>

int main()
{
	char S,ACBD,ACDB,BACD,DACB,BDAC,DBAC;
	std::cin >> S >> ACBD >> ACDB >> BACD >> DACB >> BDAC >> DBAC;
	if (S = ACBD || S = ACDB || S = BACD || S = DACB || S = BDAC || S = DBAC) {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:70: error: lvalue required as left operand of assignment
    7 |         if (S = ACBD || S = ACDB || S = BACD || S = DACB || S = BDAC || S = DBAC) {
      |                                                                 ~~~~~^~~~
Language: C++

int main() {
  char s[10];
  scanf("%s", s);
  int i = 0;
  while (1) {
    if (s[i] == 'A' && s[i+1] == 'C') {
      printf("Yes");
      break;
    } else if (s[i+1] = '\0') {
      printf("No");
      break;
    }
    ++i;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%s", s);
      |   ^~~~~
a.cc:7:7: error: 'printf' was not declared in this scope
    7 |       printf("Yes");
      |       ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
a.cc:10:7: error: 'printf' was not declared in this scope
   10 |       printf("No");
      |       ^~~~~~
a.cc:10:7: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

// Bismillaahirrahmaanirrahiim
/* Author	: Jehian Norman Saviero (@Reiva5) */
#include <bits/stdc++.h>

/* MACROS SAMPAH */
#define jehian using
#define mau namespace
#define libur std
#define cepet {ios_base::sync_with_stdio(0);cin.tie(0);}

jehian mau libur;
/* MACROS FOR TYPE */
typedef long l;
typedef long double ld;
typedef long long ll;
typedef unsigned long ul;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<l> vl;
typedef vector<ll> vll;
typedef pair<int, int> pi;
typedef pair<l,l> pl;
typedef pair<ll,ll> pll;
typedef pair<ld,ld> pld;

/* MACROS FOR PRINT */
#define nl printf("\n");
#define sp printf(" ");

/* MACROS FOR FUNCTION AND METHOD */
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define RESET(x) memset((x), 0, sizeof(x))
#define SET(x,y) memset((x), (y), sizeof(x))

/* MACROS FOR ATTRIBUTE */
#define fi first
#define se second

/* MACROS FOR SCAN */
#define scc(x) scanf("%c", &x)
#define scd(x) scanf("%Lf", &x)
#define scf(x) scanf("%f", &x)
#define sci(x) scanf("%d", &x)
#define scl(x) scanf("%ld", &x)
#define scll(x) scanf("%lld", &x)
#define scld(x) scanf("%Lf", &x)
#define scui(x) sci(x)
#define scul(x) scl(x)
#define scull(x) scll(x)

string S, tmp, hehe;
vll idx;
int main(){
	cin >> S;
	for (ll i = 0; i < S.size(); ++i){
		if (S[i] != 'x'){
			tmp.pb(S[i]);
			idx.pb(i);
		}
	}
	hehe = tmp;
	reverse(hehe.begin(),hehe.end());
	if (hehe != tmp){
		cout << -1 << endl;
	} else {
		ll cnt = 0;
		if (idx.size() > 1){
			ll le, ri;
			if (idx.size() % 2){
				le = idx.size()/2;
				ri = le;
			} else {
				le = idx.size()/2-1;
				ri = le+1;
			}
			ll ujung = (ll) idx.size() - (ll) 1;
			for (; le >= 1 && ri < ujung; --le, ++ri){
				cnt += abs((idx[le]-idx[le-1])-(idx[ri+1]-idx[ri]));
			}
		}
		cnt += abs((idx[le])-((ll) S.size()-1-idx[ri]));
		cout << cnt << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:83:33: error: 'le' was not declared in this scope; did you mean 'll'?
   83 |                 cnt += abs((idx[le])-((ll) S.size()-1-idx[ri]));
      |                                 ^~
      |                                 ll
a.cc:83:59: error: 'ri' was not declared in this scope; did you mean 'vi'?
   83 |                 cnt += abs((idx[le])-((ll) S.size()-1-idx[ri]));
      |                                                           ^~
      |                                                           vi
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h> // 文字列処理の関数
#include <ctype.h> // 文字変換(大文字/小文字)の関数

int main() {
char buf[5];
scanf("%s",buf);
int i,j;
if ((b(buf[0]='A'&& buf[1]='C' ||(buf[1]='A'&& buf[2]='C') ||(buf[2]='A'&& buf[3]='C') ||(buf[3]='A'&& buf[4]='C'))
printf("Yes\n");
else
printf("No\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:6: error: implicit declaration of function 'b' [-Wimplicit-function-declaration]
   10 | if ((b(buf[0]='A'&& buf[1]='C' ||(buf[1]='A'&& buf[2]='C') ||(buf[2]='A'&& buf[3]='C') ||(buf[3]='A'&& buf[4]='C'))
      |      ^
main.c:10:54: error: lvalue required as left operand of assignment
   10 | if ((b(buf[0]='A'&& buf[1]='C' ||(buf[1]='A'&& buf[2]='C') ||(buf[2]='A'&& buf[3]='C') ||(buf[3]='A'&& buf[4]='C'))
      |                                                      ^
main.c:10:82: error: lvalue required as left operand of assignment
   10 | if ((b(buf[0]='A'&& buf[1]='C' ||(buf[1]='A'&& buf[2]='C') ||(buf[2]='A'&& buf[3]='C') ||(buf[3]='A'&& buf[4]='C'))
      |                                                                                  ^
main.c:10:110: error: lvalue required as left operand of assignment
   10 | if ((b(buf[0]='A'&& buf[1]='C' ||(buf[1]='A'&& buf[2]='C') ||(buf[2]='A'&& buf[3]='C') ||(buf[3]='A'&& buf[4]='C'))
      |                                                                                                              ^
main.c:10:116: error: expected ')' before 'printf'
   10 | if ((b(buf[0]='A'&& buf[1]='C' ||(buf[1]='A'&& buf[2]='C') ||(buf[2]='A'&& buf[3]='C') ||(buf[3]='A'&& buf[4]='C'))
      |     ~                                                                                                              ^
      |                                                                                                                    )
   11 | printf("Yes\n");
      | ~~~~~~                                                                                                              
main.c:14:10: error: expected ')' before '}' token
   14 | return 0;
      |          ^
      |          )
   15 | }
      | ~         
main.c:10:4: note: to match this '('
   10 | if ((b(buf[0]='A'&& buf[1]='C' ||(buf[1]='A'&& buf[2]='C') ||(buf[2]='A'&& buf[3]='C') ||(buf[3]='A'&& buf[4]='C'))
      |    ^
main.c:15:1: error: expected expression before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main (){
std::string s;
int i;
std::cin>>s
std::string ans;
ans = 'No';
for(i=0;i<5;i++){
if(s[i]='A'){
if(s[i+1]='C') ans ='Yes';
               }
}
std::cout<<ans;
return 0;
}

Compiler output:
a.cc:9:7: warning: multi-character character constant [-Wmultichar]
    9 | ans = 'No';
      |       ^~~~
a.cc:12:21: warning: multi-character character constant [-Wmultichar]
   12 | if(s[i+1]='C') ans ='Yes';
      |                     ^~~~~
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'std'
    7 | std::cin>>s
      |            ^
      |            ;
    8 | std::string ans;
      | ~~~         
a.cc:9:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 | ans = 'No';
      | ^~~
      | abs
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    char str[10];
    scanf("%s",str);
    int len=strlen(str);
    int i;
    for(i=0;i<len;i++){
        if(str[i]=='A'){
            if(str[i+1]=='C'){
                break;
            }
        }
    }
    if(i==len-1) cout<<"No"<<endl;
    else cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'strlen' was not declared in this scope
    8 |     int len=strlen(str);
      |             ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<cstdio>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include<stdio.h>
#include<string.h>
int main() {
	char s[5];
	gets(s);
	for(int i=0;i<strlen(s);i++){
		if(s[i]=='A' && s[i+1]=='C'){
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |         gets(s);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
using namespace std;
int main() {
	char s[5];
	gets(s);
	for(int i=0;i<strlen(s);i++){
		if(s[i]=='A' && s[i+1]=='C'){
			printf("Yes\n");
			return 0;
		}
	}
	printf("No\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(s);
      |         ^~~~
      |         getw
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void) {
 
    char s1;
    char s2="AC";
    char *ret;
    // 整数の入力
    scanf("%s",s1);
 
    if ((ret = strstr(s1, s2)) != null ) {
    printf("Yes\n");
 }else{
     printf("No\n");
}
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 |     char s2="AC";
      |             ^~~~
main.c:13:23: error: passing argument 1 of 'strstr' makes pointer from integer without a cast [-Wint-conversion]
   13 |     if ((ret = strstr(s1, s2)) != null ) {
      |                       ^~
      |                       |
      |                       char
In file included from main.c:3:
/usr/include/string.h:350:34: note: expected 'const char *' but argument is of type 'char'
  350 | extern char *strstr (const char *__haystack, const char *__needle)
      |                      ~~~~~~~~~~~~^~~~~~~~~~
main.c:13:27: error: passing argument 2 of 'strstr' makes pointer from integer without a cast [-Wint-conversion]
   13 |     if ((ret = strstr(s1, s2)) != null ) {
      |                           ^~
      |                           |
      |                           char
/usr/include/string.h:350:58: note: expected 'const char *' but argument is of type 'char'
  350 | extern char *strstr (const char *__haystack, const char *__needle)
      |                                              ~~~~~~~~~~~~^~~~~~~~
main.c:13:35: error: 'null' undeclared (first use in this function)
   13 |     if ((ret = strstr(s1, s2)) != null ) {
      |                                   ^~~~
main.c:13:35: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void) {
 
    char s;
    char *ret;
    // 整数の入力
    scanf("%s",s1);
 
    ret = strstr (s1,"AC");
 
if (ret ! NULL){
    printf("Yes\n");
}else{
     printf("No\n");
}
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:16: error: 's1' undeclared (first use in this function); did you mean 's'?
   10 |     scanf("%s",s1);
      |                ^~
      |                s
main.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:8: error: expected ')' before '!' token
   14 | if (ret ! NULL){
      |    ~   ^~
      |        )
Language: C++

#include<iostream>
using namespace std;
int even(int i){
if(i%2==0)return 0;
else return 1;
}
int main(){
int N;
int i;
int a[10];
cin>>N;
cin >> a[10];
int c[N];
for(i=0,i<N,i++){
c[i]=0;
if(even(a[i]-1))c[i]+=2;
else c[i]+=1;
}
int p,q,res;
p=1;q=1;
for(i=0;i<N;i++){
p=3*p;
q=c[i]*q;
}
res = p - q;
cout<<res;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected ';' before ')' token
   14 | for(i=0,i<N,i++){
      |                ^
      |                ;
a.cc:19:6: error: expected initializer before ',' token
   19 | int p,q,res;
      |      ^
a.cc:19:6: error: expected ';' before ',' token
   19 | int p,q,res;
      |      ^
      |      ;
a.cc:19:6: error: expected primary-expression before ',' token
a.cc:19:7: error: 'q' was not declared in this scope
   19 | int p,q,res;
      |       ^
a.cc:19:9: error: 'res' was not declared in this scope
   19 | int p,q,res;
      |         ^~~
a.cc:19:12: error: expected ')' before ';' token
   19 | int p,q,res;
      |            ^
      |            )
a.cc:14:4: note: to match this '('
   14 | for(i=0,i<N,i++){
      |    ^
a.cc:20:1: error: 'p' was not declared in this scope
   20 | p=1;q=1;
      | ^
a.cc:20:5: error: 'q' was not declared in this scope
   20 | p=1;q=1;
      |     ^
a.cc:25:1: error: 'res' was not declared in this scope
   25 | res = p - q;
      | ^~~
Language: C++

#include <stdio.h>
#include<iostream>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include <time.h>
#include <bits/stdc++.h>

using namespace std;

int main()
{
	string s;
	cin>>s;

	int b=0,c=0;


	for(int i=0;i<n-1;i++)
	{
		if(s[i]=='A' && s[i+1]=='C')
			b=1;
		
	}

	if(b==1)
		cout<<"YES";

	else
		cout<<"NO";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:23: error: 'n' was not declared in this scope
   19 |         for(int i=0;i<n-1;i++)
      |                       ^
Language: C++

#include <stdio.h>
#include<iostream>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include <time.h>
#include <bits/stdc++.h>

using namespace std;

int main()
{
	string s;
	cin>>s;

	int b=0,c=0;


	for(int i=0;i<n-1;i++)
	{
		if(s[i]=='A' && s[i+1]=='C')
			b=1;
		
	}

	if(b==1)
		cout<<"YES";

	else
		cout<<"NO";
	return 0;
}#include <stdio.h>
#include<iostream>
#include<string.h>
#include<math.h>
#include<stdlib.h>
#include <time.h>
#include <bits/stdc++.h>

using namespace std;

int main()
{
	string s;
	cin>>s;

	int b=0,c=0;


	for(int i=0;i<n-1;i++)
	{
		if(s[i]=='A' && s[i+1]=='C')
			b=1;
		
	}

	if(b==1)
		cout<<"YES";

	else
		cout<<"NO";
	return 0;
}

Compiler output:
a.cc:32:2: error: stray '#' in program
   32 | }#include <stdio.h>
      |  ^
a.cc: In function 'int main()':
a.cc:19:23: error: 'n' was not declared in this scope
   19 |         for(int i=0;i<n-1;i++)
      |                       ^
a.cc: At global scope:
a.cc:32:3: error: 'include' does not name a type
   32 | }#include <stdio.h>
      |   ^~~~~~~
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main()
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:50:23: error: 'n' was not declared in this scope
   50 |         for(int i=0;i<n-1;i++)
      |                       ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void) {
 
    char s;
    char *ret;
    // 整数の入力
    scanf("%s",s);
 
    ret = strstr (s,"AC");

if (ret == null){
    printf("Yes\n");
}else{
     printf("No\n");
}
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:19: error: passing argument 1 of 'strstr' makes pointer from integer without a cast [-Wint-conversion]
   12 |     ret = strstr (s,"AC");
      |                   ^
      |                   |
      |                   char
In file included from main.c:3:
/usr/include/string.h:350:34: note: expected 'const char *' but argument is of type 'char'
  350 | extern char *strstr (const char *__haystack, const char *__needle)
      |                      ~~~~~~~~~~~~^~~~~~~~~~
main.c:14:12: error: 'null' undeclared (first use in this function)
   14 | if (ret == null){
      |            ^~~~
main.c:14:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void) {
 
    char s1[];
    char s2[]="AC";
    char *ret;
    // 整数の入力
    scanf("%s",s1);
 
    if ((ret = strstr(s1, s2)) != NULL ) {
    printf("Yes\n");
 }else{
     printf("No\n");
}
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: array size missing in 's1'
    7 |     char s1[];
      |          ^~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void) {
 
    char s1[];
    char s2[]="AC";
    char *ret;
    // 整数の入力
    scanf("%s", &s1);
 
    if ((ret = strstr(s1, s2)) != NULL ) {
    printf("Yes\n");
 }else{
     printf("No\n");
}
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: array size missing in 's1'
    7 |     char s1[];
      |          ^~
Language: C++

#include <iostream>
#include <cstring>
using namespace std;

int main() {
	string S;
	cin >> S;
	if (2 = < S = < 5) {



	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected primary-expression before '<' token
    8 |         if (2 = < S = < 5) {
      |                 ^
a.cc:8:23: error: expected primary-expression before '<' token
    8 |         if (2 = < S = < 5) {
      |                       ^
Language: C++

#include<cstdio>
#include<cstring>
char s[10];
int main(){
	gets(s);
	int len=strlen(s);
	for(int i=1;i<len;i++){
		if(s[i]=='C'&&s[i-1]=='A') {
			puts("Yes");
			return 0;
		}
	}
	puts("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |         gets(s);
      |         ^~~~
      |         getw
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void) {
 
    char s1[];
    char s2[]="AC";
    // 整数の入力
    scanf("%s", &s1);
 
    if ((strstr(s1, s2)) != NULL ) {
    printf("yes\n");
 }else{
     printf("no\n");
}
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: array size missing in 's1'
    7 |     char s1[];
      |          ^~
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
int main(){
 
    int flag=0;
    string S;
    cin >>S;
 
    if(S.find("AC")<0||S.find("AC")>=S.size()){flag=1;}
    if(flag==1){
        cout <<"No"<<endl;
    }
    else{
        cout <<"Yes"<<endl;
    }
 
    return 0;
}


Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |  
      | ^
a.cc:18:1: error: extended character   is not valid in an identifier
   18 |  
      | ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
Language: C

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

int main(void) {

    char s1[];
    char s2[]=AC;
    // 整数の入力
    scanf("%s", &s);

 
    if ((strstr(s1, s2)) != NULL ) {
    printf("yes\n");
 }else{
     printf("no\n");
}
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: array size missing in 's1'
    7 |     char s1[];
      |          ^~
main.c:8:15: error: 'AC' undeclared (first use in this function)
    8 |     char s2[]=AC;
      |               ^~
main.c:8:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:18: error: 's' undeclared (first use in this function); did you mean 's2'?
   10 |     scanf("%s", &s);
      |                  ^
      |                  s2
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
int main(){
 
    int flag=0;
    string S;
    cin >>S;
 
    if(S.find("AC")<0||S.find("AC")>=S.size()){flag=1;}
    if(flag==1){
        cout <<"No"<<endl;
    }
    else{
        cout <<"Yes"<<endl;
    }
 
    return 0;
}

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:4:1: error: extended character   is not valid in an identifier
    4 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |  
      | ^
a.cc:18:1: error: extended character   is not valid in an identifier
   18 |  
      | ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
a.cc:4:1: error: '\U000000a0' does not name a type
    4 |  
      | ^
Language: C

#include<cstdio>
#include<cmath>
#include<cstring>
#include<cstdlib>
#include<iostream>
#include<algorithm>
using namespace std;

int main()
{
	char s[10];
	int n;
	scanf("%s",s);
	n=strlen(s);
	for(int i=0;i<n;i++){
		if(s[i]=='A' && s[i+1]=='C'){
			printf("YES\n");
			return 0;
		}
	}
	printf("NO\n");
	return 0;
}

Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<string>
using nemaspace std;
int main (){
std::string s;
int i;
std::cin>>s
std::string ans;
ans = 'No';
for(i=0;i<5;i++){
if(s[i]='A'){
if(s[i+1]='C') ans ='Yes';
               }
}
std::cout<<ans;
return 0;
}


Compiler output:
a.cc:9:7: warning: multi-character character constant [-Wmultichar]
    9 | ans = 'No';
      |       ^~~~
a.cc:12:21: warning: multi-character character constant [-Wmultichar]
   12 | if(s[i+1]='C') ans ='Yes';
      |                     ^~~~~
a.cc:3:7: error: expected nested-name-specifier before 'nemaspace'
    3 | using nemaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before 'std'
    7 | std::cin>>s
      |            ^
      |            ;
    8 | std::string ans;
      | ~~~         
a.cc:9:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 | ans = 'No';
      | ^~~
      | abs
Language: C++

#include<iostream>
#include<string>
using nemaspace std;
int main (){
std::string s;
int i;
cin>>s
string ans;
ans = 'No';
for(i=0;i<5;i++){
if(s[i]='A'){
if(s[i+1]='C') ans ='Yes';
               }
}
cout<<ans;
return 0;
}

Compiler output:
a.cc:9:7: warning: multi-character character constant [-Wmultichar]
    9 | ans = 'No';
      |       ^~~~
a.cc:12:21: warning: multi-character character constant [-Wmultichar]
   12 | if(s[i+1]='C') ans ='Yes';
      |                     ^~~~~
a.cc:3:7: error: expected nested-name-specifier before 'nemaspace'
    3 | using nemaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin>>s
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 | ans = 'No';
      | ^~~
      | abs
a.cc:15:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 | cout<<ans;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main() {
	string s;
	cin >> s;
	for (int i = 0; i > s.size()-1; i++) {
		string s1=s[i]+s[i+1];
		if (s1 == "AC") {
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    8 |                 string s1=s[i]+s[i+1];