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

#include <stdio.h>
int main(){
    int a,b,c;
    scanf("%d %d %d",a,b,c);
    if(a+b+c<=21){
        printf("win");
    }else{
        printf("bust")
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before '}' token
    8 |         printf("bust")
      |                       ^
      |                       ;
    9 |     }
      |     ~
Language: C++

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


int main() {
	cin >> a >> b >> c;
	if(a+b+c > 21){
		cout << "bust" << endl;
	}else{
		cout << "win" << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'a' was not declared in this scope
    6 |         cin >> a >> b >> c;
      |                ^
a.cc:6:21: error: 'b' was not declared in this scope
    6 |         cin >> a >> b >> c;
      |                     ^
a.cc:6:26: error: 'c' was not declared in this scope
    6 |         cin >> a >> b >> c;
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
#define lli long long int   //used int to avoid mle
#define ulli unsigned long long int 
#define ld long double
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define loop(i,a,b) for(lli i=a;i<b;i++)
#define initialize(array,size,value) for(lli i=0;i<size;i++) array[i]=value
#define couta(array,size) for(lli i=0;i<size;i++) cout<<array[i]<<" "
#define vl vector<lli>
#define vp vector< pair <lli,lli> >
#define sl set<lli>
#define spl set<pll>
#define msl multiset <lli>
#define msp multiset <pll>
#define pll pair<lli, lli>
#define mll map<lli, lli>              //for( map<lli, lli>::iterator i=temp.begin();i!=temp.end();i++)cout<<i->fi<<" "<<i->se<<endl;
#define mvl map<lli, vl>
#define umll unordered_map<lli, lli>
#define vt vector<pair<lli, pll >  >
#define vf vector<pair<pll,pll > >
#define qu queue<lli>
#define pq priority_queue<lli>
#define dq deque <lli>
#define ptr vector<lli>::iterator
#define bs(array,x) binary_search(array.begin(),array.end(),x)
#define lb(array,x) lower_bound(array.begin(),array.end(),x)
#define ub(array,x) upper_bound(array.begin(),array.end(),x)
#define nobw(array,i,j) upper_bound(array.begin(), array.end(), j)-lower_bound(array.begin(), array.end(), i) //number of numbers between i & j
#define vc clear()
#define endl '\n'
#define sp system("pause");
#define INF 9223372036854775807
#define MINF -9223372036854775808
#define start_routine() int begtime = clock();
#define end_routine() int endtime = clock(); cerr << endl << "Time elapsed: " << (endtime - begtime)*1000/CLOCKS_PER_SEC << " ms"; return 0
lli mod=1000000007;
//string s=bitset<32>(n).to_string();
int main()
{
 	ios::sync_with_stdio(0);
    cin.tie(0);
      lli a,b,c;
        cin>>a>>b>>c;
        if(a+b+c>=22)cout<<"bust";else cout<<"win";
    









        
    #ifndef ONLINE_JUDGE
        end_routine();
    #endif
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:93: error: 'begtime' was not declared in this scope
   41 | #define end_routine() int endtime = clock(); cerr << endl << "Time elapsed: " << (endtime - begtime)*1000/CLOCKS_PER_SEC << " ms"; return 0
      |                                                                                             ^~~~~~~
a.cc:63:9: note: in expansion of macro 'end_routine'
   63 |         end_routine();
      |         ^~~~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <math.h>
using namespace std;

int main(){
    int a1,a2,a2;
    cin >> a1 >> a2 >> a3;
    if(a1+a2+a3 < 22) cout <<"bust"<<endl;
    else    cout << "win" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: redeclaration of 'int a2'
    7 |     int a1,a2,a2;
      |               ^~
a.cc:7:12: note: 'int a2' previously declared here
    7 |     int a1,a2,a2;
      |            ^~
a.cc:8:24: error: 'a3' was not declared in this scope; did you mean 'a2'?
    8 |     cin >> a1 >> a2 >> a3;
      |                        ^~
      |                        a2
Language: C++

ary = gets.split(' ').map(&:to_i)

if ary[0] + ary[1] + ary[2] >= 22
  puts 'bust'
else
  puts 'win'
end


Compiler output:
a.cc:4:8: warning: multi-character character constant [-Wmultichar]
    4 |   puts 'bust'
      |        ^~~~~~
a.cc:6:8: warning: multi-character character constant [-Wmultichar]
    6 |   puts 'win'
      |        ^~~~~
a.cc:1:1: error: 'ary' does not name a type
    1 | ary = gets.split(' ').map(&:to_i)
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn=;
#define FOR(i,a,b) for(int i=(a);i<=(b);i++)
#define ROF(i,a,b) for(int i=(a);i>=(b);i--)
#define MEM(x,v) memset(x,v,sizeof(x))
template<typename T>
inline void read(T &x){
	x=0;
	char ch=getchar();bool f=false;
	while(ch<'0' || ch>'9') f|=ch=='-',ch=getchar();
	while(ch>='0' && ch<='9') x=x*10+ch-'0',ch=getchar();
	if(f) x=-x;
}
int a,b,c; 
int main(){
	read(a);read(b);read(c);
	puts(a+b+c>=22?"bust":"win");
	return 0;
}

Compiler output:
a.cc:4:16: error: expected primary-expression before ';' token
    4 | const int maxn=;
      |                ^
Language: C++

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

long long INF = 1e18;

struct Edge{
    int from;
    int to;
    int cost;
};
int main(){
    int a,b,c
    cin>>a>>b>>c;
    int ans = 0;
    if(a+b+c <=21){
        cout<<"win"<<endl;
    }else{
        cout<<"bust"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected initializer before 'cin'
   13 |     cin>>a>>b>>c;
      |     ^~~
a.cc:15:12: error: 'c' was not declared in this scope
   15 |     if(a+b+c <=21){
      |            ^
Language: C++

#include<its/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	if(a+b+c<=21)
		cout<<"win";
	else
		cout<<"bust";
}

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

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

int main(){
  ll N, i;
  cin >> A >> B >> C;
  if(A + B + C < 22){
    cout << "win" << endl;
  } else {
    cout << "bust" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'A' was not declared in this scope
   10 |   cin >> A >> B >> C;
      |          ^
a.cc:10:15: error: 'B' was not declared in this scope
   10 |   cin >> A >> B >> C;
      |               ^
a.cc:10:20: error: 'C' was not declared in this scope
   10 |   cin >> A >> B >> C;
      |                    ^
Language: C++

a, b, c = map(int, input().split())
  
if a + b + c >= 22:
	print('bust')
else:
	print('win')

Compiler output:
a.cc:4:15: warning: multi-character character constant [-Wmultichar]
    4 |         print('bust')
      |               ^~~~~~
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
    6 |         print('win')
      |               ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = map(int, input().split())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;

ll a,b,c

int main()
{
	cin>>a>>b>>c;
	if(a+b+c>=22) cout<<"bust\n";
	else cout<<"win\n";
}

Compiler output:
a.cc:8:1: error: expected initializer before 'int'
    8 | int main()
      | ^~~
Language: C++

int main(){
	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
	int a1,a2,a3; cin>>a1>>a2>>a3;
	cout<<(a1+a2+a3>21 ? "bust" : "win")<<endl;	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'cin' was not declared in this scope
    2 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |         ^~~
a.cc:2:21: error: 'cout' was not declared in this scope
    2 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |                     ^~~~
a.cc:2:34: error: 'ios_base' has not been declared
    2 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |                                  ^~~~~~~~
a.cc:4:47: error: 'endl' was not declared in this scope
    4 |         cout<<(a1+a2+a3>21 ? "bust" : "win")<<endl;
      |                                               ^~~~
Language: C++

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if (a+b+c>=22) cout<<"bust"<<endl;
  else cout<<"win"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b >> c;
      |   ^~~
a.cc:4:18: error: 'cout' was not declared in this scope
    4 |   if (a+b+c>=22) cout<<"bust"<<endl;
      |                  ^~~~
a.cc:4:32: error: 'endl' was not declared in this scope
    4 |   if (a+b+c>=22) cout<<"bust"<<endl;
      |                                ^~~~
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |   else cout<<"win"<<endl;
      |        ^~~~
a.cc:5:21: error: 'endl' was not declared in this scope
    5 |   else cout<<"win"<<endl;
      |                     ^~~~
Language: C++

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

int main {
  int a, b, c;
  cin >> a >> b >> c;
  
  if (a + b + c >= 22)
    cout << "bust" << endl;
  else
    cout << "win" << endl;
}

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

#include<iostream>
#include<cstdio>
#include<cstring>
#include<map>
#include<algorithm>
using namespace std;
const int N = 1e5+100;
#define ll long long
const int N = 1e5 + 100;
int main()
{
    int a,b,c;
    cin>>a>>b>>c;
    if(a+b+ c>=22) puts("bust");
    else puts("win");
}

Compiler output:
a.cc:9:11: error: redefinition of 'const int N'
    9 | const int N = 1e5 + 100;
      |           ^
a.cc:7:11: note: 'const int N' previously defined here
    7 | const int N = 1e5+100;
      |           ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<string>
#include<cmath>
#include<queue>
#include<vector>
#include<sstream>
#include<algorithm>
#include<stack>
#include<bitset>
#include<map>
#include<set>
#define rep(i,n) for(int i=0;(i)<(n);i++)
#define rep1(i,n) for(int i=1;(i)<=(n);i++)
#define mst(a,b) memset(a,b,sizeof(a))
#define scd(a) scanf("%d",&a)
#define scdd(a,b) scanf("%d%d",&a,&b)
#define scddd(a,b,c) scanf("%d%d%d",&a,&b,&c)
#define IOS ios::sync_with_stdio(false),cin.tie(0),cout.tie(0)
#define dbg(a) cout<<"* "<< #a <<" : "<<a<<endl
#define fr first
#define se second
#define ls x<<1
#define rs x<<1|1
#define ll long long
#define ull unsigned long long
#define pii pair<int,int>
#define pll pair<ll,ll>
#define lowbit(x) x&(-x)
#define ac cout<<ans<<endl
//#define DEBUG 0
using namespace std;
const double pi=acos(-1.0);
const double eps=1e-6;
const ull hashp=1e7+19;
const ll INF=0x3f3f3f3f3f3f3f3fll;
const int inf=0x3f3f3f3f;
const int mod=1e9+7;
const int maxn=2e5+100;

void solve()
{
    int a,b,c;scddd(a,b,c);
    if(a+b+d>=22)printf("bust");
    else printf("win");
}
int main(){
    //IOS;
    //freopen("D://data.txt","r",stdin);
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:46:12: error: 'd' was not declared in this scope
   46 |     if(a+b+d>=22)printf("bust");
      |            ^
Language: C++

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

int main() {
  int A1, A2, A3;
  cin >> A1 >> A2 >> A3;
  if (A1 + A2 + A3 <=) {
    cout << "bust" << endl;
  } else {
    cout << "win" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected primary-expression before ')' token
    7 |   if (A1 + A2 + A3 <=) {
      |                      ^
Language: C++

//#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>

using namespace std;
#define rep(i,n) for(int i=1;i<=n;i++)
typedef long long ll;

int main(){
  int x,y,z;
  cin >> x >> y >> z;
  int ans a + b + c;
  if(ans >= 22)cout << "bust" << endl;
  else cout << "win" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected initializer before 'a'
   13 |   int ans a + b + c;
      |           ^
a.cc:14:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   if(ans >= 22)cout << "bust" << endl;
      |      ^~~
      |      abs
Language: C++

#include <bits/stdc++.h>
#define INT long long
#define MOD 998244353
#define OO 99999998765432100
using namespace std;
string s;
INT n,a,b,c;

int main()
{
    ios::sync_with_stdio(false);
    cin>>a>>b>>c;
    if( a+b+c > 21 ) cout<<"bust\n";
    else cout<<"win\n"
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: expected ';' before '}' token
   14 |     else cout<<"win\n"
      |                       ^
      |                       ;
   15 | }
      | ~
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nexInt(), b = sc.nextInt(), c = sc.nextInt();
		String ans[] = {"bust", "win"};
		int an = 0;
		sc.close();
		if(a + b + c < 22)an = 1;
		System.out.println(ans[an]);
	}
}


Compiler output:
Main.java:6: error: cannot find symbol
		int a = sc.nexInt(), b = sc.nextInt(), c = sc.nextInt();
		          ^
  symbol:   method nexInt()
  location: variable sc of type Scanner
1 error
Language: C++

#include<bit/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  if(a+b+c>=22)
    printf("bust\n");
  else
    printf("win\n");
  return 0;
}

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

#include <iostream>
#include <cmath>
#include <string>
using namespace std;

int main(){
    int a;
    cin >> a;
    int b;
    cin >> b;
    int c;
    cin >> c;
    if(a + b + c > 21)cout << "bust" << endl;
    else cout << win << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: 'win' was not declared in this scope; did you mean 'sin'?
   14 |     else cout << win << endl;
      |                  ^~~
      |                  sin
Language: C++

a = list(map(int, input().split()))
if sum(a) >= 22 :
    print('bust')
else :
    print('win')


Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('bust')
      |           ^~~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('win')
      |           ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = list(map(int, input().split()))
      | ^
Language: C++

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define max0(a,b,c) max(max(a,b),c)
#define min0(a,b,c) min(min(a,b),c)
#define ft first
#define sc second
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define all(v) (v).begin(),(v).end()
#define mod 1000000007
using namespace std;
using Graph = vector<vector<int>>;
typedef long long lint;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ldouble;
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<ull> ulvec;
typedef vector<double> dvec;
typedef vector<pair<int,int>> pvec;
typedef vector<pair<ll,ll>> plvec;
typedef vector<tuple<ll,ll,ll>> tvec;
typedef vector<string> svec;

int main(){
    vec a(3);
    int sum=0;
    rep(i,n){
        cin>>s[i];
        sum+=a[i];
    }
    if(sum>=22) cout<<"bust";
    else cout<<"win";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:11: error: 'n' was not declared in this scope
   31 |     rep(i,n){
      |           ^
a.cc:3:32: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                                ^
a.cc:32:14: error: 's' was not declared in this scope
   32 |         cin>>s[i];
      |              ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int  a = sc.next();
		int  b = sc.next();
		int  c = sc.next();
		
		if ((a+b+c)>=22){
			System.out.print("bust");
		}else{
			System.out.print("win");
		}
	}
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
		int  a = sc.next();
		                ^
Main.java:7: error: incompatible types: String cannot be converted to int
		int  b = sc.next();
		                ^
Main.java:8: error: incompatible types: String cannot be converted to int
		int  c = sc.next();
		                ^
3 errors
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
#include <queue>
#include <set>
#include <string>
#include <map>
#include <cmath>
#include <cstring>

#define fi first
#define se second
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rrep(i,n) for (int i = 1; i < (n); ++i)
#define drep(i,n) for (int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define all(x) (x).begin(), (x).end()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define pb push_back
#define sz(x) (int)(x).size()
#define PQ(T) priority_queue<T, v(T), greater<T> >

using namespace std;
typedef long long ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;

const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;

const int mod = 1000000007;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int s = a +  b + c;
    if (s >= 22) cout << "bust" << endl;
    else cout << "win" << endl;
    return 0;
}
#include <algorithm>
#include <iostream>
#include <vector>
#include <queue>
#include <set>
#include <string>
#include <map>
#include <cmath>
#include <cstring>

#define fi first
#define se second
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rrep(i,n) for (int i = 1; i < (n); ++i)
#define drep(i,n) for (int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define all(x) (x).begin(), (x).end()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define pb push_back
#define sz(x) (int)(x).size()
#define PQ(T) priority_queue<T, v(T), greater<T> >

using namespace std;
typedef long long ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;

const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;

const int mod = 1000000007;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    int s = a +  b + c;
    if (s >= 22) cout << "bust" << endl;
    else cout << "win" << endl;
    return 0;
}


Compiler output:
a.cc:72:10: error: redefinition of 'const ll LINF'
   72 | const ll LINF = 1001002003004005006ll;
      |          ^~~~
a.cc:30:10: note: 'const ll LINF' previously defined here
   30 | const ll LINF = 1001002003004005006ll;
      |          ^~~~
a.cc:73:11: error: redefinition of 'const int INF'
   73 | const int INF = 1001001001;
      |           ^~~
a.cc:31:11: note: 'const int INF' previously defined here
   31 | const int INF = 1001001001;
      |           ^~~
a.cc:75:11: error: redefinition of 'const int mod'
   75 | const int mod = 1000000007;
      |           ^~~
a.cc:33:11: note: 'const int mod' previously defined here
   33 | const int mod = 1000000007;
      |           ^~~
a.cc:77:5: error: redefinition of 'int main()'
   77 | int main() {
      |     ^~~~
a.cc:35:5: note: 'int main()' previously defined here
   35 | int main() {
      |     ^~~~
Language: C++

#include <iostream>
#include<iomanip>
#include <map>
#include <algorithm>
#include <vector>
#include <string>
#include <utility>
#include <queue>
#define INF 1e9+7
#define rep(i,n) for(ll i=0;i<n;i++)
#define NO cout<<"NO"<<endl;
#define YES cout<< "YES"<<endl;
#define No cout<< "No"<<endl;
#define Yes cout<< "Yes"<<endl;
#define all(a) a.begin(),a.end()
#define P pair<int,int>
#define space ' '
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;

//(int)'a'は97 (int)'A'は65 (int)'1'は49
//おまじない

const int maxn = 1000000;

　int main(){
    
    int a,b,c;
    cin >> a>>b>>c;
    if(a+b+c>=22){
        cout << "bust"<<endl;
    }else if(a+b+c<=21){
        cout << "win"<<endl;
    }
    
    return 0;
}


Compiler output:
a.cc:27:1: error: extended character 　 is not valid in an identifier
   27 | 　int main(){
      | ^
a.cc:27:1: error: '\U00003000int' does not name a type
   27 | 　int main(){
      | ^~~~~
Language: C++

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

int main() {

long long t = 1;
//cin >> t;
while(t--){
	int a,b,cc;
	cin >> a >> b >> c;
	if(a+b+c >=22) cout <<"bust";
	else cout <<"win";
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'c' was not declared in this scope; did you mean 'cc'?
   10 |         cin >> a >> b >> c;
      |                          ^
      |                          cc
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
# define mod 1000000007
# define INF (1 << 29)
# define MAX_N 1000010
/* ちゃんと考えてわかって実装 */

int main(void){
    int a, b, c;
    cin >> a >> b >> c;
    if(a+b+c >= 22) cout << "bust";
    else cout << "win"
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected ';' before 'return'
   13 |     else cout << "win"
      |                       ^
      |                       ;
   14 |     return 0;
      |     ~~~~~~
Language: C++

#icnclude <bits/stdc++.h>

#define MAXN 100010
#define ll long long
#define mod 1000000007

using namespace std;

int n;
int a, b, c;

int main() {
	cin >> a>> b >> c;
	if (a + b + c >= 22) cout << "bust\n";
	else cout << "win\n";
	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnclude; did you mean #include?
    1 | #icnclude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:13:9: error: 'cin' was not declared in this scope
   13 |         cin >> a>> b >> c;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnclude <bits/stdc++.h>
a.cc:14:30: error: 'cout' was not declared in this scope
   14 |         if (a + b + c >= 22) cout << "bust\n";
      |                              ^~~~
a.cc:14:30: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:14: error: 'cout' was not declared in this scope
   15 |         else cout << "win\n";
      |              ^~~~
a.cc:15:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include<vector>
#include<utility>
#include<algorithm>
#include<string>
#include<cstdio>
#include<queue>
#include<functional>
#include <tuple>
#include<iomanip>
#include<stack>
#include<cmath>
#define ll long long
#define N 1000000007
using namespace std;
int main() {
	int a, b, cl; cin >> a >> b >> c;
	if (a + b + c >= 22) cout << "bust" << endl;
	else cout << "win" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:40: error: 'c' was not declared in this scope; did you mean 'cl'?
   17 |         int a, b, cl; cin >> a >> b >> c;
      |                                        ^
      |                                        cl
Language: C++

#include <bits/stdc++.h>
using namespace std;
using lint = long long int;
#define FOR(i, begin, end) for(int i=(begin),i##_end_=(end);i<i##_end_;i++)
#define IFOR(i, begin, end) for(int i=(end)-1,i##_begin_=(begin);i>=i##_begin_;i--)
#define REP(i, n) FOR(i,0,n)
#define IREP(i, n) IFOR(i,0,n)
constexpr int MOD = 1000000007;
int main()
{
    int a1, a2, a3;
    cin >> a1 >> a2 >> a3;
    if(a1+a2+a3 >= 22) {
        cout << "bust" < < endl;
    } else {
        cout << "win" << endl;
    }
}

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

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <string>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <utility>

typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
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;
}

using namespace std;

int main() {
    int A, B, C;
    cin >> A >> B >> C;
    if (A + B + C >= 22) cout << "bust" << endl;
    else cout << "win" << endl;
    return 0;
}


Compiler output:
a.cc:13:9: error: 'pair' does not name a type
   13 | typedef pair<ll, ll> l_l;
      |         ^~~~
a.cc:14:9: error: 'pair' does not name a type
   14 | typedef pair<int, int> i_i;
      |         ^~~~
Language: C++

#include<algorithm>//sort(all(変数),greater<型名>())　で降順に
#include<bits/stdc++.h>
#include<cmath>//切り上げceil(値)
#include<deque>
#include<iomanip>//setprecision(数字)
#include<iostream>
#include<list>
#include<map>
#include<numeric> //xとyの最大公約数は__gcd(x,y),xとyの最小公倍数は(x*y)/__gcd
#include<queue>//priority_queue<型名> 変数：優先度付きキュー　最大値の探索が早い
#include<set>
#include<stack>
#include<string>
#include<vector>
#define rep0(i,n)  for(ll i=0; i<n; i++)
#define rrep0(i,n) for(ll i=n-1; 0<=i; i--)
#define vll vector<ll>
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define INF 1e18
using ll = long long;
using namespace std;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int main(){
  int a,b,c;  cin >> a >> b >> c;
  if(a+b+c =< 21){
    cout <<"win";
  }else{
    cout << "bust";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: expected primary-expression before '<' token
   28 |   if(a+b+c =< 21){
      |             ^
Language: C++

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

const int mod = 998244353;

long long binpow(long long b, int e) {
  long long res = 1;
  while (e) {
    if (e & 1) res *= b, res %= mod;
    e >>= 1;
    b *= b;
    b %= mod;
  }
  return res;
}

long long inv(long long x) {
  return binpow(x, mod - 2);
}

int main() {
  ios::sync_with_stdio(false); cin.tie(0);
  int a, b, c;
  cin >> a >> b >> c
   if (a + b + c >= 22) cout << "bust";
   else cout << "win";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:21: error: expected ';' before 'if'
   24 |   cin >> a >> b >> c
      |                     ^
      |                     ;
   25 |    if (a + b + c >= 22) cout << "bust";
      |    ~~                
a.cc:26:4: error: 'else' without a previous 'if'
   26 |    else cout << "win";
      |    ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
    int a1, b, c;
    cin >> a >> b >> c;

    if(a+b+c >= 22) cout << "bust\n";
    else cout << "win\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'a' was not declared in this scope
    8 |     cin >> a >> b >> c;
      |            ^
Language: C++

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

typedef long long ll;
typedef vector<ll> v1;

typedef vector<vector<ll>> graph;

const ll INF = 1ll << 50;
const ll mod = 1000000007;

ll a[3];

int main(){
    cin >> a[0] >> a[1] >> a[2];
    if(accumulate(a,a+3) >= 22) cout << "bust" << endl;
    else cout << "win" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: no matching function for call to 'accumulate(ll [3], ll*)'
   16 |     if(accumulate(a,a+3) >= 22) cout << "bust" << endl;
      |        ~~~~~~~~~~^~~~~~~
In file included from /usr/include/c++/14/numeric:62,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_numeric.h:134:5: note: candidate: 'template<class _InputIterator, class _Tp> _Tp std::accumulate(_InputIterator, _InputIterator, _Tp)'
  134 |     accumulate(_InputIterator __first, _InputIterator __last, _Tp __init)
      |     ^~~~~~~~~~
/usr/include/c++/14/bits/stl_numeric.h:134:5: note:   candidate expects 3 arguments, 2 provided
/usr/include/c++/14/bits/stl_numeric.h:161:5: note: candidate: 'template<class _InputIterator, class _Tp, class _BinaryOperation> _Tp std::accumulate(_InputIterator, _InputIterator, _Tp, _BinaryOperation)'
  161 |     accumulate(_InputIterator __first, _InputIterator __last, _Tp __init,
      |     ^~~~~~~~~~
/usr/include/c++/14/bits/stl_numeric.h:161:5: note:   candidate expects 4 arguments, 2 provided
Language: C++

#include <bits/stdc++.h>
#pragma once
using namespace std;
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
typedef long double lb;
typedef pair<int,int> P;
const int MOD = 1000000007;
const ll INF = 1e16;
const double EPS = 1e-10;
const double PI = 3.141592653589793;
template<class T> inline bool chmin(T& a, T b){if(a>b){a = b;return 1;}return 0;}
template<class T> inline bool chmax(T& a, T b){if(a<b){a = b;return 1;}return 0;}
const pair<int,int> fd[] = {make_pair(1,0),make_pair(-1,0),make_pair(0,1),make_pair(0,-1)}; 
#define int long long
#define double long double

////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////

signed main(){
  int a, b,c;cin>>a>>b>>c;
  if(a+b+c >= 22)cout < "bust" << endl;
  else cout << "win" << endl;
}

Compiler output:
a.cc:2:9: warning: #pragma once in main file
    2 | #pragma once
      |         ^~~~
a.cc: In function 'int main()':
a.cc:25:32: error: invalid operands of types 'const char [5]' and '<unresolved overloaded function type>' to binary 'operator<<'
   25 |   if(a+b+c >= 22)cout < "bust" << endl;
      |                         ~~~~~~~^~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <ctime>
#include <cassert>
#include <complex>
#include <string>
#include <cstring>
#include <chrono>
#include <random>
#include <queue>
#include <bitset>
#include <stack>
#include <functional>

#define rep(i, n) for(ll i = 0, i##_len = (n); i < i##_len; ++i)
#define repp(i, m, n) for(ll i = m, i##_len = (n); i < i##_len; ++i)
#define reprev(i, n) for(ll i = (n-1LL); i >= 0; --i)
#define all(x) (x).begin(), (x).end()
template <class T> bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
template <class T> bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }
template <class T> T gcd(T a, T b) { return b ? gcd(b, a % b) : a; }
using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair <int,int> P;
typedef long double ld;

int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	cin >> a >> b >> c;
	if (a + b + c > 21) cout << "bust\n";
	else cout << "win\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:16: error: 'a' was not declared in this scope
   42 |         cin >> a >> b >> c;
      |                ^
a.cc:42:21: error: 'b' was not declared in this scope
   42 |         cin >> a >> b >> c;
      |                     ^
a.cc:42:26: error: 'c' was not declared in this scope
   42 |         cin >> a >> b >> c;
      |                          ^
Language: C++

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

#define endl '\n'
#define ALL(a)  (a).begin(),(a).end()
#define ALLR(a)  (a).rbegin(),(a).rend()
#define spa << " " <<
#define test cout<<"test"<<endl;
#define fi first
#define se second
#define MP make_pair
#define PB push_back
#define EB emplace_back
#define rep(i,n,m) for(ll i = (n); i < (ll)(m); i++)
#define rrep(i,n,m) for(ll i = (m) - 1; i >= (ll)(n); i--)
using ll = long long;
using ld = long double;
const ll MOD = 1e9+7;
//const ll MOD = 998244353;
const ll INF = 1e18;
using P = pair<ll, ll>;
template<typename T>
void chmin(T &a,T b){if(a>b)a=b;}
template<typename T>
void chmax(T &a,T b){if(a<b)a=b;}
void pmod(ll &a,ll b){a=(a+b)%MOD;}
void pmod(ll &a,ll b,ll c){a=(b+c)%MOD;}
void qmod(ll &a,ll b){a=(a*b)%MOD;}
void qmod(ll &a,ll b,ll c){a=(b*c)%MOD;}
ll median(ll a,ll b, ll c){return a+b+c-max({a,b,c})-min({a,b,c});}
void ans1(bool x){if(x) cout<<"Yes"<<endl;else cout<<"No"<<endl;}
void ans2(bool x){if(x) cout<<"YES"<<endl;else cout<<"NO"<<endl;}
void ans3(bool x){if(x) cout<<"Yay!"<<endl;else cout<<":("<<endl;}
template<typename T1,typename T2>
void ans(bool x,T1 y,T2 z){if(x)cout<<y<<endl;else cout<<z<<endl;}  
template<typename T>
void debug(vector<vector<T>>&v,ll h,ll w){for(ll i=0;i<h;i++)
{cout<<v[i][0];for(ll j=1;j<w;j++)cout spa v[i][j];cout<<endl;}};
void debug(vector<string>&v,ll h,ll w){for(ll i=0;i<h;i++)
{for(ll j=0;j<w;j++)cout<<v[i][j];cout<<endl;}};
template<typename T>
void debug(vector<T>&v,ll n){if(n!=0)cout<<v[0];
for(ll i=1;i<n;i++)cout spa v[i];cout<<endl;};
template<typename T>
vector<vector<T>>vec(ll x, ll y, T w){
  vector<vector<T>>v(x,vector<T>(y,w));return v;}
ll gcd(ll x,ll y){ll r;while(y!=0&&(r=x%y)!=0){x=y;y=r;}return y==0?x:y;}
vector<ll>dx={1,0,-1,0,1,1,-1,-1};
vector<ll>dy={0,1,0,-1,1,-1,1,-1};
template<typename T>
vector<T> make_v(size_t a,T b){return vector<T>(a,b);}
template<typename... Ts>
auto make_v(size_t a,Ts... ts){
  return vector<decltype(make_v(ts...))>(a,make_v(ts...));
}
ostream &operator<<(ostream &os, pair<ll, ll>&p){
  return os << p.first << " " << p.second;
}  
int main(){
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  //cout<<fixed<<setprecision(10);
  ll res=0,buf=0;
  bool judge = true;
  //ll a;cin>>a;
  //ll a,b;cin>>a>>b;
  ll a,b,c;cin>>a>>b>>c;
  //ll a,b,c,d;cin>>a>>b>>c>>d;
  //string s;cin>>s;
  //cout<<<<endl;
  ans(a+b+c>=22,"bust,"win");
  return 0;
}

Compiler output:
a.cc:71:27: warning: missing terminating " character
   71 |   ans(a+b+c>=22,"bust,"win");
      |                           ^
a.cc:71:27: error: missing terminating " character
   71 |   ans(a+b+c>=22,"bust,"win");
      |                           ^~~
a.cc: In function 'int main()':
a.cc:71:17: error: unable to find string literal operator 'operator""win' with 'const char [6]', 'long unsigned int' arguments
   71 |   ans(a+b+c>=22,"bust,"win");
      |                 ^~~~~~~~~~
Language: C++

a = list(input())
b = a[::-1]
count = 0
for i in range(len(a)):
	if a[i]!=b[i]:
		count += 1
		
print(count//2)

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

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

int main() {
  string s; cin >> s;
  string t = s;
  reverse(t.begin(),t.end());
  int cnt = 0;
  for(int i=0; i<s.length; i++){
    if(s[i] != t[i]) cnt++;
  }
  cout << cnt/2 << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |   for(int i=0; i<s.length; i++){
      |                  ~~^~~~~~
      |                          ()
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
stirng s;
  cin >> s;
  int ans,i,size;
  s=s.size();
  ans=0;
  
  for(i=0;i<s/2;++i)
  {
  if(s.at(i)!=s.at(s-1-i)) ans++;
  }

  cout << ans;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'stirng' was not declared in this scope
    5 | stirng s;
      | ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String s = scn.next();
		String[] list = s.split("");
      	int count = 0;
		for(int i=0; i<a.length; i++){
			if(!(list[i].equals(list[s.length()-1-i]))) count++;
		}
      	System.out.println(count/2);
	}
}

Compiler output:
Main.java:9: error: cannot find symbol
		for(int i=0; i<a.length; i++){
		               ^
  symbol:   variable a
  location: class Main
1 error
Language: C++

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

void fun(char s[],int len)
{
   in n=0,i=0;
int j=len-1;
   while(i<len/2)
   {
       if(s[i]!=str[j])
       {
          n++;
       }
      cout<<n;

}

int main()
{
     char s[100], len;
     cin>>s;
     len=strlen(s);
    fun(s,len);
}

Compiler output:
a.cc: In function 'void fun(char*, int)':
a.cc:6:4: error: 'in' was not declared in this scope; did you mean 'yn'?
    6 |    in n=0,i=0;
      |    ^~
      |    yn
a.cc:8:10: error: 'i' was not declared in this scope
    8 |    while(i<len/2)
      |          ^
a.cc:10:17: error: 'str' was not declared in this scope; did you mean 'std'?
   10 |        if(s[i]!=str[j])
      |                 ^~~
      |                 std
a.cc:12:11: error: 'n' was not declared in this scope
   12 |           n++;
      |           ^
a.cc:14:13: error: 'n' was not declared in this scope
   14 |       cout<<n;
      |             ^
a.cc:18:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 | int main()
      |         ^~
a.cc:18:9: note: remove parentheses to default-initialize a variable
   18 | int main()
      |         ^~
      |         --
a.cc:18:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:19:1: error: a function-definition is not allowed here before '{' token
   19 | {
      | ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main() {
  string S;
  cin >> S;
  int A = S.size();
  int m = A / 2;
  int N = 0;
  int count = 0;
  for(int i = 0;i < M;i++){
    int N = A - i + 1;
    if(S[i] != S[N]){
      count++;
    }
  }
  cout << count << endl;
}


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

#include <iostream>
#include <vector>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <queue>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define all(x) (x).begin(), (x).end()

int main() {
    string s;
    cin>>s;
    int l=s.size(),ans=0;
    rep(i,l/2){
        if(s[i]!=s[n-1-i])ans++;
    }
    cout<<ans;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: 'n' was not declared in this scope
   16 |         if(s[i]!=s[n-1-i])ans++;
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, c) for (int i = 0; i < (int)c; i++)
int main()
{
	string s;
	cin >> s;
	int ans = 0;
	rep(i, s.size()) {
		if(s[i] != s[n - 1 - i]) ans++;
	}
	printf("%d\n", ans / 2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'n' was not declared in this scope
   10 |                 if(s[i] != s[n - 1 - i]) ans++;
      |                              ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <math.h>
#include <map>
#include <iomanip>
#include <stdio.h>
#include <bitset>

typedef long long ll;

constexpr long long INFLL = 1e18;

using namespace std;

int main()
{
    string s;
    cin >> s;
    int count = 0;

    for (int i = 0; i <= s.size(); i++)
    {
        if(s.at(i) != s.at(s.size() - 1 - i){
            count++;
        }
    }

    cout << count << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:45: error: expected ')' before '{' token
   25 |         if(s.at(i) != s.at(s.size() - 1 - i){
      |           ~                                 ^
      |                                             )
a.cc:28:5: error: expected primary-expression before '}' token
   28 |     }
      |     ^
Language: Java

import java.util.*;
 
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String S = sc.next();
		String[] str = S.split("");
		int count=0;
      
		for(int i=0; i<S.length()/2){
			if(!(str[i].equals(str[S.length()-1-i]))){
				count++;
            }
        }
		
		System.out.println(count);
    }
}


Compiler output:
Main.java:10: error: ';' expected
		for(int i=0; i<S.length()/2){
		                           ^
1 error
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <list>
#include <iomanip>
#include <string>
#include <cctype>
#include <cstdio>
#include <cmath>

using namespace std;

int main(){
  string a;
  cin>>a;
  int miss=0;
  for(int i=0;i<a.size()/2;i++){
    if(a[i]!=a[a.size()-1-i]){
      miss++;
    }
  }
  cout<<miss<<endl;
}
  if(a.size%2==0){
    for(int i=0;i<a.size()/2;i++){
      if(a.at(i)!=a.at(a.end()-i)){
        miss++;
      }
    }
  }
  cout<<miss<<endl;
}

Compiler output:
a.cc:24:3: error: expected unqualified-id before 'if'
   24 |   if(a.size%2==0){
      |   ^~
a.cc:31:3: error: 'cout' does not name a type
   31 |   cout<<miss<<endl;
      |   ^~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

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

int main(){
  string s;
  cin >> s;
  int n = s.size();
  int ans = 0;
  rep(i, 0, n/2){
    if(s[i] != s[n-1-i]) ans++;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i, 0, n/2){
      |       ^
a.cc:9:3: error: 'rep' was not declared in this scope
    9 |   rep(i, 0, n/2){
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s; cin>>s; int x=0;
  for(int i=0;i<s.size()/2;i++){
    if(s.at(i)!=s.at(s.size-i-1)) x++;
  }
  cout<<x<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    6 |     if(s.at(i)!=s.at(s.size-i-1)) x++;
      |                      ~~^~~~
      |                            ()
a.cc:8:17: error: expected '}' at end of input
    8 |   cout<<x<<endl;
      |                 ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

int main(){
  string S;
  cin>>S;
  int j=0;
  for(int i=0;i<(S.size()+1)/2){
    if(S[i]!=S[S.size()-1-i])
      j++;
  }
  cout<<j<<endl;
}

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

#include<bits/stdc++.h>
#include<cstdlib>
#include<cmath>
using namespace std;
int main(){
  string S; cin>>S;
  int N=0; // こたえ
  int K=S.size();
  if(K%2==0){
    for(int i=0; i<K/2; i++){
      if(S.at(i)!=S.at(K-i-1)
         N++;
         else continue;
         }
         }
         else {
           for(int i=0; i<(K-1)/2; i++){
              if(S.at(i)!=S.at(K-i-1)
         N++;
         else continue;
                 }
                 }
                 cout<<N<<endl;
                 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: expected ';' before 'N'
   11 |       if(S.at(i)!=S.at(K-i-1)
      |                              ^
      |                              ;
   12 |          N++;
      |          ~                    
a.cc:13:10: error: expected primary-expression before 'else'
   13 |          else continue;
      |          ^~~~
a.cc:12:14: error: expected ')' before 'else'
   12 |          N++;
      |              ^
      |              )
   13 |          else continue;
      |          ~~~~ 
a.cc:11:9: note: to match this '('
   11 |       if(S.at(i)!=S.at(K-i-1)
      |         ^
a.cc:18:38: error: expected ';' before 'N'
   18 |               if(S.at(i)!=S.at(K-i-1)
      |                                      ^
      |                                      ;
   19 |          N++;
      |          ~                            
a.cc:20:10: error: expected primary-expression before 'else'
   20 |          else continue;
      |          ^~~~
a.cc:19:14: error: expected ')' before 'else'
   19 |          N++;
      |              ^
      |              )
   20 |          else continue;
      |          ~~~~ 
a.cc:18:17: note: to match this '('
   18 |               if(S.at(i)!=S.at(K-i-1)
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s;
  cin >> s;
 
  int num=0;
  for(int i=0; i<(s.size()/2); i++){
  if(s[i]!=s[n-1-i]){
    num++;
  }
  }
  
  cout << num << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'n' was not declared in this scope
   10 |   if(s[i]!=s[n-1-i]){
      |              ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
  string a;
  cin>>a;
  int c=a.size();
  int b=0;
  for(int i=0;i<c/2;i++){
    if(a.at(i)!=a.at(c-i-1){
      b++;
    }
  }
  cout<<b<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: expected ')' before '{' token
   10 |     if(a.at(i)!=a.at(c-i-1){
      |       ~                    ^
      |                            )
a.cc:13:3: error: expected primary-expression before '}' token
   13 |   }
      |   ^
Language: C++

int main(){
  string s;
  cin>>s;
  int ans = 0;
  rep(i,s.size()){
    int j = s.size()-i-1;
    if(s[i] != s[j] && i<j) ++ans;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string s;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>s;
      |   ^~~
a.cc:3:8: error: 's' was not declared in this scope
    3 |   cin>>s;
      |        ^
a.cc:5:7: error: 'i' was not declared in this scope
    5 |   rep(i,s.size()){
      |       ^
a.cc:5:3: error: 'rep' was not declared in this scope
    5 |   rep(i,s.size()){
      |   ^~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << ans << endl;
      |   ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int mian() {
  string s; cin>>s;
  ll cnt=0;
  ll n=s.size();
  if(s.size()%2==0) {
    for(int i=0; i<n/2; i++) {
      if(s.at(n/2-1-i)!=s.at(n/2+i)) cnt++;
    }
  }
  else {//0 1 2 3 4 5 6(7)
    for(int i=0; i<n/2; i++) {
      if(s.at(n/2-1-i)==s.at(n/2+1+i)) cnt++;
    }
  }
  cout << cnt;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status