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

#include <bits/stdc++.h>
#include <string>
using namespace std
    int a,b;
    cin >> a >> b;
    if(500*a >= x ) cout << 'Yes' <<endl;
    else cout << 'No' <<endl;
}

Compiler output:
a.cc:6:29: warning: multi-character character constant [-Wmultichar]
    6 |     if(500*a >= x ) cout << 'Yes' <<endl;
      |                             ^~~~~
a.cc:7:18: warning: multi-character character constant [-Wmultichar]
    7 |     else cout << 'No' <<endl;
      |                  ^~~~
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 |     int a,b;
      |     ~~~             
a.cc:5:5: error: 'cin' does not name a type
    5 |     cin >> a >> b;
      |     ^~~
a.cc:6:5: error: expected unqualified-id before 'if'
    6 |     if(500*a >= x ) cout << 'Yes' <<endl;
      |     ^~
a.cc:7:5: error: expected unqualified-id before 'else'
    7 |     else cout << 'No' <<endl;
      |     ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int k,x;
  cin>>k>>x;
  if(500*k=>x){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected primary-expression before '>' token
    6 |   if(500*k=>x){
      |            ^
Language: C++

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

#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define rng(i,a,b) for(int i=int(a);i<int(b);i++)
typedef long long ll;

void test_case(){
    
}

int main() {
    fastio
    int k, x;
    cin >> k >> x;
    if(k*500 >= x)
		cout<<"Yes"<<endl;
	else
		cou<<"No"<<endl;
	return 0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: 'cou' was not declared in this scope; did you mean 'cos'?
   19 |                 cou<<"No"<<endl;
      |                 ^~~
      |                 cos
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

int main(void){
    cin >> k >> x;
    if(500*k>=x) cout << 'Yes'<< endl;
    else cout << 'No' << endl;
    return 0;
}

Compiler output:
a.cc:8:26: warning: multi-character character constant [-Wmultichar]
    8 |     if(500*k>=x) cout << 'Yes'<< endl;
      |                          ^~~~~
a.cc:9:18: warning: multi-character character constant [-Wmultichar]
    9 |     else cout << 'No' << endl;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:7:12: error: 'k' was not declared in this scope
    7 |     cin >> k >> x;
      |            ^
a.cc:7:17: error: 'x' was not declared in this scope
    7 |     cin >> k >> x;
      |                 ^
Language: C++

#include <bits/stdc++.h> 
#include<string> 
using namespace std;
typedef long long int ll;
typedef long double ld;
typedef vector<ll> vl;
typedef pair<ll,ll> pll;
typedef vector<char> vc;

typedef map<long long,long long> mpi;
#define llu unsigned long long 
#define vbi vector<bool> 
#define mod 1000000007
#define all(v) (v).begin(), (v).end()
#define alr(x) x.rbegin(),x.rend()
#define mp make_pair
#define pb push_back
#define sd second
#define ft first
#define endl '\n'
#define cnl cout<<endl;
#define frr(i,b) for(ll i=0; i<b;i++)
#define fb(i,b) for(ll i=b-1; i>=0; i--)
#define ms(x,v) memset(x,v, sizeof(x))
#define MS0(X) memset((X), 0, sizeof((X)))
#define MS1(X) memset((X), -1, sizeof((X)))
#define deb(x) cout<<#x<<" = "<<x<<"\n";
#define print_vec(v) for(ll i=0;i<(int)v.size();i++) cout<<v[i]<<" ";
#define CASET int ___T; scanf("%d", &___T); for(int cs=1;cs<=___T;cs++)
const int N = 2e5 + 5;
using pi = pair<ll, ll>;
ll i,j,k;
void solve(){
   ll k,n; cin>>k>>n;
   ll sum=0;
   while(k--){
     ll x; cin>>x;
     sum=sum+x;
   }
   if(sum>=x) cout<<"Yes"<<endl;
   else cout<<"No"<<endl;


return ;
}
signed main(){
  
    //CASET
    solve () ;
  
 
 
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:40:12: error: 'x' was not declared in this scope
   40 |    if(sum>=x) cout<<"Yes"<<endl;
      |            ^
Language: C++

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

#define int long long
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define RS(x) rsort(x.begin(),x,end()))
#define REVE(x) reverse(x.begin(), x.end())
#define ALL(x) (x).begin(), (x).end()
#define pb push_back
#define pob pop_back
#define vint(v,n) vector<int> v(n); REP(i,n) scanf("%d", &v[i]);
int INF = 1e9 + 1;
int MOD = 1e9+7;
struct initon
{
    initon()
    {
        cin.tie(0);
        ios::sync_with_stdio(false);
    };
};
unsigned GetDigit(unsigned num){
    return log10(num)+1;
}

signed main(){
    int k,x;
    cin >> k >> x;
    if(k*500>=x){
    cout << "Yes";
    }else{
        cout << "No"
    }
    
             }


Compiler output:
a.cc: In function 'int main()':
a.cc:34:21: error: expected ';' before '}' token
   34 |         cout << "No"
      |                     ^
      |                     ;
   35 |     }
      |     ~
Language: C++

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

int main(){
  int K,X;
  cin >> K >> X;
  cout << (500 * K >= X ? "Yes" : "No") << endl;
}


Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++>h>
      |                       ^
a.cc:1:9: fatal error: bits/stdc++>: No such file or directory
    1 | #include<bits/stdc++>h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
#include<stdio.h>
#include<vector>
#include<algorithm>
#include<set>
#include<string>
#include<map>
#include<string.h>
#include<time.h>
#include<random>
#include<cmath>
#include<math.h>
#include<queue>
#include<time.h>
#include<utility>//swap(数値交換)
using namespace std;
typedef vector<int> vint;
typedef vector<string> vstr;
typedef vector<char> vcha;
typedef long long int llint;
typedef pair<int, int> pint;
typedef pair<llint, llint> pllint;
typedef vector<llint> vllint;
typedef vector<pint> vpint;
typedef vector<pair<llint, llint>> vpllint;
typedef vector<vector<int>> vvint;
typedef vector<vector<llint>> vvllint;
typedef vector<vector<pint>> vvpint;
typedef vector<bool> vbool;
long long GCD(long long a, long long b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}

#define rep(i,n) for(int i=0;i<n;i++)
#define rop(i,n) for(int i=1;i<=n;i++)
#define drep(i,n) for(int i=n-1;0<=i;i--)
#define rt "\n"
#define sort(s) sort(s.begin(),s.end())
#define reve(s) reverse(s.begin(),s.end())

int main(){
	int a, b;
	cin >> a >> b;
	if (500 * a >= b)cout << "Yes" << rt;
	else cout << "No" << et;
	return 0;
}

// abc : 141 , aoj : ITP1_6_D
//sort, abs, swap, reverse, max, min
//__gcd, substring, erase, push_back,stoll、stoi

Compiler output:
a.cc: In function 'int main()':
a.cc:46:30: error: 'et' was not declared in this scope; did you mean 'rt'?
   46 |         else cout << "No" << et;
      |                              ^~
      |                              rt
Language: C++

#define _USE_MATH_DEFINES
#include<iostream>
#include<fstream>
#include<string>
#include<vector>
#include<utility>
#include<algorithm>
#include<climits>
#include<set>
#include<map>
#include<cmath>
#include<iomanip>
#include<iterator>
#include<queue>
#include<stack>
#include<cctype>
#include<deque>
#include<time.h>
#include<bitset>
#include<random>
#include<unordered_set>
#include<unordered_map>
#include<sstream>
//by Skeef79

typedef long long ll;
typedef long double ld;
typedef unsigned long long ull;

#pragma warning(disable : 4996)
#pragma comment(linker, "/STACK:16777216")
#define pb push_back
#define en '\n'
#define for0(i,n) for(int i = 0;i<n;i++)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define vec vector
#define pii pair<int,int>
#define pll pair<ll,ll>

using namespace std;

const int INF = 2000000000;
const ll LINF = 2000000000000000000;

template<typename T> void print(vector<T>& a)
{
	for (int i = 0; i < a.size(); i++)
		cout << a[i] << ' ';
	cout << en;
}

template<typename T> void print(deque<T>& a)
{
	for (int i = 0; i < a.size(); i++)
		cout << a[i] << ' ';
	cout << en;
}

template<typename T> void print(vector<vector<T>>& a)
{
	for (int i = 0; i < a.size(); i++)
	{
		for (int j = 0; j < a[i].size(); j++)
			cout << a[i][j] << ' ';
		cout << en;
	}
}

template <typename T> void input(vector<T>& a)
{
	for (int i = 0; i < a.size(); i++)
		cin >> a[i];
}

template<typename T> void input(deque<T>& a)
{
	for (int i = 0; i < a.size(); i++)
		cin >> a[i];
}

template<typename T> void input(vector<vector<T>>& a)
{
	for (int i = 0; i < a.size(); i++)
		for (int j = 0; j < a[i].size(); j++)
			cin >> a[i][j];
}


void solve()
{
	ll k, x;
	cin >> k >> x;
	if (k * 500 >= x
		cout << "yes";
	else
		cout << "no";
	 
}

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);

#ifdef _DEBUG
	freopen("input.txt", "r", stdin);
#endif

	int tst = 1;
	//cin >> tst;
	while (tst--)
		solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:94:25: error: expected ';' before 'cout'
   94 |         if (k * 500 >= x
      |                         ^
      |                         ;
   95 |                 cout << "yes";
      |                 ~~~~     
a.cc:96:9: error: expected primary-expression before 'else'
   96 |         else
      |         ^~~~
a.cc:95:31: error: expected ')' before 'else'
   95 |                 cout << "yes";
      |                               ^
      |                               )
   96 |         else
      |         ~~~~                   
a.cc:94:12: note: to match this '('
   94 |         if (k * 500 >= x
      |            ^
Language: Java

import java.util.*;

public class A {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x = sc.nextInt();
        System.out.println(500 * n >= x ? "Yes" : "No");
    }
}

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

def main():
    k, x = [int(p) for p in input().split()]
    if k * 500 > x:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()


Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def main():
      | ^~~
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <math.h>
using namespace std;
int main()
{
  int a=0,b=0,c=0,d=0,e=0,f=0,i=0,j=0;
  int sum=0,num=0,count=0,ans=0,min=0,max=0;
  double d1=0,d2=0,d3=0,d4=0,d5=0,d6=0;
  int a1[999999],a2[999999],a3[999999];
  string s1,s2,s3;
  
  cin>>a>>b;
  
  if(500*a>=b){
    cout<<"Yes"<<endl:
  }else{
    cout<<"No"<<endl;
  }
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: expected ';' before ':' token
   16 |     cout<<"Yes"<<endl:
      |                      ^
      |                      ;
Language: C

#include<stdio.h>
int main(){
  int K,X;
  if(500*K=>X)printf("Yes");
  else printf("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected expression before '>' token
    4 |   if(500*K=>X)printf("Yes");
      |            ^
Language: C

#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0);
#define FOR(i,s,n) for(int i = s; i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(n) (n).begin(), (n).end()
#define RALL(n) (n).rbegin(), (n).rend()
#define ATYN(n) cout << ( (n) ? "Yes":"No") << '\n';
#define CFYN(n) cout << ( (n) ? "YES":"NO") << '\n';
#define OUT(n) cout << (n) << '\n';
using ll = long long;
using ull = unsigned long long;
using pii = pair<int,int>;
using pll = pair<ll,ll>;

int main(void)
{
    IOS
    int k, x;
    cin >> k >> x;
    ATYN(k*500 >= x)

    return 0;
}

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

//   _/                _/                 _/_/_/   _/
//_/_/_/_/   _/_/   _/_/_/_/   _/_/    _/       _/_/
// _/     _/    _/   _/     _/    _/  _/_/_/     _/
//_/     _/    _/   _/     _/    _/  _/    _/   _/
// _/_/   _/_/       _/_/   _/_/      _/_/     _/
#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;
typedef long long ll;
const int MOD=1e9+7;
const double pi=3.14159265358979323846;
const int inf=2e9;
const ll INF=5e18;
typedef pair<int,int> P;
int main() {
  cin.tie(0),cout.tie(0);
  ios::sync_with_stdio(false);
  int k,x;
  cin >> k >> x;
  if(k*500>=x) {
    cout < "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:18: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   27 |     cout < "Yes" << endl;
      |            ~~~~~~^~~~~~~
Language: C++

/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, 
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include <bits/stdc++.h>

int main()
{
    int x,y;
    cin>>x>>y;
    if(x*500>=y){cout<<"Yes";}else cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |     cin>>x>>y;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:9:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:15:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     if(x*500>=y){cout<<"Yes";}else cout<<"No";
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:36: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     if(x*500>=y){cout<<"Yes";}else cout<<"No";
      |                                    ^~~~
      |                                    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>
using namespace std;
int main {
  int a,b,x;
  cin>>a>>b;
  if(a*500)>=b){
  cout<<"Yes"<<endl;}
  else{cout<< "No"<< endl;}
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main {
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,x;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:10: note: to match this '{'
    3 | int main {
      |          ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>a>>b;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(a*500)>=b){
      |   ^~
a.cc:8:3: error: expected unqualified-id before 'else'
    8 |   else{cout<< "No"<< endl;}
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
#include <cctype>
#include <ctype.h>
#define ll long long
using namespace std;
int main()
{

    int k, x;
    cin >> k >> x;
    if (k >= x)
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:29: error: expected ';' before '}' token
   23 |         cout << "No" << endl
      |                             ^
      |                             ;
   24 |     }
      |     ~
Language: C++

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

int main() {

	int N,M;
	cin>>N>>M;
	if (N * 500 >= M) { cout << "Yes" << endl; }
	else { cout < "No" << endl; }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |         else { cout < "No" << endl; }
      |                       ~~~~~^~~~~~~
Language: C++

/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, 
C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include <bits/stdc++.h>

int main()
{
    int x,y;
    cin>>x>>y;
    if(x*500>=y){cout<<"Yes";}else cout<<"No"
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |     cin>>x>>y;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:9:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:15:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     if(x*500>=y){cout<<"Yes";}else cout<<"No"
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:36: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     if(x*500>=y){cout<<"Yes";}else cout<<"No"
      |                                    ^~~~
      |                                    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<bits/stdc++.h>
#define ll long long
#define rgi register int
#define rgl register ll
#define maxn 100005
#define mod 998244353LL
#define inf 1000000007LL
namespace lib
{
	using namespace std;
	class fastio
	{
		private:
			#define _NUMLEN 111
			char _num[_NUMLEN],_ch;
			int _f,_head;
			bool _useSTD;
		public:
			inline void ioSTD()
			{
				_useSTD=1;
				ios::sync_with_stdio(false);
				cin.tie(0),cout.tie(0);
			}
			inline void gc(char & _c)
			{
				if(_useSTD)cin>>_c;
				else _c=getchar();
			}
			inline void pc(char _c)
			{
				if(_useSTD)cout<<_c;
				else putchar(_c);
			}
			template<typename _T> inline fastio & operator - (_T & _x)
			{
				if(_useSTD)cin>>_x;
				else
				{
					_x=0;
					while(!isdigit(_ch)) _f|=_ch=='-',gc(_ch);
					while(isdigit(_ch)) _x=(_x<<1)+(_x<<3)+(_ch^48),gc(_ch);
					_f&&(_x=-_x,_f=0);
				}
				return *this; 
			}
			template<typename _T> inline fastio & operator + (_T _x)
			{
				if(_useSTD)cin>>_x;
				else
				{
					_T _k;
					if(_x==0) {pc('0'),pc(' ');return *this;}
					if(_x<0) pc('-'),_x=-_x;
					while(_x>0) _k=_x/10,++_head,_num[_head]=(_x-(_k<<1)-(_k<<3))^48,_x=_k;
					while(_head>0) pc(_num[_head]),--_head;
					pc(' ');
				}
				return *this; 
			}
			template<typename _T> inline fastio & operator >> (_T & _x) {cin>>_x;return *this;}
			template<typename _T> inline fastio & operator << (_T _x) {cout<<_x;return *this;}
			#define endln pc('\n')
		fastio() {_f=0,_head=0,_useSTD=0,_ch=' ';}
	}io;
	inline void fileio(string _r,string _w)
	{
		if(_r[0]!='-')freopen(_r.c_str(),"r",stdin);
		if(_w[0]!='-')freopen(_w.c_str(),"w",stdout);
	}
	#define mem(_x,_set) memset(_x,_set,sizeof(_x))
}using namespace lib;

signed main()
{
	// fileio("tt.in","tt.out");
	// io.ioSTD();
	int k,x
	cin>>k>>x;
	if(k*500>=x){
		cout<<"Yes";
	}
	else cout<<"No";
	return 0;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:79:9: error: expected initializer before 'cin'
   79 |         cin>>k>>x;
      |         ^~~
a.cc:80:19: error: 'x' was not declared in this scope
   80 |         if(k*500>=x){
      |                   ^
Language: C++

#include <stdio.h>
main(){
  int K,X;
  cin>>K>>X;
  if(K*500>=X)cout<<"Yes";
  else cout<<"No";
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>K>>X;
      |   ^~~
a.cc:5:15: error: 'cout' was not declared in this scope
    5 |   if(K*500>=X)cout<<"Yes";
      |               ^~~~
a.cc:6:8: error: 'cout' was not declared in this scope
    6 |   else cout<<"No";
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, a, b) for (long long i = (a); i < (b); i++)
#define rep2(r, aa, bb) for (long long r = (aa)-1; r >= (bb); r--)

using namespace std;


int main()
{
    lonh long x, h;
    cin >> x >> h;
    if(x*500>=h){
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'lonh' was not declared in this scope; did you mean 'long'?
   10 |     lonh long x, h;
      |     ^~~~
      |     long
a.cc:11:12: error: 'x' was not declared in this scope
   11 |     cin >> x >> h;
      |            ^
a.cc:11:17: error: 'h' was not declared in this scope
   11 |     cin >> x >> h;
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
/*const long long M = 1000000007 , N = 1001;
int r1,r2,r3,c1,c2,c3,c4,n,polycoff[N][N],group2[N][N];
string s1,s2,s3;
void fix(int &a){
	if(a >= M){
		a -= M;
	}else if(a < 0){
		a += M;
	}
}
int main(){
	cin >> n >> r1 >> s1 >> r2 >> s2 >> r3 >> s3;
	for(int i = 0 ; i < n ; i += 1){
		if(s1[i] != s2[i] && s2[i] == s3[i]){
			c1 += 1;
		}else if(s1[i] != s2[i] && s1[i] == s3[i]){
			c2 += 1;
		}else if(s1[i] == s2[i] && s2[i] != s3[i]){
			c3 += 1;
		}else{
			c4 += 1;
		}
	}
	int rr1 = r1-c2-c3-c4 , rr2 = r2-c1-c3-c4 , rr3 = r3-c1-c2-c4;
	for(int i = 0 ; i <= n ; i += 1){
		polycoff[i][0] = polycoff[i][i] = 1;
		for(int j = 1 ; j < i ; j += 1){
			polycoff[i][j] = polycoff[i-1][j] + polycoff[i-1][j-1];
			fix(polycoff[i][j]);
		}
	}
	for(int i = 0 ; i <= c3 ; i += 1){
		for(int j = 0 ; j <= c4 ; j += 1){
			group2[i+j][i-j+c4] = (long long)polycoff[c3][i] * polycoff[c4][j]%M;
		}
	}
	for(int i = 0 ; i <= c3+c4 ; i += 1){
		for(int j = -c4 ; j <= c3 ; j += 1){
			int jj = j+c4;
			group2[i][jj] += (i > 0 ? group2[i-1][jj] : 0) + (jj > 0 ? group2[i][jj-1] : 0);
			fix(group2[i][jj]);
			if(i > 0 && jj > 0){
				group2[i][jj] -= group2[i-1][jj-1];
			}
			fix(group2[i][jj]);
		}
	}
	long long ans = 0;
	for(int i = 0 ; i <= c1 ; i += 1){
		for(int j = 0 ; j <= c2 ; j += 1){
			int rrr1 = rr1 - i + j,rrr2 = rr2 + i - j , rrr3 = rr3 + i + j , rrr4 = max(-rrr1,-rrr2);
			if(rrr4 > c3+c4 || rrr3+c4 < 0){
				continue;
			}
			rrr3 = min(rrr3,c3);
			ans += (polycoff[c1][i]*polycoff[c2][j])*(group2[rrr4][c3+c4]-(rrr3+c4 > 0 ? group2[rrr4][rrr3+c4-1] : 0));
			ans %= M;
		}
	}
	cout << (ans+M)%M << endl;
}
*/
/*
3
1 000
1 100
0 111
*/

int main(){
	int a,b;
	cin >> a >> b;
	if(b >= a && b % a == 0){
		cout << "YES" << endl;
	}else{
		cout << "NO" < <endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:78:32: error: expected primary-expression before '<' token
   78 |                 cout << "NO" < <endl;
      |                                ^
Language: C++

#inculude <iostream>

int main() {
  int K, X;
  std::cin >> K >> X;
  if ( K * 500 >= X ) {
    std::cout << "Yes" << std::endl;
  } else {
    std::cout << "No" << std::endl;
  }
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude <iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:8: error: 'cin' is not a member of 'std'
    5 |   std::cin >> K >> X;
      |        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculude <iostream>
a.cc:7:10: error: 'cout' is not a member of 'std'
    7 |     std::cout << "Yes" << std::endl;
      |          ^~~~
a.cc:7:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:32: error: 'endl' is not a member of 'std'
    7 |     std::cout << "Yes" << std::endl;
      |                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculude <iostream>
a.cc:9:10: error: 'cout' is not a member of 'std'
    9 |     std::cout << "No" << std::endl;
      |          ^~~~
a.cc:9:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:31: error: 'endl' is not a member of 'std'
    9 |     std::cout << "No" << std::endl;
      |                               ^~~~
a.cc:9:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>

int main ()
{
  int K, X;
  cin >> K >> X;
  if (K * 500 >= X) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> K >> X;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:7:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if (K * 500 >= X) 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:7:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if (K * 500 >= X) cout << "Yes" << endl;
      |                                      ^~~~
      |                                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else 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:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout << "No" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

const int N = 1e5 + 10;
#define long long ll;




int x,y;




int main()
{

    scanf("%d %d",&x,&y);
    ll ans = x*500;
    if(ans >= y)
        puts("Yes");
    else
        puts("No");








    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: 'll' was not declared in this scope
   20 |     ll ans = x*500;
      |     ^~
a.cc:21:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |     if(ans >= y)
      |        ^~~
      |        abs
Language: C++

#include <bits/stdc++.h>
#include <fstream>

using namespace std;
#define intMax 2147483647
#define rep(i, a, b) for (int i = a; i < b; i++)
#define repp(i, a, b) for (int i = a; i >= b; i--)
#define be(a) (a.begin(), a.end())
#define rbe(p) (p.rbegin(), p.rend())
#define pb push_back

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    int n, m;
    cin >> n >> m;
    if (n * 500 >= m)
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:26:6: error: expected '}' at end of input
   26 |     }
      |      ^
a.cc:13:1: note: to match this '{'
   13 | {
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	int N,K;
	cin>>N>>K;
	if(N*K>=X) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'X' was not declared in this scope
    7 |         if(N*K>=X) cout<<"Yes"<<endl;
      |                 ^
Language: C++

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

int main(){

	int n,x;
	if(n*500>=x)cout<<"Yes\n";
	esle cout<<"No\n";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'esle' was not declared in this scope
    8 |         esle cout<<"No\n";
      |         ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    int n; cin >> n;
    string s; cin >> s;
    int count = 0;
    for (int i = 0; i < n - 3; i++) {
        if (s.substr(i, 3) == "ABC") {
            count++:
        }
    }
    cout << count << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before ':' token
   11 |             count++:
      |                    ^
      |                    ;
Language: C++

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

#define printl(s) cout << s << endl;
#define print(s) cout << s << endl; return 0;
#define yes cout << "Yes" << endl; return 0;
#define no cout << "No" << endl; return 0;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rep2(i,n) for (int i = 1; i < (n)+1; ++i)
using ll = long long;

const ll modseed = pow(10,9) + 7;

template <typename T>
vector<T> getValues(ll num){
    vector<T> values(num);
    for(ll i=0;i<num;i++){
        cin >> values.at(i);
    }
    return values;
}

string S;
int N, cnt;

int main(){
  cin >> N >> S;
  rep(i,N-2){
    if(S.at(i)=='A' && S.at(i+1) == 'B' && S.at(i+2) == 'C'{
      cnt++;
    }
  }
  print(cnt);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:60: error: expected ')' before '{' token
   29 |     if(S.at(i)=='A' && S.at(i+1) == 'B' && S.at(i+2) == 'C'{
      |       ~                                                    ^
      |                                                            )
a.cc:32:3: error: expected primary-expression before '}' token
   32 |   }
      |   ^
Language: C++

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

#define printl(s) cout << s << endl;
#define print(s) cout << s << endl; return 0;
#define yes cout << "Yes" << endl; return 0;
#define no cout << "No" << endl; return 0;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rep2(i,n) for (int i = 1; i < (n)+1; ++i)
using ll = long long;

const ll modseed = pow(10,9) + 7;

template <typename T>
vector<T> getValues(ll num){
    vector<T> values(num);
    for(ll i=0;i<num;i++){
        cin >> values.at(i);
    }
    return values;
}

string S;
int N, cnt;

int main(){
  cin >> N >> S;
  string t = "ABC";
  int tIdx = 0;
  rep(i,N-2){
    if(S.at(i)=='A' && S.at(i+1) == 'B' && S.at(i+2) == 'C'{
      cnt++
    }
  }
  print(cnt);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:31:60: error: expected ')' before '{' token
   31 |     if(S.at(i)=='A' && S.at(i+1) == 'B' && S.at(i+2) == 'C'{
      |       ~                                                    ^
      |                                                            )
a.cc:34:3: error: expected primary-expression before '}' token
   34 |   }
      |   ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  int N,j;
  char S[200];
  scanf("%d",&N);
  scanf("%s",S);
  for(i=0;i<N-2;i++){
    if(S[i]=='A'){
      if(S[i+1]=='B'){
        if(S[i+2]=='C'){
          j++;
        }
      }
    }
  }
  printf("%d",j);
}

Compiler output:
main.c: In function 'main':
main.c:8:7: error: 'i' undeclared (first use in this function)
    8 |   for(i=0;i<N-2;i++){
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include<string>
using namespace std;
int main(){
	int n,a=0;
	string s;
	cin >> n>>s;
	for (int i = 0; i < n; i++) {
		if (s[i] == 'A') {
			i++;
			if (s[i] == 'B') {
				i++;
				if (s[i] == 'C') {
					i++;
					a++;
				}
			}
		}
	}
	cout << a;

Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: expected '}' at end of input
   20 |         cout << a;
      |                   ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef  long double ld;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
#define int long long int
#define F first
#define S second
#define pb push_back
#define check(x) cout << (#x) << " is " << (x) << endl
#define all(x) (x).begin(), (x).end()
#define pi 3.141592653589793238
#define INF 1e9+5
#define N 200005



signed main()
{
	int t;
	cin>>t;
	while(t--){
		int n;
		cin>>n;
		string s,f="ABC",ans=0;
        cin>>s;
       	for(int x=0;x<n;x++){
        	string k=s.substr(x,3);
            if(k==f){ans++;}
        }
    	    cout<<ans<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:25: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   30 |             if(k==f){ans++;}
      |                      ~~~^~
Language: C++

n = int(input())
s = input()
ans = 0
for i in range(n-2):
    if(s[i] == 'A' and s[i+1] == 'B' and s[i+2] == 'C'):
        ans = ans + 1
print(ans)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

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

int main() {
  int n;
  string s;
  cin >> n >> s;
  int ans = 0;
  for(int i = 0; i <= n - 3; i++) {
   if(s[i] == 'A' && s[i + 1] == 'B' && s[i + 2] == 'C') ans++;
   }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s;
      |   ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n >> s;
      |   ^~~
a.cc:7:15: error: 's' was not declared in this scope
    7 |   cin >> n >> s;
      |               ^
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << ans << endl;
      |   ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include <cstdio>
#define rep(i,n) for(ll i=0;i<(n);i++)
using namespace std;

int main(){
		int n;scanf("%d",&n);
		char str[n];
		scanf("%s",str);
		int count=0;
		rep(i,n){
				if(str[i]=='A' && str[i+1]=='B' && str[i+2]=='C')count++;
			}
		printf("%d",count);	
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:22: error: 'll' was not declared in this scope
    2 | #define rep(i,n) for(ll i=0;i<(n);i++)
      |                      ^~
a.cc:10:17: note: in expansion of macro 'rep'
   10 |                 rep(i,n){
      |                 ^~~
a.cc:10:21: error: 'i' was not declared in this scope
   10 |                 rep(i,n){
      |                     ^
a.cc:2:29: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(ll i=0;i<(n);i++)
      |                             ^
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        char[] S = sc.next().toCharArray();
        int count=0;
        
        for(int i=0; i<N-2; i++){
            if(S[i]=="A" && S[i+1]=="B" && S[i+2]=="C"){
                  count++;
            }
        }

        
        
        
        
        
        
        
        
        
        
        
        
          System.out.println(count);
        }
    }

Compiler output:
Main.java:10: error: bad operand types for binary operator '=='
            if(S[i]=="A" && S[i+1]=="B" && S[i+2]=="C"){
                   ^
  first type:  char
  second type: String
Main.java:10: error: bad operand types for binary operator '=='
            if(S[i]=="A" && S[i+1]=="B" && S[i+2]=="C"){
                                  ^
  first type:  char
  second type: String
Main.java:10: error: bad operand types for binary operator '=='
            if(S[i]=="A" && S[i+1]=="B" && S[i+2]=="C"){
                                                 ^
  first type:  char
  second type: String
3 errors
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
  	int x = 0;
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String S = sc.nextLine();
    
    for(int i = 0; i <= (N - 2); i++){
    	if( S.charAt(i).equals(a) && S.charAt(i).equals(b){
        	if(S.charAt(i).equals(c){
            	x += 1;
            }
        }
    }
    System.out.println(x);
  
  }
}


Compiler output:
Main.java:10: error: ')' expected
    	if( S.charAt(i).equals(a) && S.charAt(i).equals(b){
    	                                                  ^
Main.java:11: error: ')' expected
        	if(S.charAt(i).equals(c){
        	                        ^
2 errors
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
  	int x = 0;
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String S = sc.nextLine();
    
    for(int i = 0; i <= (N - 2); i++){
    	if( S.charAt(i) == "a" && S.charAt(i) == "b"){
        	if(S.charAt(i) == "c"){
            	x += 1;
            }
        }
    }
    System.out.println(x);
  
  }
}


Compiler output:
Main.java:10: error: bad operand types for binary operator '=='
    	if( S.charAt(i) == "a" && S.charAt(i) == "b"){
    	                ^
  first type:  char
  second type: String
Main.java:10: error: bad operand types for binary operator '=='
    	if( S.charAt(i) == "a" && S.charAt(i) == "b"){
    	                                      ^
  first type:  char
  second type: String
Main.java:11: error: bad operand types for binary operator '=='
        	if(S.charAt(i) == "c"){
        	               ^
  first type:  char
  second type: String
3 errors
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
  	int x = 0;
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    String S = sc.nextLine();
    
    for(int i = 0; i <= (N - 2); i++){
    	if( S.charAt(i) == a && S.charAt(i) == b){
        	if(S.charAt(i) == c){
            	x += 1;
            }
        }
    }
    System.out.println(x);
  
  }
}


Compiler output:
Main.java:10: error: cannot find symbol
    	if( S.charAt(i) == a && S.charAt(i) == b){
    	                   ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
    	if( S.charAt(i) == a && S.charAt(i) == b){
    	                                       ^
  symbol:   variable b
  location: class Main
Main.java:11: error: cannot find symbol
        	if(S.charAt(i) == c){
        	                  ^
  symbol:   variable c
  location: class Main
3 errors
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
  	int x = 0;
    Scanner sc = new Scanner(System.in);
    int N = sc.Scanner();
    String S = sc.Scanner();
    
    for(int i = 0; i <= (N - 2); i++){
    	if( S.charAt(i) == "a" && S.charAt(i) == "b"){
        	if(S.charAt(i) == "c"){
            	x += 1;
            }
        }
    }
    System.out.println(x);
  
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
    int N = sc.Scanner();
              ^
  symbol:   method Scanner()
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
    String S = sc.Scanner();
                 ^
  symbol:   method Scanner()
  location: variable sc of type Scanner
Main.java:10: error: bad operand types for binary operator '=='
    	if( S.charAt(i) == "a" && S.charAt(i) == "b"){
    	                ^
  first type:  char
  second type: String
Main.java:10: error: bad operand types for binary operator '=='
    	if( S.charAt(i) == "a" && S.charAt(i) == "b"){
    	                                      ^
  first type:  char
  second type: String
Main.java:11: error: bad operand types for binary operator '=='
        	if(S.charAt(i) == "c"){
        	               ^
  first type:  char
  second type: String
5 errors
Language: C++

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

int main(){
  int N;cin>>N;
  string S;cin>>S;
  int ans=0;
  for(int i=0;i<N-1;i++){
    string L=S.substr(i,3);
    if(L=="ABC") count++;
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: no post-increment operator for type
   10 |     if(L=="ABC") count++;
      |                       ^~
Language: C++

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

int main(){
  int N;cin>>N;
  string S;cin>>S;
  int ans=0;
  for(int i=0;i<N-1;i++){
    string L=S.substr(i,3);
    if(L="ABC") count++;
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: could not convert 'L.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     if(L="ABC") count++;
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:10:22: error: no post-increment operator for type
   10 |     if(L="ABC") count++;
      |                      ^~
Language: C++

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

int main(){
  int N; cin>>N;
  string S; cin>>S;
  int cnt=0;
  for(int i=0; i<N-2; i++){
    if(S[i]=="A"&&S[i+1]=="B"&&S[i+2]=="C")cnt++;
  }
  cout<<cnt<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(S[i]=="A"&&S[i+1]=="B"&&S[i+2]=="C")cnt++;
a.cc:9:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(S[i]=="A"&&S[i+1]=="B"&&S[i+2]=="C")cnt++;
a.cc:9:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(S[i]=="A"&&S[i+1]=="B"&&S[i+2]=="C")cnt++;
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
#include <chrono> 
using namespace std::chrono;
using namespace std;
typedef long long ll;
using namespace __gnu_pbds;   
#define ordered_set tree<ll, null_type,less<ll>, rb_tree_tag,tree_order_statistics_node_update> 
#define ordered_mset tree<pair<ll,ll>, null_type,less<pair<ll,ll>>, rb_tree_tag,tree_order_statistics_node_update> 
#define fr(i,a,b) for (ll i=(a); i<(b);++i)
#define frr(i,a,b) for(ll i=(a-1);i>=(b);--i)
#define vi vector<ll>
#define vl vector<ll>
#define pb push_back
#define ppb pop_back()
#define pf push_front
#define ppf pop_front()
#define F first
#define S second
#define pii pair<ll,ll> 
#define rev(a) reverse(a.begin(),a.end())
#define srt(a,k) sort(a,a+k,greater<ll>())
#define rsrt(a) sort(a.begin(),a.end(),greater<ll>())
#define sz(a) (ll)a.size()
//#define endl "\n"
#define po(a,b) (ll)(pow(a,b)+0.5)
#define double long double
#define print(a) for(auto x:a)cout<<x<<" ";cout<<endl;
#define setbits(a) __builtin_popcount(a)
const ll M=1e9+7;
const ll mxx=3001;

int main()
{  
    

 string s;int n;
 cin>>n;
 cin>>s;
 int ans=0;
 fr(i,0,n-2)
 {
    if(s[i]=='A' && a[i+1]=='B' && s[i+2]=='C')ans++;
 }
   cout<<ans;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:44:21: error: 'a' was not declared in this scope
   44 |     if(s[i]=='A' && a[i+1]=='B' && s[i+2]=='C')ans++;
      |                     ^
Language: C

#include<stdio.h>
int main(){
   int N;
   scanf("%d",N);
   char S[N];
   char ABC[3]={'A','B','C'};
   scanf("%s",S);
   int cnt2=0;
   for(int i=0;i<N;i++){
      cnt=0;
      for(int j=0;j<3;j++){
         if(S[i+j]==ABC[j]){
            cnt++;
         }
      }
      if(cnt==3){
         cnt2++;
      }
   }
   printf("%d",cnt2);
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:7: error: 'cnt' undeclared (first use in this function); did you mean 'cnt2'?
   10 |       cnt=0;
      |       ^~~
      |       cnt2
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
    int N;
    cin >> N;
    string S;
    cin >> S;
    int count=0;
    for (int i=0; i<N-2; i++){
        if(S.at(i)=='A'&&S.at(i+1)=='B'&&S.at(i+2)=='C') count++
    }
    cout << count << endl;
    }


  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:65: error: expected ';' before '}' token
   11 |         if(S.at(i)=='A'&&S.at(i+1)=='B'&&S.at(i+2)=='C') count++
      |                                                                 ^
      |                                                                 ;
   12 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(long long)(n);++i)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
 
const ll MOD=1e9+7;
const ll INF=1e18;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};

const int MAX=510000;
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false); 
  
  int n;
  string s;
  cin >> n >> s;
  int n=s.size()/2;
  int ans = 0;
  rep(i,n-2){
    if(s[i]=='A' && s[i+1]=='B' && s[i+2]=='C')ans++;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:7: error: redeclaration of 'int n'
   24 |   int n=s.size()/2;
      |       ^
a.cc:21:7: note: 'int n' previously declared here
   21 |   int n;
      |       ^
Language: C

#include<stdio.h>
int main(){
  int n;
  int count=0;
  scanf("%d",&n);
  char s[n+1];
  scanf("%s",s);
  for(int i=0;i<n-2;i++){
    if(char s[i]=='A'){
      if(char s[i+1]=='B'){
        if(char s[i+2]=='C'){
          count++;
        }
      }
    }
    printf("%d",count);
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected expression before 'char'
    9 |     if(char s[i]=='A'){
      |        ^~~~
main.c:10:10: error: expected expression before 'char'
   10 |       if(char s[i+1]=='B'){
      |          ^~~~
main.c:11:12: error: expected expression before 'char'
   11 |         if(char s[i+2]=='C'){
      |            ^~~~
Language: C

#include<stdio.h>
int main(){
  int n;
  int count=0;
  scanf("%d",&n);
  char s[n+1];
  scanf("%s",s);
  for(int i=0;i<n-2;i++){
    if(char s[i]=='A'){
      if(char s[i+1]=='B'){
        if(char s[i+2]=='C'){
          count++;
        }
      }
    }
    printf("%d",count);
  }
  

Compiler output:
main.c: In function 'main':
main.c:9:8: error: expected expression before 'char'
    9 |     if(char s[i]=='A'){
      |        ^~~~
main.c:10:10: error: expected expression before 'char'
   10 |       if(char s[i+1]=='B'){
      |          ^~~~
main.c:11:12: error: expected expression before 'char'
   11 |         if(char s[i+2]=='C'){
      |            ^~~~
main.c:17:3: error: expected declaration or statement at end of input
   17 |   }
      |   ^