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

#include <iostream>
#include <string>
#include <vector>
#include <cstring>

using namespace std;

int main()
{
	string s;
  	int len;
  	int count;
  	cin >> s;
  	len = s.length();
  	count = 0;
  	for (int i = 0; i <= len/2; i++)
    {
    	if (s.at[i] != s.at[len - (i + 1)])
          count++;
    }
 	cout << count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   18 |         if (s.at[i] != s.at[len - (i + 1)])
      |                 ^
a.cc:18:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   18 |         if (s.at[i] != s.at[len - (i + 1)])
      |                            ^
Language: C

#include<stdio.h>
int main()
{
  int A1,A2,A3;
  scanf("%d%d%d",&A1,&A2,&A3);
  wa=A1+A2+A3;
  if(wa>=22){
    printf("bust");
  }
  else{
    printf("win");
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'wa' undeclared (first use in this function)
    6 |   wa=A1+A2+A3;
      |   ^~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

func out(x ...interface{}) {
	fmt.Println(x...)
}

var sc = bufio.NewScanner(os.Stdin)

func getInt() int {
	sc.Scan()
	i, e := strconv.Atoi(sc.Text())
	if e != nil {
		panic(e)
	}
	return i
}

func getString() string {
	sc.Scan()
	return sc.Text()
}

// min, max, asub, absなど基本関数
func max(a, b int) int {
	if a > b {
		return a
	}
	return b
}

func min(a, b int) int {
	if a < b {
		return a
	}
	return b
}

func asub(a, b int) int {
	if a > b {
		return a - b
	}
	return b - a
}

func abs(a int) int {
	if a >= 0 {
		return a
	}
	return -a
}

func main() {
	sc.Split(bufio.ScanWords)

	A1, A2, A3 := getInt(), getInt(), getInt()
	sum := A1 + A2 + A3
	if sum >= 22 {
		out("bust")
	} else {
		out("win")
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
a.cc:10:26: error: expected unqualified-id before ')' token
   10 | func out(x ...interface{}) {
      |                          ^
a.cc:14:1: error: 'var' does not name a type
   14 | var sc = bufio.NewScanner(os.Stdin)
      | ^~~
a.cc:25:1: error: 'func' does not name a type
   25 | func getString() string {
      | ^~~~
a.cc:31:1: error: 'func' does not name a type
   31 | func max(a, b int) int {
      | ^~~~
a.cc:38:1: error: 'func' does not name a type
   38 | func min(a, b int) int {
      | ^~~~
a.cc:45:1: error: 'func' does not name a type
   45 | func asub(a, b int) int {
      | ^~~~
a.cc:52:1: error: 'func' does not name a type
   52 | func abs(a int) int {
      | ^~~~
a.cc:59:1: error: 'func' does not name a type
   59 | func main() {
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout<<"bust"<<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:6:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout<<"bust"<<endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"win"<<enbl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:18: error: 'enbl' was not declared in this scope
    9 |     cout<<"win"<<enbl;
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<int,int>
#define priq priority_queue<int>
#define disup(A,key) distance(A.begin(),upper_bound(ALL(A),(int)(key)))
#define dislow(A,key) distance(A.begin(),lower_bound(ALL(A),(int)(key)))
#define tii tuple<int,int,int>
#define Priq priority_queue<int,vi,greater<int>>
#define pb push_back
#define mp make_pair
#define INF (1ll<<60)
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: In function 'int main()':
a.cc:20:25: error: expected primary-expression before '>' token
   20 |   int A,B,C; cin>>A>>B>>>C;
      |                         ^
Language: C++

#include <iostream>

int main(int argc, char *argv[]) {
  int a, b, c;
  std::cin >> a >> b >> c;
  std::cout << (a + b + c <= 21) ? "win" : "bust" << std::endl;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:51: error: invalid operands of types 'const char [5]' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   std::cout << (a + b + c <= 21) ? "win" : "bust" << std::endl;
      |                                            ~~~~~~~^~~~~~~~~~~~
Language: C++

#include <stdio.h>
int main(void){
    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:7:6: error: 'else' without a previous 'if'
    7 |     }else{
      |      ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected ')' before '{' token
    9 |  if(S.at(i!=S.at(S.size()-i)){
      |    ~                         ^
      |                              )
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a,b,c
    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:5: error: expected initializer before 'cin'
    6 |     cin >> a >> b >> c;
      |     ^~~
a.cc:8:15: error: 'c' was not declared in this scope
    8 |   if (a + b + c > 21){
      |               ^
Language: C++

a, b, c = map(int,input().split())

if a + b + c >= 22:
    print('bust')
else:
    print('win')


Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('bust')
      |           ^~~~~~
a.cc:6:11: 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 <stdio.h>
#include <string.h>

int main(){
    char days[7][3] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
    char day[3];

    scanf("%s", day);

    for(int i = 0; i < 7; i++){
        if(strcmp(day, days[i]) == 0)printf("%d", i+1);
    }


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: initializer-string for 'char [3]' is too long [-fpermissive]
    5 |     char days[7][3] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
      |                        ^~~~~
a.cc:5:31: error: initializer-string for 'char [3]' is too long [-fpermissive]
    5 |     char days[7][3] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
      |                               ^~~~~
a.cc:5:38: error: initializer-string for 'char [3]' is too long [-fpermissive]
    5 |     char days[7][3] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
      |                                      ^~~~~
a.cc:5:45: error: initializer-string for 'char [3]' is too long [-fpermissive]
    5 |     char days[7][3] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
      |                                             ^~~~~
a.cc:5:52: error: initializer-string for 'char [3]' is too long [-fpermissive]
    5 |     char days[7][3] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
      |                                                    ^~~~~
a.cc:5:59: error: initializer-string for 'char [3]' is too long [-fpermissive]
    5 |     char days[7][3] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
      |                                                           ^~~~~
a.cc:5:66: error: initializer-string for 'char [3]' is too long [-fpermissive]
    5 |     char days[7][3] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"};
      |                                                                  ^~~~~
Language: C

#include<stdio.h>
int main()
{
    int A1,A2,A3;
    scanf("%d %d %d",&A1,&A2,&A3);
  if(A1+A2+A3>==22)
    printf("bust");
    else
        printf("Win");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:16: error: expected expression before '=' token
    6 |   if(A1+A2+A3>==22)
      |                ^
Language: C++

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

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

Compiler output:
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'bust' << endl;
      |             ^~~~~~
a.cc:15:13: warning: multi-character character constant [-Wmultichar]
   15 |     cout << 'win' << endl;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:14:10: error: expected '(' before '{' token
   14 |   else if{
      |          ^
      |          (
Language: C++

#include<iostream>
using namespace std;

void main () {
int a1, a2, a3;
cin >> a1 >> a2 >> a3;
cout << (a1+a2+a3 >= 22)  ? "bust" : "win";
return;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main () {
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
    8 | return;
      | ^~~~~~
Language: C

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

return 0;

    
       
   



Compiler output:
main.c: In function 'main':
main.c:15:1: error: expected declaration or statement at end of input
   15 | return 0;
      | ^~~~~~
Language: C++

#include<stdio.h>
int main(void){
    int a=0;
    int b=0;
    int c=0;
    
    scanf("%d""%d""%d",&a,&b,&c);
   
    c=a*b;

   if(a+b+c=<22){
       printf("bust");
   }else
    {
       printf("win");
   }
  
   
    
}

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

import java.util.Scanner;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
    private static InputStream inputStream;
    private static OutputStream outputStream;

    //This constructors enables us to test our application with our own DI streams
    void Autori(final InputStream inputStream, final OutputStream outputStream) {
        Main.inputStream = inputStream;
        Main.outputStream = outputStream;
    }

    public static void main(String[] args) throws IOException {
        validateStreams();

        Scanner scanner = new Scanner(Main.inputStream);
        PrintStream printStream = new PrintStream(outputStream);

        String input;

        input = scanner.next();

        String yummyString = processInput(input);

        printStream.println(yummyString);
    }

    
    private static String processInput(String userInput) {

        return Arrays.stream(userInput.split("-"))
                .map((e) -> e.charAt(0))
                .collect(
                        StringBuilder::new,
                        (sb, i) -> sb.append((char) i),
                        StringBuilder::append)
                .toString();
    }
    private static void validateStreams() {
        if (inputStream == null) {
            inputStream = System.in;
        }

        if (outputStream == null) {
            outputStream = System.out;
        }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStream;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.OutputStream;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.io.PrintStream;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.Arrays;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import java.util.Scanner;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: expected unqualified-id before 'public'
    8 | public class Main {
      | ^~~~~~
Language: C++

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:45: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout << (a1+a2+a3 >= 22)? "bust": "win" << endl;
      |                                       ~~~~~~^~~~~~~
Language: C++

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


// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    std::int a,b,c;
    std::cin >> a>>b>>c;
    if(a+b+c<=21)cout<<"win"<<endl;
    else cout<<"bust"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected unqualified-id before 'int'
    7 |     std::int a,b,c;
      |          ^~~
a.cc:8:17: error: 'a' was not declared in this scope
    8 |     std::cin >> a>>b>>c;
      |                 ^
a.cc:8:20: error: 'b' was not declared in this scope
    8 |     std::cin >> a>>b>>c;
      |                    ^
a.cc:8:23: error: 'c' was not declared in this scope
    8 |     std::cin >> a>>b>>c;
      |                       ^
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"<<ebdl;
  }
  else{
    cout<<"win"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'ebdl' was not declared in this scope
    8 |     cout<<"bust"<<ebdl;
      |                   ^~~~
Language: Java

import java.util.Scanner;

public class Blackjack {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Integer sum = 0 ;
		for (int i=0 ; i<3 ; i++) sum += sc.nextInt();
		if (sum >= 22) System.out.println("bust");
		else System.out.println("win");
	}
}

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

#include<bits/stdc++.h>
using namespace std;
//<<setprecision(20)

#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define rep1(i, n) for (ll i = 1; i <= (ll)(n); i++)
#define INF 1000000000000
#define MOD 1000000007
using ll = long long;
using Graph = vector<vector<int>>;



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: In function 'int main()':
a.cc:18:14: error: 'win' was not declared in this scope; did you mean 'sin'?
   18 |   else cout<<win<<endl;
      |              ^~~
      |              sin
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int ceter = s.length/2;
        int ans = 0;

        for(int i = 0;i < center;i++){
            if(s[i] != s[s.length-1-1])
                ans++;
        }

        System.out.println(ans);
    }
}

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

#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
using ll=long long;
using namespace std;
const auto mod=1e9+7;


int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  
  int a,b,c;cin >> a >>b >>c;
  string ans="win"
  if(a+b+c>=22) ans="bust"  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected ',' or ';' before 'if'
   15 |   if(a+b+c>=22) ans="bust"
      |   ^~
Language: C++

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

int main() {
  vector<int> A(3) ;
  for( int i=0 ; i<3; i++ ){
    cin>> A[i] >> ;
  }
  if ( A[1]+A[2]+A[3] >=22) 
    cout << "burst" <<endl;
  
  else
   
  
  cout << "win" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected primary-expression before ';' token
    7 |     cin>> A[i] >> ;
      |                   ^
Language: C++

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

int main() {
  vector<int> A(3) ;
  for( int=0 ; int<3; i++ ){
    cin>> A[i] >> ;
  }
  if ( A[1]+A[2]+A[3] >=22) 
    cout << "burst" <<endl;
  
  else
   
  
  cout << "win" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected unqualified-id before '=' token
    6 |   for( int=0 ; int<3; i++ ){
      |           ^
a.cc:6:11: error: expected ';' before '=' token
    6 |   for( int=0 ; int<3; i++ ){
      |           ^
      |           ;
a.cc:6:11: error: expected primary-expression before '=' token
a.cc:6:16: error: 'int' is not a template
    6 |   for( int=0 ; int<3; i++ ){
      |                ^~~
a.cc:6:16: error: expected primary-expression before 'int'
a.cc:6:15: error: expected ')' before 'int'
    6 |   for( int=0 ; int<3; i++ ){
      |      ~        ^~~~
      |               )
a.cc:6:16: error: declaration does not declare anything [-fpermissive]
    6 |   for( int=0 ; int<3; i++ ){
      |                ^~~
a.cc:6:23: error: 'i' was not declared in this scope
    6 |   for( int=0 ; int<3; i++ ){
      |                       ^
Language: C

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;

using pint = pair<int, int>;

int N;
vector<vector<pint>> v;

bool judge(int bit) {

	for (int i = 0; i < N; ++i) {
		if (!(bit & (1 << i))) continue;

		for (auto xy : v.at(i)) {
			int x = xy.first;
			int y = xy.second;

			if (y == 1 && !(bit & (1 << x))) return false;

			if (y == 0 && (bit & (1 << x))) return false;
		}
	}
	return true;
}

int main() {
	cin >> N;
	v.resize(N);
	for (int i = 0; i < N; ++i) {
		int A;
		cin >> A;
		v.at(i).resize(A);
		for (int j = 0; j < A; ++j) {
			cin >> v[i][j].first >> v[i][j].second;
			--v[i][j].first;
		}
	}

	int res = 0;
	for (int bit = 0; bit < (1 << N); ++bit) {

		// 矛盾 check
		if (judge(bit)) {

			// bit に含まれる人数を数える
			int count = 0;
			for (int i = 0; i < N; ++i) {
				if (bit & (1 << i)) ++count;
			}
			res = max(res, count);
		}
	}
	cout << res << endl;

}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

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


Compiler output:
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

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

Compiler output:
Main.java:7: error: ')' or ',' expected
    System.out.println(a+b+c < 22 : "win" : "bust");
                                 ^
1 error
Language: C++

#include <bits/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");
  
  else
     printf("win");
}

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

#include <bits/stdc+.h>

using namespace std;

int main()
{
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if((a+b+c)>=2)
      printf("bust");
  
  else
     printf("win");
}

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

#include <stdio.h>
int main(){
  int a1, a2, a3;
  
  scanf("%d %d %d",&a1, &a2, &a3);
  
  if(a1 + a2 + a3 > 22){
    printf('bust');
  }
  
  else {
    printf('win')
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: warning: multi-character character constant [-Wmultichar]
    8 |     printf('bust');
      |            ^~~~~~
main.c:8:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 |     printf('bust');
      |            ^~~~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:12: warning: multi-character character constant [-Wmultichar]
   12 |     printf('win')
      |            ^~~~~
main.c:12:12: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   12 |     printf('win')
      |            ^~~~~
      |            |
      |            int
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:12:18: error: expected ';' before '}' token
   12 |     printf('win')
      |                  ^
      |                  ;
   13 |   }
      |   ~
Language: C++

#iclude <iostream>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude <iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #iclude <iostream>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "bust";
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "win";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << "bust\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "win\n";
      |     ^~~~
      |     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, c;
	cin >> a >> b >> c;
	if (a + b + c > 21);
	cout << "bust";
	else 
	cout << "win";	

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
a.cc:11:24: error: expected '}' at end of input
   11 |         cout << "win";
      |                       ^ 
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C

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


Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d %d %d",&a,&b,&c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includ<stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d %d %d",&a,&b,&c);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("bust");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("win");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includ<stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("bust");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    8 |     printf("win");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iostream>
using namespace std;
int x,y,z;
int main() {
  cin >> x>> y>>z;
  if ((x+y+z) >= 22) {
  cout << "bust";
  }
  else{
   cout << "win";
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vii = vector<vi>;
using in6 = int64_t;
using ind = double;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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

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

#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vii = vector<vi>;
using in6 = int64_t;
using ind = double;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
  int sum = 0;
  rep(i,3) {
    int a;
    cin >> a;
    sum += a;
  }
  cout << sum;
]

Compiler output:
a.cc: In function 'int main()':
a.cc:17:1: error: expected primary-expression before ']' token
   17 | ]
      | ^
a.cc:17:2: error: expected '}' at end of input
   17 | ]
      |  ^
a.cc:9:12: note: to match this '{'
    9 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[110];
char t[110];

int main()
{       
        int total=0;
        for(int i = 0; i<n; i++)
        {
                int a;
                cin >> a;
                total += a;
        }
        if(total <=21)
        {
                cout << "win" << endl;
        }
        else if(total > 22)
        {
                cout <<"bust" << endl;
        }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'n' was not declared in this scope
    9 |         for(int i = 0; i<n; i++)
      |                          ^
Language: Java

import java.util.*;
import java.util.Collections;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int C = sc.nextInt();
    if(A + B + C >= 22){
      System.out.println('bust');
    }else{
      System.out.println('win');
    }
  }
}


Compiler output:
Main.java:11: error: unclosed character literal
      System.out.println('bust');
                         ^
Main.java:11: error: unclosed character literal
      System.out.println('bust');
                              ^
Main.java:11: error: not a statement
      System.out.println('bust');
                           ^
Main.java:13: error: unclosed character literal
      System.out.println('win');
                         ^
Main.java:13: error: unclosed character literal
      System.out.println('win');
                             ^
Main.java:13: error: not a statement
      System.out.println('win');
                           ^
6 errors
Language: C++

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

int main(){

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: expected ';' before '}' token
   16 |   else cout<<"win"
      |                   ^
      |                   ;
   17 | 
   18 | }
      | ~
Language: C++

a,b,c=map(int,input().split())
if a+b+c<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,b,c=map(int,input().split())
      | ^
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    scanner sc = new Scanner(System.in);
    int a1 = sc.nextInt();
    int a2 = sc.nextInt();
    int a3 = sc.nextInt();

    if(a1+a2+a3>=22)
      System.out.println("bust");
    else
      System.out.println("win");
  }
}


Compiler output:
Main.java:5: error: cannot find symbol
    scanner sc = new Scanner(System.in);
    ^
  symbol:   class scanner
  location: class Main
1 error
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    scanner sc = new Scanner(System.in);
    int a1 = sc.nextInt();
    int a2 = sc.nextInt();
    int a3 = sc.nextInt();

    if(a+b+3>=22)
      System.out.println("bust");
    else
      System.out.println("win");
  }
}


Compiler output:
Main.java:5: error: cannot find symbol
    scanner sc = new Scanner(System.in);
    ^
  symbol:   class scanner
  location: class Main
Main.java:10: error: cannot find symbol
    if(a+b+3>=22)
       ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
    if(a+b+3>=22)
         ^
  symbol:   variable b
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a,b,c;
int main(){
  cin>>a>>b>>c;
  cout<<?a+b+c>21:"bust","win"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '?' token
    6 |   cout<<?a+b+c>21:"bust","win"<<endl;
      |         ^
a.cc:6:31: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout<<?a+b+c>21:"bust","win"<<endl;
      |                          ~~~~~^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: invalid types 'int[int]' for array subscript
   10 |     if(a[0]+a[1]+1[2]>=22)
      |                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before '}' token
    8 |         a[i]
      |             ^
      |             ;
    9 |     }
      |     ~        
a.cc:10:19: error: invalid types 'int[int]' for array subscript
   10 |     if(a[0]+a[1]+1[2]>=22)
      |                   ^
Language: C++

(defun main ()
  (let ((a1 (read))
        (a2 (read))
        (a3 (read))
        (ans "bust"))
    (if (<= (+ a1 a2 a3) 21)
        (setf ans "win"))
    (format t "~A~%" (main))))

(main)


Compiler output:
a.cc:1:7: error: expected ')' before 'main'
    1 | (defun main ()
      | ~     ^~~~~
      |       )
Language: C

#include<Stdio.h>
int main(void){
  int A1,A2,A3;
  scanf("%d %d %d",&A1,&A2,&A3);
  if(A1+A2+A3>=22)printf("bust\n");
  else printf("win\n");
  return 0;
}


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

#include<stdio.h.>
main()
{
  int  A1,A2,A3;
  scanf("%d%d%d",&A1,&A2,&A3);

  if(A1+A2+A3>=22){
  printf("bust");
  }
  else{
  printf("win");
  }
  return 0;


}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'cin' was not declared in this scope
    2 |     cin.tie(0);
      |     ^~~
a.cc:3:5: error: 'ios' has not been declared
    3 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:7:19: error: 'cout' was not declared in this scope
    7 |     if(a+b+c>=22) cout<<"bust";
      |                   ^~~~
a.cc:8:10: error: 'cout' was not declared in this scope
    8 |     else cout<<"win";
      |          ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:5: error: 'cin' was not declared in this scope
    2 |     cin.tie(0);
      |     ^~~
a.cc:3:5: error: 'ios' has not been declared
    3 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:7:19: error: 'cout' was not declared in this scope
    7 |     if(a+b+3>=22) cout<<"bust";
      |                   ^~~~
a.cc:8:10: error: 'cout' was not declared in this scope
    8 |     else cout<<"win";
      |          ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	
	char S[101];

	cin >> S;

	int n = strlen(S);

	int count = 0;

	for (int i = 0; i < n; i++)
	{
		if (S[i] != S[n-1-i])
		{
			count++;
		}

	}

	int a = count / 2;

	cout << a;

}

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

#include<iostream>
using namespace std;
int main() {
  int a,b,c;
  if(a+b+c>=22){
    cout << "bust" << endl;
  }
    else(a+b+c<=21){
      cout << "win" << endl;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '{' token
    8 |     else(a+b+c<=21){
      |                    ^
      |                    ;
Language: C

#include<stdio.h>
int main()
{ 
int a1,a2,a3;
scanf("%d%d%d",&a1,&a2,&a3);
if(a1+a2+a3>=22)
{
ptintf("bust\n");}
else{
printf("win\n");}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 | ptintf("bust\n");}
      | ^~~~~~
      | printf
Language: C

#include<stdio.h>
void main(){
int A1,A2,A3,X;
scanf("%d %d %d",&A1,&A2,&A3);
X=A1+A2+A3;
if(X>=22)
    printf("bust");
else
    printf("win");



Compiler output:
main.c: In function 'main':
main.c:9:5: error: expected declaration or statement at end of input
    9 |     printf("win");
      |     ^~~~~~
Language: C

#include<stduo.h>
int main()
{int a,b,c,s;
 scanf("%d %d %d",&a,&b,&c);
s=a+b+c;
if(a,b,c>=0 && a,b,c<=13)
 {if(s>=22) 
      printf("bust\n");
   else
        printf("win\n");
   }
    return 0;
}

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

#include<stdio.h>
int main(){
int A,B,C,D;
scanf("%d%d%d",&A,&B,&C);
D=A+B+C
if(D>=22){
    printf("bust");
    }
else{
    printf("win");
    }
return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ';' before 'if'
    5 | D=A+B+C
      |        ^
      |        ;
    6 | if(D>=22){
      | ~~
Language: C++

#include<bits/stdc++.h>
int main(){
  int a,b,c;
  cin>>a;
  cin>>b;
  cin>>c;
  if(a+b+c>=23) cout<<bust;
  else cout<<win;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a;
      |   ^~~
      |   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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(a+b+c>=23) cout<<bust;
      |                 ^~~~
      |                 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:23: error: 'bust' was not declared in this scope
    7 |   if(a+b+c>=23) cout<<bust;
      |                       ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else cout<<win;
      |        ^~~~
      |        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:14: error: 'win' was not declared in this scope; did you mean 'sin'?
    8 |   else cout<<win;
      |              ^~~
      |              sin
Language: C

#include <stdio.h>

int main()
{
    int A1,A2,A3;

    scanf("%d%d%d",&A1,&A2,&A3);

    int a =A1,A2,A3;
    if(a>=22)
    {
        printf("bust\n&d + %d + %d = %d,so print bust.\n",A1,A2,A3);
    }
    else
    {
        printf("win\n&d + %d + %d = %d,so print win.\n",A1,A2,A3);
    }

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:15: error: redeclaration of 'A2' with no linkage
    9 |     int a =A1,A2,A3;
      |               ^~
main.c:5:12: note: previous declaration of 'A2' with type 'int'
    5 |     int A1,A2,A3;
      |            ^~
main.c:9:18: error: redeclaration of 'A3' with no linkage
    9 |     int a =A1,A2,A3;
      |                  ^~
main.c:5:15: note: previous declaration of 'A3' with type 'int'
    5 |     int A1,A2,A3;
      |               ^~
Language: C++

#include<bits/stc++.h>
using namespace std;
int main(void){
  int a,sum = 0;
  for(int i = 0; i < 3; i++){
	cin >> a;
    sum += a;
  }
  if(sum > 21) cout << "bust" << endl;
  else cout << "win" << endl;
  return 0;
}

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

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

int main() {
  int cards;
  int deal = 3;
  int hand = 0;

  while (deal--) {
    cin >> cards;
    hand+=cards;
  }
  if (hand >= 22) {
    cout << "bust";
  }
  else [
    cout << "win";
  ]
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: warning: capture of variable 'std::cout' with non-automatic storage duration
   17 |     cout << "win";
      |     ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:9: error: expected ',' before '<<' token
   17 |     cout << "win";
      |         ^~~
      |         ,
a.cc:17:10: error: expected identifier before '<<' token
   17 |     cout << "win";
      |          ^~
a.cc:17:18: error: expected ']' before ';' token
   17 |     cout << "win";
      |                  ^
      |                  ]
a.cc: In lambda function:
a.cc:17:18: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:18:3: error: expected primary-expression before ']' token
   18 |   ]
      |   ^
Language: C++

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

int main() {
  int cards;
  int hand = 0;

  while (3--) {
    cin >> cards;
    hand+=cards;
  }
  if (hand >= 22) {
    cout << "bust";
  }
  else [
    cout << "win";
  ]
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: lvalue required as decrement operand
    8 |   while (3--) {
      |          ^
a.cc:16:5: warning: capture of variable 'std::cout' with non-automatic storage duration
   16 |     cout << "win";
      |     ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:9: error: expected ',' before '<<' token
   16 |     cout << "win";
      |         ^~~
      |         ,
a.cc:16:10: error: expected identifier before '<<' token
   16 |     cout << "win";
      |          ^~
a.cc:16:18: error: expected ']' before ';' token
   16 |     cout << "win";
      |                  ^
      |                  ]
a.cc: In lambda function:
a.cc:16:18: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:17:3: error: expected primary-expression before ']' token
   17 |   ]
      |   ^
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: In function 'int main()':
a.cc:9:32: error: expected '}' at end of input
    9 |     else cout << "win" << endl;
      |                                ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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:8:15: error: 'bust' was not declared in this scope
    8 |       cout << bust << endl;
      |               ^~~~
a.cc:10:15: error: 'win' was not declared in this scope
   10 |       cout << win << endl;
      |               ^~~