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

a1, a2, a3 = map(int, input().split()) 
if a1+a2+a3 >= 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: 'a1' does not name a type
    1 | a1, a2, a3 = map(int, input().split())
      | ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |  cin>>m>>n>>b;
      |  ^~~
      |  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";
      |     ^~~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout>>"win";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
    Scanner a1 = new Scanner(System.in);
    int A1 = a1.nextInt();
    Scanner a2 = new Scanner(System.in);
    int A2 = a2.nextInt();
    Scanner a3 = new Scanner(System.in);
    int A3 = a3.nextInt();
    if (A1+A2+A3 >=22){
      System.out.println("bust");
    }else {
      System.out.println("win");
    }
  }
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class Main{
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    2 | public class Main{
      |              ^~~~
Language: Java

import java.util.Scanner;

public class test1 {
    public static void main(String []args){
        int a;
        int b;
        int c;
        Scanner s= new Scanner(System.in);
        a= s.nextInt();
        b= s.nextInt();
        c= s.nextInt();

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
 
  int N;
  int ar[N+2];
  cin>>N;
  memset(ar,0,sizeof(ar));
  int cnt=0;
  while(N--)
  {int h;
   cin>>h;
  for(int i=1;i<=h;i++)
  {cin>>ar[i];
   if(ar[i])
    cnt++;
   
  }
    cout<<cnt;
  
}


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


import java.util.Scanner;

public class Sample {

  public static void main(String[] args) {


    Scanner scanner = new Scanner(System.in);

    int  x = 1 <= x , x <= 13;
    int  y = 1 <= y , y <= 13;
    int  z = 1 <= z , z <= 13;
    int SUM = x + y + z;
    if(SUM <= 21){
        system.out.println("WIN");
    }else{
        system.out.println("bust");
    }

Compiler output:
Main.java:11: error: ';' expected
    int  x = 1 <= x , x <= 13;
                       ^
Main.java:12: error: ';' expected
    int  y = 1 <= y , y <= 13;
                       ^
Main.java:13: error: ';' expected
    int  z = 1 <= z , z <= 13;
                       ^
Main.java:19: error: reached end of file while parsing
    }
     ^
4 errors
Language: Java

import java.util.Scanner;
public class MainClass {
    public static void main(String[] args){
       
        Scanner scan = new Scanner(System.in);
        
        System.out.println("Enter the A B C");
        int a1 = scan.nextInt();
        int a2 = scan.nextInt();
        int a3 = scan.nextInt();
        int sum = a1+ a2 + a3;
        if(sum >= 22){
            System.out.println("bust");
        }else System.out.println("win");
          }
}

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

#include<stdio.h>
using namespace std;
int main(void){
	int a,b,c;
  cin >> a;
  cin >> b;
  cin >> c;
  if(a+b+c < 22){
  	cout >> "win";
  }else{
  	cout >> "bust;"
  }


}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout >> "win";
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout >> "bust;"
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
 
  int N;
  int ar[N+2];
  cin>>N;
  memset(ar,0,sizeof(ar));
  cnt=0;
  while(N--)
  {int h;
   cin>>h;
  for(int i=1;i<=h;i++)
  {cin>>ar[i];
   if(ar[i])
    cnt++;
   
  }
    cout<<cnt;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'cnt' was not declared in this scope; did you mean 'int'?
   10 |   cnt=0;
      |   ^~~
      |   int
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
#define V vector
#define VI vector<int>
#define VVI vector<vector<int>>
#define REP(i,n) for(ll i=0;i<(n);i++)
#define REPR(i,n) for(ll i=n;i>=0;i--)
#define FOR(i,m,n) for(ll i=m;i<n;i++)
#define MOD 1000000007
#define INF 1e9
#define F first
#define S second
#define All(x) (x).begin(),(x).end()
typedef long long ll;
const double PI = acos(-1);
using namespace std;





int main(void){
    int A,B,C,D,X,Y;
    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:27:15: error: 'win' was not declared in this scope; did you mean 'sin'?
   27 |         cout<<win<<endl;
      |               ^~~
      |               sin
Language: C++

#include<iostream>
using namespace std;

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before '<' token
    9 |   if(z=<22)
      |        ^
Language: Java

import java.util.Scanner;

public class test {
    public static void main(String[] args) {

            Scanner put = new Scanner(System.in);

            int a  = put.nextInt();
            int b = put.nextInt();
            int c  = put.nextInt();
            if((a + b + c) >= 22) System.out.println("bust"); 
            else System.out.println("win");

    }
}

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

package blackjack;

import java.util.Scanner;

public class Black_Jack {

    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);
        int A1 = 0, A2 = 0, A3 = 0,result=0;
        A1 = input.nextInt();
        A2 = input.nextInt();
        A3 = input.nextInt();
        
        if (1 <= A1 && A1 <= 13 && 1 <= A2 && A2 <= 13 && 1 <= A3 && A3 <= 13 ) {
            
           result=A1+A2+A3;
            System.out.println(result);
            if(result==22 || result>22){
                System.out.println("bust");
            }
            else{
                System.out.println("win");
            }
            

        }
        else{
            System.out.println("Wrong input.");
        }

    }
}


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

import java.util.Scanner;


    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);
        int A1 = 0, A2 = 0, A3 = 0,result=0;
        A1 = input.nextInt();
        A2 = input.nextInt();
        A3 = input.nextInt();
        
        if (1 <= A1 && A1 <= 13 && 1 <= A2 && A2 <= 13 && 1 <= A3 && A3 <= 13 ) {
            
           result=A1+A2+A3;
            System.out.println(result);
            if(result==22 || result>22){
                System.out.println("bust");
            }
            else{
                System.out.println("win");
            }       

        }
        else{
            System.out.println("Wrong input.");
        }

    
}


Compiler output:
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;
public static void main(String[] args) {
  
           Scanner put = new Scanner(System.in);
       
            int a  = put.nextInt();
            int b = put.nextInt();
            int c  = put.nextInt();
            int sum = a + b + c;
            if(sum >= 22){
                System.out.println("bust");
            }else {
                System.out.println("win");
            }
        
    }

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class Black_Jack {

    public static void main(String[] args) {

        Scanner input = new Scanner(System.in);
        int A1 = 0, A2 = 0, A3 = 0,result=0;
        A1 = input.nextInt();
        A2 = input.nextInt();
        A3 = input.nextInt();
        
        if (1 <= A1 && A1 <= 13 && 1 <= A2 && A2 <= 13 && 1 <= A3 && A3 <= 13 ) {
            
           result=A1+A2+A3;
            System.out.println(result);
            if(result==22 || result>22){
                System.out.println("bust");
            }
            else{
                System.out.println("win");
            }       

        }
        else{
            System.out.println("Wrong input.");
        }

    }
}


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

#include<stdio.h>
using namespace std;

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> a >> b >> c;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:11:6: error: 'cout' was not declared in this scope
   11 |      cout << "bust" << endl;
      |      ^~~~
a.cc:11:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:24: error: 'endl' was not declared in this scope
   11 |      cout << "bust" << endl;
      |                        ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "win" << endl;
      |     ^~~~
a.cc:15:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:22: error: 'endl' was not declared in this scope
   15 |     cout << "win" << endl;
      |                      ^~~~
a.cc:15:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

public static void main(String[] args) {
  
           Scanner put = new Scanner(System.in);
       
            int a  = put.nextInt();
            int b = put.nextInt();
            int c  = put.nextInt();
            int sum = a + b + c;
            if(sum >= 22){
                System.out.println("bust");
            }else {
                System.out.println("win");
            }
        
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

import java.util.Scanner;
public class;Main{
  public static void main(String args[]){
    Scanner a1 = new Scanner(System.in);
    int A1 = a1.nextInt();
    Scanner a2 = new Scanner(System.in);
    int A2 = a2.nextInt();
    Scanner a3 = new Scanner(System.in);
    int A3 = a3.nextInt();
    if (A1+A2+A3 >=22){
      System.out.println("bust");
    }else {
      System.out.println("win");
    }
  }
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class;Main{
      | ^~~~~~
main.c:2:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | public class;Main{
      |                  ^
Language: Java

public static void main(String[] args) {
        Scanner put = new Scanner(System.in);
        if (put.hasNextInt()){
            Integer a  = put.nextInt();
            Integer b = put.nextInt();
            Integer c  = put.nextInt();
            Integer sum = a + b + c;
            if(sum >= 22){
                System.out.println("bust");
            }else {
                System.out.println("win");
            }
            
        }
        
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.io.*;
import java.util.*;
import java.math.*;

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

Compiler output:
Main.java:11: error: incompatible types: String cannot be converted to int
        	sum += sc.next();
        	              ^
1 error
Language: C

#include <stdio.h>

int main(void)
{
    char s[100];
    scanf("%s", s);
    int i;
    
    for(i=0; s[i]!='\0'; ++i);

    int p,q,count;
    
    q=i;
    count = 0;
    
    for(p=0; p = q; p++,q--){
        if(s[p]==s[q]){
            count++;
        }
    }
    
    printf("%d",count):
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:22:23: error: expected ';' before ':' token
   22 |     printf("%d",count):
      |                       ^
      |                       ;
Language: C++

#include<iostream>
using namespace std;

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected primary-expression before ')' token
   13 |   else()
      |        ^
Language: Java

public static void main(String[] args) {
        Scanner put = new Scanner(System.in);
        if (put.hasNextInt()){
            Integer a  = put.nextInt();
            Integer b = put.nextInt();
            Integer c  = put.nextInt();
            Integer sum = a + b + c;
            if(sum < 22){
                System.out.println("win");
            }else {
                System.out.println("bust");
            }
            
        }
        
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<iostream>
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: In function 'int main()':
a.cc:8:27: error: 'bust' was not declared in this scope
    8 |   if(a+b+c >= 22) cout << bust << endl;
      |                           ^~~~
a.cc:9:16: error: 'win' was not declared in this scope
    9 |   else cout << win << endl;
      |                ^~~
Language: C++

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

Compiler output:
a.cc:4:9: warning: multi-character character constant [-Wmultichar]
    4 |   print('bust')
      |         ^~~~~~
a.cc:6:9: 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: Java

import java.util.*;
 
	public static void main() {
      Scanner sc = new Scanner(System.in);
		// 整数の入力
      int A1 = sc.nextInt();
      int A2 = sc.nextInt();
      int A3 = sc.nextInt();
      int sum = A1 + A2 + A3;
      if(sum<=21){
        System.out.println("win");
      }else{
        System.out.println("bust");
      }
    }

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void main() {
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;
class Main;
public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int A1 = scan.nextInt();
  int A2 = scan.nextInt();
  int A3 = scan.nextInt();
  if((A1+A2+A3)<22){
    System.out.println("win");
    System.out.println("bust");
  }
}

Compiler output:
Main.java:2: error: '{' expected
class Main;
          ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
2 errors
Language: C++

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

#define x first
#define y second
#define rs resize
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define rep(i,a,b) for(auto i=(a);i!=(b); ++i)
#define REP(i,n) rep(i,0,n)
#define all(v) (v).begin(), (v).end()

typedef long long ll;
typedef pair<int, int> ii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ii> vii;
template<class T> using min_queue = priority_queue<T, vector<T>, greater<T>>;

template<class T1, class T2>
ostream& operator<<(ostream &out, const pair<T1,T2> &a) { return out << '(' << a.x << ", " << a.y << ')'; }
template<class T1, class T2>
istream& operator>>(istream &in, pair<T1,T2> &a) { return in >> a.x >> a.y; }

const int INF = 2147483647;
const ll LLINF = 9223372036854775807LL;

// lambda-expression: [] (args) -> retType { body }

void run() {
	int n;
	cin >> n;

	vector<int> cnt0(64, 0), cnt1(64, 0);

	while (n--) {
		ll x;
		cin >> x;

		REP(i, 64) {
			if (x & 1)
				cnt0[i]++;
			else
				cnt1[i]++;
			x >>= 1;
		}
	}

	const ll mod = 1e9 + 7;
	ll answer = 0;

	ll p2 = 1LL;
	REP(i, 64) {
		answer += p2 * (cnt0[i] * cnt1[i] % mod)
		answer %= mod;
		p2 = (p2 + p2);
		if (p2 >= mod) p2 -= mod;
	}
	cout << answer << endl;

}

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	cerr << boolalpha;
	(cout << fixed).precision(10);

	run();

	return 0;
}


Compiler output:
a.cc: In function 'void run()':
a.cc:56:57: error: expected ';' before 'answer'
   56 |                 answer += p2 * (cnt0[i] * cnt1[i] % mod)
      |                                                         ^
      |                                                         ;
   57 |                 answer %= mod;
      |                 ~~~~~~
Language: Java

import java.util.Scanner;

public class A {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt(), b = s.nextInt(), c = s.nextInt();
		if (a+b+c > 21) {
			System.out.println("bust");
		}else {
			System.out.println("win");
		}
	}
}


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

 public static void main(String[] args) {
        Scanner put = new Scanner(System.in);
        Integer a  = put.nextInt();
        Integer b = put.nextInt();
        Integer c  = put.nextInt();
        Integer sum = a + b + c;
        if(sum < 22){
            System.out.println("win");
        }else {
            System.out.println("bust");
        }
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
 public static void main(String[] args) {
               ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

void func(int a,int b,int c){
	if (a+b+c>=22){
      return "bust"
    }
  	else {
      return "win"
    }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
void func(int a,int b,int c){
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: ';' expected
      return "bust"
                   ^
Main.java:6: error: ';' expected
      return "win"
                  ^
3 errors
Language: Java

import java.util.Scanner;

public class Solution {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt(), b = s.nextInt(), c = s.nextInt();
		if (a+b+c > 21) {
			System.out.println("bust");
		}else {
			System.out.println("win");
		}
	}

}


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

#include<iostream>

int main(){

  int a1,a2,a3;
  cin>>a1>>a2>>a3;
  int sum=a1+a2+a3;
  
  if(sum<=21){
  	cout<<"win"<<endl;
  }else{
  	cout<<"bust"<<endl;
  }
  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a1>>a2>>a3;
      |   ^~~
      |   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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<"win"<<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:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout<<"win"<<endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         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:12:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout<<"bust"<<endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  int a;
  int b;
  int c;

  if (a+b+c >= 22) {
    cout << "bust" << endl;
  }
  if(a+b+c =< 21){
  cout << "win" << endl;
  }
}


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

import java.util.Scanner;
import java.uitl.io;
class BlackJack
{
public static void main(String args[])
{
  int i,j,k;
  Scanner sc = new Scanner(System.in);
  i = sc.nextInt();
  j = sc.nextInt();
  k = sc.nextInt();
  i = i+j;
  i = i+k;
  if(i>=22)
  {
    System.out.print("bust");
  }
  else
  {
    System.out.print("win");
  }}}

Compiler output:
Main.java:2: error: package java.uitl does not exist
import java.uitl.io;
                ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a[4];
  cin>>a[1]>>a[2]>>a[3];
  b=a[i]+a[2]+a[3];
  if(b>=22)
  	cout<<"bust";
  else
    cout<<"win";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'b' was not declared in this scope
    6 |   b=a[i]+a[2]+a[3];
      |   ^
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   b=a[i]+a[2]+a[3];
      |       ^
Language: C++

#include<iostream>
using namedpace std;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namedpace'
    2 | using namedpace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "win";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

A: a = [int(x) for x in input().split(" ")]
print("bust") if sum(a) >= 22 else print("win")

Compiler output:
a.cc:1:2: error: found ':' in nested-name-specifier, expected '::'
    1 | A: a = [int(x) for x in input().split(" ")]
      |  ^
      |  ::
a.cc:1:1: error: 'A' does not name a type
    1 | A: a = [int(x) for x in input().split(" ")]
      | ^
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args){

        Scanner scanner = new Scanner();
        int a1 = scanner.nextInt();
        int a2 = scanner.nextInt();
        int a3 = scanner.nextInt();
        if(a1 +a2 +a3 >=22)
    
        {
            System.out.print("bust");
        } else
    
        {
            System.out.print("win");
        }
    }
}

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
        Scanner scanner = new Scanner();
                          ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;
public class Blackjack {

	public static void main() {
      Scanner sc = new Scanner(System.in);
		// 整数の入力
      int A1 = sc.nextInt();
      int A2 = sc.nextInt();
      int A3 = sc.nextInt();
      int sum = A1 + A2 + A3;
      if(sum<=21){
        System.out.println(win);
      }else{
        System.out.println(bust);
      }
    }
}


Compiler output:
Main.java:2: error: class Blackjack is public, should be declared in a file named Blackjack.java
public class Blackjack {
       ^
Main.java:12: error: cannot find symbol
        System.out.println(win);
                           ^
  symbol:   variable win
  location: class Blackjack
Main.java:14: error: cannot find symbol
        System.out.println(bust);
                           ^
  symbol:   variable bust
  location: class Blackjack
3 errors
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:5:9: error: expected initializer before '.' token
    5 |   int A1.A2,A3;
      |         ^
a.cc:6:8: error: 'A1' was not declared in this scope
    6 |   cin>>A1>>A2>>A3;
      |        ^~
a.cc:6:12: error: 'A2' was not declared in this scope
    6 |   cin>>A1>>A2>>A3;
      |            ^~
a.cc:6:16: error: 'A3' was not declared in this scope
    6 |   cin>>A1>>A2>>A3;
      |                ^~
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main()
{
    int A[4],i,s=0;
    for(i=1;i<=3;i++){
        scanf("%d",&A[i]);}

    for(i=1;i<=3;i++)
        {
        s=s+A[i];
    }

    if(s>=22)
        cout<<"bust";
    else
        cout<<"win";
    return 0;
}


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

public static void main(String[] args) {
        Scanner put = new Scanner(System.in);
        int a  = put.nextInt();
        int b = put.nextInt();
        int c  = put.nextInt();
        int sum = 0;
        sum = a + b+ c;
   
        if(sum < 22){
            System.out.println("'win'.");
        }else {
            System.out.println("'bust'.");
        }
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;
public class Main{
    public static void main(String[] args){}
    Scanner scanner = new Scanner();
    int a1 = scanner.nextInt();
    int a2 = scanner.nextInt();
    int a3 = scanner.nextInt();
    if( a1 + a2 + a3 >= 22) {
        System.out.print("bust");
    } else {
        System.out.print("win");
    }
}


Compiler output:
Main.java:8: error: illegal start of type
    if( a1 + a2 + a3 >= 22) {
    ^
Main.java:8: error: <identifier> expected
    if( a1 + a2 + a3 >= 22) {
          ^
Main.java:8: error: <identifier> expected
    if( a1 + a2 + a3 >= 22) {
               ^
Main.java:8: error: <identifier> expected
    if( a1 + a2 + a3 >= 22) {
                    ^
Main.java:10: error: illegal start of type
    } else {
      ^
5 errors
Language: C++

#include<iostream>
using namespace std;

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: expected primary-expression before ')' token
   13 |   else()
      |        ^
Language: C++

#include<iostream>
using namespace std;

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

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected '(' before '{' token
   14 |   {
      |   ^
      |   (
Language: C

#include <stdio.h>

int main(){
  int a,b,c;
  scanf("%d %d %d", &a, &b, &c);
  int soma = a+b+c;

  if(soma < 22){
    printf("win\n", );
  }
  else{
    printf("bust\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: expected expression before ')' token
    9 |     printf("win\n", );
      |                     ^
Language: Java

public static void main(String[] args) {
        Scanner put = new Scanner(System.in);
        int a  = put.nextInt();
        int b =  put.nextInt();
        int c  = put.nextInt();
        int sum = 0;
        sum = a + b + c;
   
        if(sum < 22){
            System.out.println("win");
        }
        else {
            System.out.println("bust");
        }
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;
public class Main{
    Scanner scanner = new Scanner();
    int a1 = scanner.nextInt();
    int a2 = scanner.nextInt();
    int a3 = scanner.nextInt();
    if( a1 + a2 + a3 >= 22) {
        System.out.print("bust");
    } else {
        System.out.print("win");
    }
}

Compiler output:
Main.java:7: error: illegal start of type
    if( a1 + a2 + a3 >= 22) {
    ^
Main.java:7: error: <identifier> expected
    if( a1 + a2 + a3 >= 22) {
          ^
Main.java:7: error: <identifier> expected
    if( a1 + a2 + a3 >= 22) {
               ^
Main.java:7: error: <identifier> expected
    if( a1 + a2 + a3 >= 22) {
                    ^
Main.java:9: error: illegal start of type
    } else {
      ^
5 errors
Language: Java

public static void main(String[] args) {
        Scanner put = new Scanner(System.in);
        int a  = put.nextInt();
        int b = put.nextInt();
        int c  = put.nextInt();
        int sum = 0;
        sum = a + b+ c;
   
        if(sum < 22){
            System.out.println("win");
        }else {
            System.out.println("bust");
        }
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "bust";
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "win";
      |     ^~~~
Language: C

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


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

#include<stdio.h>
#include<conio.h>
void main(){
  int A1;
  int A2;
  int A3;
  int result=0;
printf("Enter A1, A2, A3:");
  scanf("%d",&A1);
  scanf("%d",&A2);
  scanf("%d",&A3);
  if((A1>=1&&A1=<13)&&(A2>=1&&A2=<13)&&(A3>=1&&A3>=13)){
  result = A1+A2+A3;}
  if(result>=22){
  printf("bust");}
  else printf("win");
}

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

import java.util.*;

public class test{
	public void main (String args[]){
    	Scanner i = new Scanner(system.in);
    	int a1 = i.nextInt();
      int a2 = i.nextInt();
      int a3 = i.nextInt();
      int total = a1 + a2 + a3;
      
      if ( total >= 22 )
        System.out.println("bust");
      else
        System.out.println("win");
    
    
    }
}

Compiler output:
Main.java:3: error: class test is public, should be declared in a file named test.java
public class test{
       ^
Main.java:5: error: cannot find symbol
    	Scanner i = new Scanner(system.in);
    	                        ^
  symbol:   variable system
  location: class test
2 errors
Language: Java

import java.util.Scanner;
public class main {
  public static void main(String args[]){
    Scanner a1 = new Scanner(System.in);
    int A1 = a1.nextInt();
    Scanner a2 = new Scanner(System.in);
    int A2 = a2.nextInt();
    Scanner a3 = new Scanner(System.in);
    int A3 = a3.nextInt();
    if (A1+A2+A3 >=22){
      System.out.println("bust");
    }else {
      System.out.println("win");
    }
  }
}


Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int A1 = scan.nextInt();
		int A2 = scan.nextInt();
		int A3 = scan.nextInt();
	    int res = A1+A2+A3;
        if(res >= 22){
          System.out.println("bust");
        }
        else{
          System.out.println("win");
        }
	}


Compiler output:
Main.java:15: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.Scanner;
public class Atcoder4 {
  public static void main(String args[]){
    Scanner a1 = new Scanner(System.in);
    int A1 = a1.nextInt();
    Scanner a2 = new Scanner(System.in);
    int A2 = a2.nextInt();
    Scanner a3 = new Scanner(System.in);
    int A3 = a3.nextInt();
    if (A1+A2+A3 >=22){
      System.out.println("bust");
    }else {
      System.out.println("win");
    }
  }
}


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

#include<bits\stdc++.h>
using namespace std;
int main()
{
    int A1,A2,A3,s;
    cin>>A1>>A2>>A3;
    s=A1+A2+A3;
    if(s>=22)
        cout<<"bust";
    else
        cout<<"win";
    return 0;
}

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

#include<stdio.h>
#include<conio.h>
void main(){
  int A1;
  int A2;
  int A3;
  int result=0;
printf("Enter A1, A2, A3:");
  scanf("%d",&A1);
  scanf("%d",&A2);
  scanf("%d",&A3);
  if((A1>1&&A1<13)&&(A2>1&&A2<13)&&(A3>1&&A3>13)){
  result = A1+A2+A3;}
  if(result>=22){
  printf("bust");}
  else printf("win");
}

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

import java.util.Scanner;
public class Main{
    Scanner scanner = new Scanner();
    int a1 = scanner.nextInt();
    int a2 = scanner.nextInt();
    int a3 = scanner.nextInt();
    if(a1+a2+a3 >=22) {
        System.out.print("bust");
    } else {
        System.out.print("win");
    }
}

Compiler output:
Main.java:7: error: illegal start of type
    if(a1+a2+a3 >=22) {
    ^
Main.java:7: error: <identifier> expected
    if(a1+a2+a3 >=22) {
         ^
Main.java:7: error: <identifier> expected
    if(a1+a2+a3 >=22) {
            ^
Main.java:7: error: <identifier> expected
    if(a1+a2+a3 >=22) {
               ^
Main.java:9: error: illegal start of type
    } else {
      ^
5 errors
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] aegs){
    	Scanner sc = new Scanner(System.in);
    	int sum = sc.nextInt() + sc.nextInt() + sc.nextInt();
      	if(sum >= 22)
          	System.out.println("bust");
      	else
        	System.out.println("win);
      	sc.close();
    }
}

Compiler output:
Main.java:9: error: unclosed string literal
        	System.out.println("win);
        	                   ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int A1 = scan.nextInt();
		int A2 = scan.nextInt();
		int A3 = scan.nextInt();
	    int res = a+b+c;
        if(res >= 22){
          System.out.println("bust");
        }
        else{
          System.out.println("win");
        }
	}

Compiler output:
Main.java:15: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

class Main{
	public static void main(String[] aegs){
    	Scanner sc = new Scanner(System.in);
    	int sum = sc.nextInt() + sc.nextInt() + sc.nextInt();
      	if(sum >= 22)
          	System.out.println("bust");
      	else
        	System.out.println("win");
      	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: C

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


Compiler output:
main.c: In function 'main':
main.c:6:14: error: 'cin' undeclared (first use in this function)
    6 |   int a,b,c; cin>>a>>b>>c;
      |              ^~~
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:21: error: 'cout' undeclared (first use in this function)
    7 |   if((a+b+c)>=22)   cout<<"bust";
      |                     ^~~~
Language: Java

class Main{
	public static void main(String[] aegs){
    	Scanner sc = new Scanner(System.in);
    	int sum = sc.nextInt() + sc.nextInt() + sc.nextInt();
      	if(sum >= 22)
          	System.out.println("bust");
      	else
        	System.out.println("win);
      	sc.close();
    }
}

Compiler output:
Main.java:8: error: unclosed string literal
        	System.out.println("win);
        	                   ^
1 error
Language: Java

import java.util.*;
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();
	    int res = a+b+c;
        if(res >= 22){
          System.out.println("bust");
        }
        else{
          System.out.println("win");
        }
	}

Compiler output:
Main.java:15: error: reached end of file while parsing
	}
	 ^
1 error
Language: C

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

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

import java.util.Scanner;

public class Task1 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int num1 = s.nextInt();
        int num2 = s.nextInt();
        int num3 = s.nextInt();

        if (num1 + num2 + num3 >= 22){
            System.out.println("bust");
        }
        else {
            System.out.println("win");
        }
    }
}

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

#include<iostream>
using namespace std;
int main(){
int 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:6:19: error: expected ';' before ':' token
    6 |   else cout<<"win":
      |                   ^
      |                   ;
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";
  else cout<<"win";
  return 0;
}


Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main()
      |   ~~~
Language: Java

class main{
	public static void main(String args[]){
      	int res = 0;
    	Scanner inp = new Scanner(System.in);
      	Array a = new Array();
      	for (int i = 0 ; i < 2; i++){
        	a[i] = inp.nextInt();
        }
      	for (i in a){
        	res =+ i;
        }
      	if (res >= 22){
        	System.out.print("burst");
        }
      	else{
        	System.out.print("win");
        }
    }
}

Compiler output:
Main.java:9: error: ';' expected
      	for (i in a){
      	         ^
Main.java:9: error: ';' expected
      	for (i in a){
      	           ^
2 errors
Language: Java

import java.util.Scanner;

public class Task1 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int num1 = s.nextInt();
        int num2 = s.nextInt();
        int num3 = s.nextInt();
        
        if (num1 + num2 + num3 >= 22){
            System.out.println("bust");
        }
        else {
            System.out.println("win");
        }
    }
}

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