criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.io.InputStream;
2.import java.util.Scanner;
3. 
4.public class Main {
5.	public static void main(String[] args) throws Exception {
6.		InputStream is = System.in;
7.		solve(is);
8.	}
9. 
10.	private static void solve(InputStream is) {
11.		try (Scanner cin = new Scanner(is)) {
12.			int m = cin.nextInt();
13.			int n = cin.nextInt();
14. 
15.			if (m > 8 || n > 8) {
16.				System.out.println(":(");
17.			} else {
18.				System.out.println("Yay!");
19.			}
20.		}
21.	}
22.}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
2.import java.util.Scanner;
^
Main.java:3: error: class, interface, enum, or record expected
3. 
^
Main.java:5: error: illegal start of type
5.	public static void main(String[] args) throws Exception {
^
Main.java:6: error: not a statement
6.		InputStream is = System.in;
^
Main.java:6: error: ';' expected
6.		InputStream is = System.in;
  ^
Main.java:7: error: not a statement
7.		solve(is);
^
Main.java:7: error: ';' expected
7.		solve(is);
  ^
Main.java:8: error: not a statement
8.	}
^
Main.java:8: error: ';' expected
8.	}
  ^
Main.java:9: error: illegal start of type
9. 
^
Main.java:11: error: not a statement
11.		try (Scanner cin = new Scanner(is)) {
^
Main.java:11: error: ';' expected
11.		try (Scanner cin = new Scanner(is)) {
   ^
Main.java:12: error: not a statement
12.			int m = cin.nextInt();
^
Main.java:12: error: ';' expected
12.			int m = cin.nextInt();
   ^
Main.java:13: error: not a statement
13.			int n = cin.nextInt();
^
Main.java:13: error: ';' expected
13.			int n = cin.nextInt();
   ^
Main.java:14: error: not a statement
14. 
^
Main.java:14: error: ';' expected
14. 
   ^
Main.java:16: error: not a statement
16.				System.out.println(":(");
^
Main.java:16: error: ';' expected
16.				System.out.println(":(");
   ^
Main.java:17: error: not a statement
17.			} else {
^
Main.java:17: error: ';' expected
17.			} else {
   ^
Main.java:18: error: not a statement
18.				System.out.println("Yay!");
^
Main.java:18: error: ';' expected
18.				System.out.println("Yay!");
   ^
Main.java:19: error: not a statement
19.			}
^
Main.java:19: error: ';' expected
19.			}
   ^
Main.java:20: error: not a statement
20.		}
^
Main.java:20: error: ';' expected
20.		}
   ^
Main.java:21: error: not a statement
21.	}
^
Main.java:21: error: ';' expected
21.	}
   ^
Main.java:22: error: illegal start of type
22.}
^
31 errors
Language: Java

public class HappyBirthday {
	int cake[] = new int[16];
	public static void main(String args[]){
		boolean message = true;
		int a,b;
		a = Integer.parseInt(args[0]);
		b = Integer.parseInt(args[1]);
		if((a<1) && (a >16)){
			message = false;
		}else if ((b<1) && (b >16)){
			message = false;
		}else if (a<8||b<8){
			message =false;
		}


		if(message){
			System.out.println("Yay!");
		}else{
			System.out.println(":(");
		}
	}

}

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

import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    if(a==b){
      System.out.println("Yay!");
    }else if((a+b < 16)&&(Math.abs(a-b)==1)){
      System.out.println("Yay!");
    }else if((a+b < 15)&&(Math.abs(a-b)==2){
      System.out.println("Yay!")
    }else{
      System.out.println(":(");
    }
  }
}

Compiler output:
Main.java:11: error: ')' expected
    }else if((a+b < 15)&&(Math.abs(a-b)==2){
                                           ^
Main.java:12: error: ';' expected
      System.out.println("Yay!")
                                ^
2 errors
Language: C++

#include<iostream>
int main(){
int a,b;
cin>>a>>b;
if(a<=8&&b<=8){cout<<"Yay!"<<endl;}
else{cout<<":("<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | cin>>a>>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:5:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | if(a<=8&&b<=8){cout<<"Yay!"<<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:5:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 | if(a<=8&&b<=8){cout<<"Yay!"<<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:6:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | else{cout<<":("<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | else{cout<<":("<<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<iostream>
#include<cstdio>
int main()
{
	scanf("%d %d",&a,&b);
	if ((a<9)&&(b<9)) printf("Yay!");
	else printf(":(")
	return 0; 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: 'a' was not declared in this scope
    5 |         scanf("%d %d",&a,&b);
      |                        ^
a.cc:5:27: error: 'b' was not declared in this scope
    5 |         scanf("%d %d",&a,&b);
      |                           ^
a.cc:7:26: error: expected ';' before 'return'
    7 |         else printf(":(")
      |                          ^
      |                          ;
    8 |         return 0;
      |         ~~~~~~
Language: C++

#include <stdio.h>
#include <iostream>
#include <sstream>
using namespace std;
 
int main() {
  int A, B;
  cin >> A;
  cin >> B;
 
  if (A > 8 || B > 8){
    cout << ":(" << endl;
  }else{
    cout << "Yay!" << endl;
  }
 
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:17:12: error: expected '}' at end of input
   17 |   return 0;
      |            ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C

#include<stdio.h>
int main()
{
    int D,N,i,a = 1;

    scanf("%d %d", &D,&N);

    for(i = 0:i < D;i++){
        a = a * 100;
    }

    a = a * N;

    printf("%d",a);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: expected ';' before ':' token
    8 |     for(i = 0:i < D;i++){
      |              ^
      |              ;
main.c:8:24: error: expected ';' before ')' token
    8 |     for(i = 0:i < D;i++){
      |                        ^
      |                        ;
Language: C

#include <stdio.h>
int main(void){
int A,B;
scan("%d",&A);

scan("%d",&B);
if(1<=A&&A<=8&&1<=B&&B<=8){
  printf("Yay!");
}else{
  printf(":(");
}




}


Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 | scan("%d",&A);
      | ^~~~
      | scanf
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(void) 
{
    int A, B;
    vector<int> v;

    cin >> A >> B;

    if (A <= 8 && B <== 8) {
        cout << "Yes";
    }
    else {
        cout << ":(";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected primary-expression before '=' token
   13 |     if (A <= 8 && B <== 8) {
      |                       ^
Language: Java

import java.util.ArrayList;
import java.util.Scanner;
 
public class Main extends Thread implements Runnable {
	public static void main(String[] args) {
 
		Main main = new Main();
		main.run();
	}
		public void run() {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
 
                if(A=<8){
                    if(B=<8){
                        		System.out.println("Yay!");
                                        return ;
                   }
                }
                System.out.println(":(");
		
	}
}

Compiler output:
Main.java:15: error: illegal start of type
                if(A=<8){
                      ^
Main.java:15: error: ';' expected
                if(A=<8){
                       ^
Main.java:16: error: illegal start of type
                    if(B=<8){
                          ^
Main.java:16: error: ';' expected
                    if(B=<8){
                           ^
4 errors
Language: C++

int main() {
        int i , j;
        scanf("%d%d" , &i , &j);
        if(i <= 8 && j < 9){
            printf("Yay!");
            return 0;
        }
        printf(":(");
        
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d%d" , &i , &j);
      |         ^~~~~
a.cc:5:13: error: 'printf' was not declared in this scope
    5 |             printf("Yay!");
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
a.cc:8:9: error: 'printf' was not declared in this scope
    8 |         printf(":(");
      |         ^~~~~~
a.cc:8:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>

int main(void)
{
	int A;
	int B;
	
	scanf("%d",&A);
	scanf("%d",&B);
	
	if(A==1~8||B==1~8)
	{
	    printf("Yay!\n");
	}
	else
	{
	    printf(":(\n");
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected ')' before '~' token
   11 |         if(A==1~8||B==1~8)
      |           ~    ^
      |                )
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Main extends Thread implements Runnable {
	public static void main(String[] args) {

		Main main = new Main();
		main.run();
	}
		public void run() {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

                if(A=<8){
                    if(B=<8){
                        		System.out.println(Yay!);
                                        return ;
                   }
                }

		
	}
}


Compiler output:
Main.java:15: error: illegal start of type
                if(A=<8){
                      ^
Main.java:15: error: ';' expected
                if(A=<8){
                       ^
Main.java:16: error: illegal start of type
                    if(B=<8){
                          ^
Main.java:16: error: ';' expected
                    if(B=<8){
                           ^
Main.java:17: error: ')' or ',' expected
                        		System.out.println(Yay!);
                        		                      ^
5 errors
Language: C++

#include<iostream>
Int main(){
Int a,b;
cin>>a>>b;
if(a<=8&&b<=8){cout<<"Yay!"<<endl;}
else{cout<<":("<<endl;}
}

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

#include <iostream>

int main() {
    int lA, lB;
    std::cin >> lA >> lB;
    std::string lResult;
    bool lJudge;
    if (lA > 8 || lB > 8) {
        lJudge = false;
    } else if (!(lA > 8)) {
        if (lB > 8) {
            lJudge = false;
        } else {
            lJudge = true;
        }
    }
    const auto lResultConverter = [&](bool inJudge) -> std::string {
        if (inJudge) {
            return “Yay!”
        } else {
            return “:(”
        };
    };
    std::cout << lResultConverter(lJudge)  << std::endl;
    return 0;
}

Compiler output:
a.cc:19:20: error: extended character “ is not valid in an identifier
   19 |             return “Yay!”
      |                    ^
a.cc:19:25: error: extended character ” is not valid in an identifier
   19 |             return “Yay!”
      |                         ^
a.cc:21:20: error: extended character “ is not valid in an identifier
   21 |             return “:(”
      |                    ^
a.cc:21:23: error: extended character ” is not valid in an identifier
   21 |             return “:(”
      |                       ^
a.cc: In lambda function:
a.cc:19:20: error: '\U0000201cYay' was not declared in this scope
   19 |             return “Yay!”
      |                    ^~~~
a.cc:19:24: error: expected ';' before '!' token
   19 |             return “Yay!”
      |                        ^
      |                        ;
a.cc:19:25: error: '\U0000201d' was not declared in this scope
   19 |             return “Yay!”
      |                         ^
a.cc:21:20: error: '\U0000201c' was not declared in this scope
   21 |             return “:(”
      |                    ^
a.cc:21:21: error: expected ';' before ':' token
   21 |             return “:(”
      |                     ^
      |                     ;
a.cc:21:21: error: expected primary-expression before ':' token
Language: C

#include<stdio.h>

int main(){
	
	int a,b;
	scanf("%d %d", &a, &b);
	if(a<=8 && b<=8){
		print("Yay!\n");
	}else{
		print(":(\n")
	}
		
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |                 print("Yay!\n");
      |                 ^~~~~
      |                 printf
main.c:10:30: error: expected ';' before '}' token
   10 |                 print(":(\n")
      |                              ^
      |                              ;
   11 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b;
	c=a-b+1;
	if(16%c!=1)
	   cout<<"Yay!";
	else
	   cout<<":("
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before 'return'
   11 |            cout<<":("
      |                      ^
      |                      ;
   12 |         return 0;
      |         ~~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<queue>
#include<deque>
#include<algorithm>
#include<stack>
#incldue<vector>
using namespace std;
int a,b;
int main()
{
	scanf("%d%d",&a,&b);
	if(a>8||b>8)
	{
		printf(":(");
	}
	else printf("Yay!");
	return 0;
}

Compiler output:
a.cc:9:2: error: invalid preprocessing directive #incldue; did you mean #include?
    9 | #incldue<vector>
      |  ^~~~~~~
      |  include
Language: C

#include <stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a<=8&&b<=8){
printf("Yay!");
}else {
printf(":(")
}
}

Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected ';' before '}' token
    8 | printf(":(")
      |             ^
      |             ;
    9 | }
      | ~
Language: C

#include <stdio.h>
int main (void){
  int a, b;

  scanf("%d", &a);
  scanf("%d", &b);

  if(a <= 8 && b <= 8){
    printf("Yay!");
  }else{
    printf(":(");
  }
  


Compiler output:
main.c: In function 'main':
main.c:12:3: error: expected declaration or statement at end of input
   12 |   }
      |   ^
Language: C

#include <stdio.h>
int main(void){
int A,B;
scanf("%d",&A);
scanf("%d",&B);
if(A<=8&&B<=A8){
  printf("Yay!");
}else{
  printf(":()");
}




}


Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'A8' undeclared (first use in this function); did you mean 'A'?
    6 | if(A<=8&&B<=A8){
      |             ^~
      |             A
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	scanf("%d %d", &A, &B)

	if(A <= 8 && B <= 8) printf("Yay!");
	else printf(":(");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:25: error: 'A' undeclared (first use in this function)
    5 |         scanf("%d %d", &A, &B)
      |                         ^
main.c:5:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:29: error: 'B' undeclared (first use in this function)
    5 |         scanf("%d %d", &A, &B)
      |                             ^
main.c:5:31: error: expected ';' before 'if'
    5 |         scanf("%d %d", &A, &B)
      |                               ^
      |                               ;
    6 | 
    7 |         if(A <= 8 && B <= 8) printf("Yay!");
      |         ~~                     
main.c:8:9: error: 'else' without a previous 'if'
    8 |         else printf(":(");
      |         ^~~~
Language: C++

# https://abc100.contest.atcoder.jp/tasks/abc100_a
# A - Happy Birthday!

# A_Happy_Birthday.py

A, B = map(int, input().strip().split(" "))

if A>8 or B>8:
    print(':(')
else:
    print('Yay!')


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #https
    1 | # https://abc100.contest.atcoder.jp/tasks/abc100_a
      |   ^~~~~
a.cc:2:3: error: invalid preprocessing directive #A
    2 | # A - Happy Birthday!
      |   ^
a.cc:4:3: error: invalid preprocessing directive #A_Happy_Birthday
    4 | # A_Happy_Birthday.py
      |   ^~~~~~~~~~~~~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print(':(')
      |           ^~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     print('Yay!')
      |           ^~~~~~
a.cc:6:1: error: 'A' does not name a type
    6 | A, B = map(int, input().strip().split(" "))
      | ^
Language: C++

# if true
int main()
{
    Solve();
    return 0;
}
# endif



namespace
{


    void Solve()
    {
        int A, B;
        std::cin >> A >> B;
        
        if (A <= 8 && B <= 8) std::cout << "Yay!";
        else std::cout << ":(";

    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'Solve' was not declared in this scope
    4 |     Solve();
      |     ^~~~~
a.cc: In function 'void {anonymous}::Solve()':
a.cc:18:14: error: 'cin' is not a member of 'std'
   18 |         std::cin >> A >> B;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | # if true
a.cc:20:36: error: 'cout' is not a member of 'std'
   20 |         if (A <= 8 && B <= 8) std::cout << "Yay!";
      |                                    ^~~~
a.cc:20:36: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:19: error: 'cout' is not a member of 'std'
   21 |         else std::cout << ":(";
      |                   ^~~~
a.cc:21:19: 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;
typedef vector <int> vi;
typedef map<int,int> mii;
typedef pair<int,int> pii;
#define ll long long int
#define pb push_back
#define PI 3.1415926535897932384626
#define boost ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0)
#define MOD 4294967296
#define MAX 100001
#define forn(i,n) for(int i=0;i<n;i++)
#define F first
#define S second
#define mset(x,v) memset(x, v, sizeof(x))
int main()
{   
      boost;
            int a,b;
            cin>>a>>b;
            if(b>a)
            swap(a,b);
            if(a>8)
            {
                  cout<<":(";
                  return 0;
            }
            int d=2*a-1;
            else
            {
                  int unused=d-a;
                  unused+=abs(16-d);
                  if(unused>=b)
                  {
                        cout<<"Yay!"<<endl;
                  }
                  else
                  {
                        cout<<":(";
                  }
            }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:13: error: 'else' without a previous 'if'
   29 |             else
      |             ^~~~
Language: C++

int main() {
	int A, B;

	cin >> A >> B;

	if(A + B <= 16 && A != B && A <= 8 && B <= 8 && A >= 1 && B >= 1)
		cout <<"Yay!"<<endl;
	else cout << ":(" << endl;



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> A >> B;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout <<"Yay!"<<endl;
      |                 ^~~~
a.cc:7:32: error: 'endl' was not declared in this scope
    7 |                 cout <<"Yay!"<<endl;
      |                                ^~~~
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |         else cout << ":(" << endl;
      |              ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |         else cout << ":(" << endl;
      |                              ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<utility>
#include<climits>
#include<cstring>
#include<cmath>
#include<cstdio>
#include<map>

using namespace std;

int main(){
	int a,b;
	cin>>a>>b;
	if(a<=8 && b<=8)
		cout<<"Yay!"
	else
		cout<<":(";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: expected ';' before 'else'
   17 |                 cout<<"Yay!"
      |                             ^
      |                             ;
   18 |         else
      |         ~~~~
Language: C++

import java.util.Scanner;
import java.util.*;

public class Ringo {

    public static void main(String[] args)
    {
        Scanner key = new Scanner(System.in);
        String word = key.nextLine();
        
        StringTokenizer st = new StringTokenizer(word);
        
        int D = Integer.parseInt(st.nextToken());
        int N = Integer.parseInt(st.nextToken());
        int val = 0;
        
        if (D == 0)
        {
            System.out.println(N);
        }
        
        else
        {
            val = (int) (Math.pow(100,D));
        
            System.out.println(N * val);
        }
    }
}

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.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Ringo {
      | ^~~~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <cmath>
#include <set>
#include <map>
#include <string>
#include <numeric>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iterator>
#include <fstream>
#include <cstddef>
#include <cstring>
//#include <chrono> //正確な時間計測のため
using namespace std;

typedef pair<int, int> P;
typedef long long ll;
#define PB push_back
#define rep(i, a) for(int i = 0; i < a; i++)
#define all(v) v.begin(),v.end()
#define FF first
#define SS second
#define mp make_pair
#define INT int_64
#define MOD 998244353
const ll INF = (1<<30);
const ll NEGA=-INF*10000; 

//階乗
ll Kaijou(ll a) {
if (a < 2) return 1;
return a * Kaijou(a - 1)%MOD;
}

//逆元の計算用(pは素数のときb=p-2で逆元)
ll calc(ll a, ll b, ll p) {
	if (b == 0) return 1;
	if (b % 2 == 0) {
		ll d = calc(a, b / 2, p);
		return (d*d) % p;
	}
	else {
		return (a*calc(a, b - 1, p)) % p;
	}
}


//ユークリッドの互除法
ll gcd(ll x, ll y) {
	if (x < y) swap(x, y);
	if (y == 0) return x;
	return gcd(y, x%y);
}

ll CCC(ll all,ll a,ll b,ll c){
  all=Kaijou(all)%MOD;
  a=Kaijou(a);
  b=Kaijou(b);
  c=Kaijou(c);
  ll sita=((a*b)%MOD*c)%MOD;
  return all*calc(sita,MOD-2,MOD)%MOD;
}

 ll ans=INF;

 ll cc[501][501];
 ll D[31][31];
 
 ll pdmin[3];

//再帰なし累乗
ll iPOW(ll x, ll p){
  ll result;
	for(result=1;p!=0;p>>=1)
	{
    if(p&1) result*=x;
	  x*=x;
  }
  return result;
}


int main(){  
 int a,b:
 cin>>a>>b;
 if(a<=8&&b<=8) cout<<"Yay!"<<endl;
 else cout<<":("<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:91:9: error: found ':' in nested-name-specifier, expected '::'
   91 |  int a,b:
      |         ^
      |         ::
a.cc:91:8: error: 'b' has not been declared
   91 |  int a,b:
      |        ^
a.cc:92:5: error: qualified-id in declaration before '>>' token
   92 |  cin>>a>>b;
      |     ^~
a.cc:93:11: error: 'b' was not declared in this scope
   93 |  if(a<=8&&b<=8) cout<<"Yay!"<<endl;
      |           ^
Language: C++

//Date : 16 - 06 - 18  //Author : Rishabh Paul

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

int main() {
	int a ,b;
	cin >> a >> b;
	if(min(a ,b) <= 8)	cout << "Yay!";
	else cout << ":(";
	return 0;
}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #incldue; did you mean #include?
    3 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a >> b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | //Date : 16 - 06 - 18  //Author : Rishabh Paul
a.cc:9:12: error: 'min' was not declared in this scope; did you mean 'main'?
    9 |         if(min(a ,b) <= 8)      cout << "Yay!";
      |            ^~~
      |            main
a.cc:9:33: error: 'cout' was not declared in this scope
    9 |         if(min(a ,b) <= 8)      cout << "Yay!";
      |                                 ^~~~
a.cc:9:33: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:14: error: 'cout' was not declared in this scope
   10 |         else cout << ":(";
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <vector>

using namespace

int main(void) 
{
    int A, B;
    vector<int> v;

    cin >> A >> B;

    if (A <= 8 && B <== 8) {
        cout << "Yes";
    }
    else {
        cout << ":(";
    }
    return 0;
}

Compiler output:
a.cc:6:1: error: expected identifier before 'int'
    6 | int main(void)
      | ^~~
a.cc:4:16: error: expected ';' before 'int'
    4 | using namespace
      |                ^
      |                ;
    5 | 
    6 | int main(void)
      | ~~~             
a.cc: In function 'int main()':
a.cc:9:5: error: 'vector' was not declared in this scope
    9 |     vector<int> v;
      |     ^~~~~~
a.cc:9:5: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:9:12: error: expected primary-expression before 'int'
    9 |     vector<int> v;
      |            ^~~
a.cc:11:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |     cin >> A >> 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:13:23: error: expected primary-expression before '=' token
   13 |     if (A <= 8 && B <== 8) {
      |                       ^
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << "Yes";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         cout << ":(";
      |         ^~~~
      |         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<stdio.h>

void main()
{
	int A, B;
	scanf("%d", &A);
	scanf("%d", &B);

	if (A + B > 16 || A > 8 || B > 8 || A + B < 2)
	{
		printf("\n:(");
	}
	else
	{
		printf("\nYay!");
	}
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
Language: C++

int main(){
    int a,b;
    cin >> a, b;
    string x;
    if(a <= 8 && b <= 8){
        x = 'Yay!';
    }else{
        x = ':(';
    } 

    cout << x;
}

Compiler output:
a.cc:6:13: warning: multi-character character constant [-Wmultichar]
    6 |         x = 'Yay!';
      |             ^~~~~~
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |         x = ':(';
      |             ^~~~
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a, b;
      |     ^~~
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string x;
      |     ^~~~~~
a.cc:6:9: error: 'x' was not declared in this scope
    6 |         x = 'Yay!';
      |         ^
a.cc:8:9: error: 'x' was not declared in this scope
    8 |         x = ':(';
      |         ^
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << x;
      |     ^~~~
a.cc:11:13: error: 'x' was not declared in this scope
   11 |     cout << x;
      |             ^
Language: C++

#include <iostream>


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

	if (a > 8 || b > 8) {
		cout << ":(" << endl;
	}
	else {
		cout << "Yay!" << endl;
	}
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a >> 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:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |                 cout << ":(" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |                 cout << ":(" << 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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |                 cout << "Yay!" << 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:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |                 cout << "Yay!" << 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 <stdio.h>
int main(void){
　int A,B;
　scanf("%d",&A);
　scanf("%d",&B);
　if(A<=8&&B<=8){printf("Yay!");}
　else{printf(":(");}
　return 0;
    
}


Compiler output:
main.c: In function 'main':
main.c:3:1: error: stray '\343' in program
    3 | <U+3000>int A,B;
      | ^~~~~~~~
main.c:4:1: error: stray '\343' in program
    4 | <U+3000>scanf("%d",&A);
      | ^~~~~~~~
main.c:5:1: error: stray '\343' in program
    5 | <U+3000>scanf("%d",&B);
      | ^~~~~~~~
main.c:6:1: error: stray '\343' in program
    6 | <U+3000>if(A<=8&&B<=8){printf("Yay!");}
      | ^~~~~~~~
main.c:7:1: error: stray '\343' in program
    7 | <U+3000>else{printf(":(");}
      | ^~~~~~~~
main.c:8:1: error: stray '\343' in program
    8 | <U+3000>return 0;
      | ^~~~~~~~
Language: C++

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

int main(){
  int A, B;
  cin >> A >> B;
  if (A <= 8 && B <=8){
    cout << "Yay!" << endl;
  else {
    cout << ":(" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected '}' before 'else'
    9 |   else {
      |   ^~~~
a.cc:7:23: note: to match this '{'
    7 |   if (A <= 8 && B <=8){
      |                       ^
Language: C++

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

#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define ROF(i,b,a) for (int i=(b);i>(a);--i)
#define REP(i,n) FOR(i,0,n)
#define PER(i,n) ROF(i,n-1,-1)

typedef int i32;
typedef long long int i64;
typedef unsigned long long int ui64;
typedef float f32;
typedef double f64;
typedef long double f128;


int main(){
    int A,B;
    cin >> A >> B;
    string ans;
    if(max(A,B)>8){
     maransS=7":(";  ~/s/p/A/ABC100 
    }else{
        ans = "Yay!";
    }
    cout << ans;
}

Compiler output:
a.cc:28:37: error: extended character  is not valid in an identifier
   28 |      maransS=7":(";  ~/s/p/A/ABC100 
      |                                     ^
a.cc: In function 'int main()':
a.cc:28:6: error: 'maransS' was not declared in this scope
   28 |      maransS=7":(";  ~/s/p/A/ABC100 
      |      ^~~~~~~
a.cc:28:23: error: expected primary-expression before '/' token
   28 |      maransS=7":(";  ~/s/p/A/ABC100 
      |                       ^
a.cc:28:24: error: 's' was not declared in this scope
   28 |      maransS=7":(";  ~/s/p/A/ABC100 
      |                        ^
a.cc:28:26: error: 'p' was not declared in this scope
   28 |      maransS=7":(";  ~/s/p/A/ABC100 
      |                          ^
a.cc:28:30: error: 'ABC100' was not declared in this scope
   28 |      maransS=7":(";  ~/s/p/A/ABC100 
      |                              ^~~~~~
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();

        if (a <= 8 && b <= 8){
            System.out.println("Yay!");
        } else {
            System.out.println(":(");
        }
    }
}

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 <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
 
int main(){
  int a, b;
  cin >> a >> b;
 
  cout << ((a < 9 && b << 9)? "Yay!": ":(") << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:12:53: error: expected '}' at end of input
   12 |   cout << ((a < 9 && b << 9)? "Yay!": ":(") << endl;
      |                                                     ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^
Language: C++

using System;

namespace atcorder
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            atcorder.Happy_Birthday_.Run();
        }
    }
    public class Happy_Birthday_
    {
        public Happy_Birthday_()
        {
        }
        public static void Run(){
            int A,B;
            string s;
            s = Console.ReadLine();
            A = int.Parse(s.Split(' ')[0]);
            B = int.Parse(s.Split(' ')[1]);
            if (A <= 8 && B <= 8) Console.WriteLine("Yay!");
            else Console.WriteLine(":(");
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:15: error: expected ':' before 'static'
    7 |         public static void Main(string[] args)
      |               ^~~~~~~
      |               :
a.cc:7:33: error: 'string' has not been declared
    7 |         public static void Main(string[] args)
      |                                 ^~~~~~
a.cc:7:42: error: expected ',' or '...' before 'args'
    7 |         public static void Main(string[] args)
      |                                          ^~~~
a.cc:11:6: error: expected ';' after class definition
   11 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void atcorder::MainClass::Main(int*)':
a.cc:9:21: error: expected primary-expression before '.' token
    9 |             atcorder.Happy_Birthday_.Run();
      |                     ^
a.cc: At global scope:
a.cc:12:5: error: expected unqualified-id before 'public'
   12 |     public class Happy_Birthday_
      |     ^~~~~~
Language: Java

  import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
 
        
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        if( a < 9 && b < 9)
            System.out.println("Yay!");
        else
            System.out.println(":(");
    }
}


Compiler output:
Main.java:1: error: illegal character: '\u2028'
??import java.util.*;
^
Main.java:1: error: illegal character: '\u2028'
??import java.util.*;
 ^
Main.java:1: error: class, interface, enum, or record expected
??import java.util.*;
  ^
3 errors
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

int main(){
	int A, B;
	cin >> A >> B;
	if ((A < = 8) & (B <= 8)) {
		count << "Yay!" << endl;
	}
	else {
		count << ":(" << endl;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected primary-expression before '=' token
    9 |         if ((A < = 8) & (B <= 8)) {
      |                  ^
a.cc:10:17: error: 'count' was not declared in this scope
   10 |                 count << "Yay!" << endl;
      |                 ^~~~~
a.cc:13:17: error: 'count' was not declared in this scope
   13 |                 count << ":(" << endl;
      |                 ^~~~~
a.cc:14:10: error: expected '}' at end of input
   14 |         }
      |          ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <iostream>
using namespace std;

int A, B;
int main() {
  cin >> A >> B;
  return (A <= 8 && B <= 8) ? "Yay!" : ":(";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |   return (A <= 8 && B <= 8) ? "Yay!" : ":(";
      |          ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                             |
      |                             const char*
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
#define REP(i, limit) for(int i=0; i< limit; ++i)
#define LINT long long

int main(){
  int A, B;
  cin >> A;
  cin >> B;
1
  if(A<9 && B<9) cout << "Yay!";
  else cout << ":(";


  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected ';' before 'if'
   12 | 1
      |  ^
      |  ;
   13 |   if(A<9 && B<9) cout << "Yay!";
      |   ~~
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else cout << ":(";
      |   ^~~~
Language: Java

import java.util.Scanner;

public class Maiin{
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		scan.close();
		if(A <= 8 && B <= 8) {
			System.out.println("Yay!");
		}else {
			System.out.println(":(");
		}
	}
}

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

#include<cstdio>
using namspace std;
int main() {
  int a, b;
  scanf("%d%d", &a, &b);
  if (a > 8 || b > 8) printf(":(\n");
  else printf("Yay!\n");
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
2using namespace std;
3int main(){
4  int a,b;
5  cin>>a>>b;
6  if(a>8 || b>8 ) cout<<":("<<endl;
7  else cout<<"Yey!"<<endl;
8  return 0;
9}

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2using namespace std;
      | ^~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3int main(){
      | ^~~~
Language: C++


#include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define ull unsigned long long 
#define FF first
#define SS second
#define MOD 1000000007

using namespace std;

int gcd(int a, int b) {
  while (a > 0 && b > 0)
    if (a > b) a %= b;
    else b %= a;
  return a + b;
}

ll modpower(ll x, ll y, ll p) //x^y mod p
{
    ll res = 1;      // Initialize result
 
    x = x % p;  // Update x if it is more than or 
                // equal to p
 
    while (y > 0)
    {
        // If y is odd, multiply x with result
        if (y %2!= 0)
            res = (res*x) % p;
 
        // y must be even now
        y = y/2;
        x = (x*x) % p;  
    }
    return res;
}

int main()
{
	ios_base::sync_with_stdio(false);
	int a,b;
	cin>>a>>b;
	if(a>8 || b>8)
	{
		cout<<":(\n";
	}
	else
	{
		cout<<"Yay!\n";
	}
}

#include <bits/stdc++.h>
#define pb push_back
#define ll long long
#define ull unsigned long long 
#define FF first
#define SS second
#define MOD 1000000007

using namespace std;

int gcd(int a, int b) {
  while (a > 0 && b > 0)
    if (a > b) a %= b;
    else b %= a;
  return a + b;
}

ll modpower(ll x, ll y, ll p) //x^y mod p
{
    ll res = 1;      // Initialize result
 
    x = x % p;  // Update x if it is more than or 
                // equal to p
 
    while (y > 0)
    {
        // If y is odd, multiply x with result
        if (y %2!= 0)
            res = (res*x) % p;
 
        // y must be even now
        y = y/2;
        x = (x*x) % p;  
    }
    return res;
}

int main()
{
	ios_base::sync_with_stdio(false);
	int a,b;
	cin>>a>>b;
	if(a>8 || b>8)
	{
		cout<<":(\n";
	}
	else
	{
		cout<<"Yay!\n";
	}
}


Compiler output:
a.cc:64:5: error: redefinition of 'int gcd(int, int)'
   64 | int gcd(int a, int b) {
      |     ^~~
a.cc:12:5: note: 'int gcd(int, int)' previously defined here
   12 | int gcd(int a, int b) {
      |     ^~~
a.cc:71:4: error: redefinition of 'long long int modpower(long long int, long long int, long long int)'
   71 | ll modpower(ll x, ll y, ll p) //x^y mod p
      |    ^~~~~~~~
a.cc:19:4: note: 'long long int modpower(long long int, long long int, long long int)' previously defined here
   19 | ll modpower(ll x, ll y, ll p) //x^y mod p
      |    ^~~~~~~~
a.cc:91:5: error: redefinition of 'int main()'
   91 | int main()
      |     ^~~~
a.cc:39:5: note: 'int main()' previously defined here
   39 | int main()
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	cin>>A>>B;
	if(A<=8) && (B<=8){
		cout<<"Yey!"<<endl;
	}
	else{
		cout<<":("<<endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'A' was not declared in this scope
    5 |         cin>>A>>B;
      |              ^
a.cc:5:17: error: 'B' was not declared in this scope
    5 |         cin>>A>>B;
      |                 ^
a.cc:6:21: error: expected identifier before '(' token
    6 |         if(A<=8) && (B<=8){
      |                     ^
Language: C++

#include <iostream>

int main()
{
    int a, b;
    cin >> a >> b;
    if (a > 8 || b > 8) cout << ":(";
    else cout << "Yay!";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> a >> 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:7:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     if (a > 8 || b > 8) cout << ":(";
      |                         ^~~~
      |                         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:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     else cout << "Yay!";
      |          ^~~~
      |          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 <stdio.h>
#include <stdint.h>
#include <stdbool.h>

#define max(a,b) ((a > b) ? a : b)
#define min(a,b) ((a < b) ? a : b)
#define abs(a) ((a < 0) ? -(a) : a)

typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;

static inline int ri() {
	int a;
	scanf("%d", &a);
	return a;
}

int main() {
	int a = ri();
	int b = ri();
	
	const char* ptr;
	if (a <= 8 && b <= 8) ptr = "Yay!"
	else ptr = ":("
	
	printf("%s", ptr);
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:43: error: expected ';' before 'else'
   29 |         if (a <= 8 && b <= 8) ptr = "Yay!"
      |                                           ^
      |                                           ;
   30 |         else ptr = ":("
      |         ~~~~
Language: C++

import std.stdio;
import std.string;
import std.conv;

void main()
{
    int[] a = readln.chomp.split.to!(int[]);
    if (a[0] <= 8 && a[1] <= 8) {
        writeln("Yay!");
    }
    else {
        writeln(":(");
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
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 std.string;
      | ^~~~~~
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 std.conv;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: '::main' must return 'int'
    5 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:8: error: structured binding declaration cannot have type 'int'
    7 |     int[] a = readln.chomp.split.to!(int[]);
      |        ^~
a.cc:7:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:8: error: empty structured binding declaration
a.cc:7:11: error: expected initializer before 'a'
    7 |     int[] a = readln.chomp.split.to!(int[]);
      |           ^
a.cc:8:9: error: 'a' was not declared in this scope
    8 |     if (a[0] <= 8 && a[1] <= 8) {
      |         ^
a.cc:9:9: error: 'writeln' was not declared in this scope
    9 |         writeln("Yay!");
      |         ^~~~~~~
a.cc:12:9: error: 'writeln' was not declared in this scope
   12 |         writeln(":(");
      |         ^~~~~~~