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

#include<iostream>

using namespace std;
#define rep(i,n) for(int i = 0; i<(int)(n);i++)
#define rep1(i,n) for(int i = 1; i<(int)(n); i++)

int main (void){

    int a,b;
    int flag = 0;
    int temp = 0; //check
    cin  >> a>>b;

    if((a+ b)>16){
        cout<<":(";
        return 0;
    }

    int array[16];

    rep(i,16){
        array[i] = 0;
    }

    if(a < b){
        int c = a;
        a = b;
        b = c;
    }
    int m = (a-b) * 2 - 1;

    if((16 -(a - b)) < m){
        
        cout<<":(";
        return 0;
    }

    int n = a+b;
   
   "
    rep(i,n){
        if((i % 2) == 0 && a > 0){          //A
            array[i] = 1;
            if(array[i] == temp){
                flag = 1;
               // cout<<i <<"abreak"<<endl;
                break;
            }
            temp = array[i];
            a--;
            //cout<<"a:"<<a<<endl;

        }else if((i % 2 ) == 1 && b > 0){   //B
            array[i] = -1;
            if(array[i] == temp){
                flag = 1;    
               // cout<<i<< "bbreak"<<endl;
                break;
            }
            temp = array[i];
            b--;
          //  cout<<"b:"<<b<<endl;
        }else if((i % 2) == 1 && b <= 0){
            array[i] = 0;
            // cout<< "kittaa";
        }
        
    }
    "
    if(flag == 1){
        cout << ":(";
    }else cout<<"Yay!";

    return 0;
}

Compiler output:
a.cc:40:4: warning: missing terminating " character
   40 |    "
      |    ^
a.cc:40:4: error: missing terminating " character
a.cc:69:5: warning: missing terminating " character
   69 |     "
      |     ^
a.cc:69:5: error: missing terminating " character
Language: C++

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

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a;
  if(a<=8)
    cout<<"Yay!"<<endl;
  else
    cout<<:(<<endl;
}


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

#include <iostream>
#include <cstdlib>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << "Yey!";
      |         ^~~~
      |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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>
#include<conio.h>
#include<iostream>

using namespace std;
int main()
{
	int A, B;
	cin >> A;
	cout << " ";
	cin >> B;
	if (A > 8 || B > 8) {
		cout << " :(" << endl;
	}
	else {
		cout << "Yay!" << endl;

	}
}



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

#include "stdafx.h"
#include<stdio.h>
#include<conio.h>
#include<iostream>

using namespace std;
int main()
{
	int A, B;
	cin >> A;
	cout << " ";
	cin >> B;
	if (A > 8 || B > 8) {
		cout << " :(" << endl;
	}
	else {
		cout << "Yay!" << endl;

	}
}



Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>

using namespace std;

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

    if(a>8||b>8)
    cout<<":("<<endl;

    else cout<<"Yay!"<<endl;


    return 0;
}

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

#include<iostream>
#include<string>
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:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     cout<<'Yay!'
      |           ^~~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     cout<<':('
      |           ^~~~
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before '}' token
    9 |     cout<<'Yay!'
      |                 ^
      |                 ;
   10 |   }else{
      |   ~              
a.cc:11:15: error: expected ';' before '}' token
   11 |     cout<<':('
      |               ^
      |               ;
   12 |   }
      |   ~
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:7:20: error: expected ')' before '{' token
    7 |   if((A<=8)&&(B<=8){
      |     ~              ^
      |                    )
a.cc:12:1: error: expected primary-expression before '}' token
   12 | }
      | ^
Language: C++

A,B = map(int,input().split())
print('Yay!' if A <= 8 and B <= 8 else ':(')


Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('Yay!' if A <= 8 and B <= 8 else ':(')
      |       ^~~~~~
a.cc:2:40: warning: multi-character character constant [-Wmultichar]
    2 | print('Yay!' if A <= 8 and B <= 8 else ':(')
      |                                        ^~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A,B = map(int,input().split())
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
 
long long N, M, a[100009][3], maxn = -(1LL << 60);
 
int main() {
	cin >> N >> M;
	for (int i = 1; i <= N; i++) {
		for (int j = 0; j < 3; j++) cin >> a[i][j];
	}
	for (int i = 0; i < 8; i++) {
		vector<long long>vec;
		for (int j = 1; j <= N; j++) {
			long long S = 0;
			for (int k = 0; k < 3; k++) { if ((i / (1 << k)) % 2 == 0) S += a[j][k]; else S -= a[j][k]; }
			vec.push_back(S);
		}
		sort(vec.begin(), vec.end()); reverse(vec.begin(), vec.end());
		long long ans = 0;
		for (int j = 0; j < M; j++) ans += vec[j];
		maxn = max(maxn, ans);
	}
	cout << maxn << endl;
	return 0;
}
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

long long N, M, a[100009][3], maxn = -(1LL << 60);

int main() {
	cin >> N >> M;
	for (int i = 1; i <= N; i++) {
		for (int j = 0; j < 3; j++) cin >> a[i][j];
	}
	for (int i = 0; i < 8; i++) {
		vector<long long>vec;
		for (int j = 1; j <= N; j++) {
			long long S = 0;
			for (int k = 0; k < 3; k++) { if ((i / (1 << k)) % 2 == 0) S += a[j][k]; else S -= a[j][k]; }
			vec.push_back(S);
		}
		sort(vec.begin(), vec.end()); reverse(vec.begin(), vec.end());
		long long ans = 0;
		for (int j = 0; j < M; j++) ans += vec[j];
		maxn = max(maxn, ans);
	}
	cout << maxn << endl;
	return 0;
}
提出情報

Compiler output:
a.cc:33:11: error: redefinition of 'long long int N'
   33 | long long N, M, a[100009][3], maxn = -(1LL << 60);
      |           ^
a.cc:6:11: note: 'long long int N' previously declared here
    6 | long long N, M, a[100009][3], maxn = -(1LL << 60);
      |           ^
a.cc:33:14: error: redefinition of 'long long int M'
   33 | long long N, M, a[100009][3], maxn = -(1LL << 60);
      |              ^
a.cc:6:14: note: 'long long int M' previously declared here
    6 | long long N, M, a[100009][3], maxn = -(1LL << 60);
      |              ^
a.cc:33:17: error: redefinition of 'long long int a [100009][3]'
   33 | long long N, M, a[100009][3], maxn = -(1LL << 60);
      |                 ^
a.cc:6:17: note: 'long long int a [100009][3]' previously declared here
    6 | long long N, M, a[100009][3], maxn = -(1LL << 60);
      |                 ^
a.cc:33:31: error: redefinition of 'long long int maxn'
   33 | long long N, M, a[100009][3], maxn = -(1LL << 60);
      |                               ^~~~
a.cc:6:31: note: 'long long int maxn' previously defined here
    6 | long long N, M, a[100009][3], maxn = -(1LL << 60);
      |                               ^~~~
a.cc:35:5: error: redefinition of 'int main()'
   35 | int main() {
      |     ^~~~
a.cc:8:5: note: 'int main()' previously defined here
    8 | int main() {
      |     ^~~~
a.cc:55:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   55 | 提出情報
      | ^~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected primary-expression before '>' token
    7 |         if ((8=>a)&&(8=>b)) { cout << "Yay!" << endl; }
      |                ^
a.cc:7:24: error: expected primary-expression before '>' token
    7 |         if ((8=>a)&&(8=>b)) { cout << "Yay!" << endl; }
      |                        ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before '>' token
    7 |         if (8=>a||8=>b) { cout << "Yay!" << endl; }
      |               ^
a.cc:7:21: error: expected primary-expression before '>' token
    7 |         if (8=>a||8=>b) { cout << "Yay!" << endl; }
      |                     ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
int a,b;
int main(){
    cin>>a>>b;
 if(a>8||b>8){
     cout<<":("<<endl;
 }
 else if(abs(a-b)<=2){
    cout<<"Yay!"<<endl;.
 }
 else{
     cout<<":("<<endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected primary-expression before '.' token
   11 |     cout<<"Yay!"<<endl;.
      |                        ^
a.cc:12:2: error: expected unqualified-id before '}' token
   12 |  }
      |  ^
Language: Java

import java.util.Scanner;

public class hpbd {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int i = in.nextInt();
        int j = in.nextInt();

        if(i < 9 && j < 9) {
            System.out.println("Yay!");
        }
        else {
            System.out.println(":(");
        }
    }
}


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

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

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

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

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

#include <stdio.h>
#include <stdlib.h>

int main() {
    int A, B;

scanf("%d" &B);
scanf("%d" &A);

    if((A+B)>16) {
    printf(":(");
    }

    if (A>8 || B>8) {
        printf(":(");
    }
    else printf("Yay!");

    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: invalid operands to binary & (have 'char *' and 'int')
    7 | scanf("%d" &B);
      |       ~~~~ ^
      |       |
      |       char *
main.c:8:12: error: invalid operands to binary & (have 'char *' and 'int')
    8 | scanf("%d" &A);
      |       ~~~~ ^
      |       |
      |       char *
Language: C

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a=0,b=0,c;
     scanf("%d%d",&a,&b);
   
    
    if(a>8 || b >8){
        printf("Yay!")
    }else {
    printf("Yay!");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:23: error: expected ';' before '}' token
   11 |         printf("Yay!")
      |                       ^
      |                       ;
   12 |     }else {
      |     ~
Language: C++

#include <bits/stdc++.h>
 
#define FOR(i, a, b) for(int i=(a);i<(b);++i)
#define rep(i, n)  for(int i=0;i<(n);++i)
#define REPr(i, n) for(int i=(n)-1;i>=0; --i)
#define FORq(i, m, n) for(int i = (m);i <= (n);++i)
#define FORqr(i, m, n) for(int i = (n);i >=(m);--i)
#define PB push_back
#define MP make_pair
#define DEBUG printf("%s\n","debug")
#define fst first
#define snd second
#define SIN(x, S) (S.count(x) != 0)
#define M0(x) memset(x,0,sizeof(x))
#define FILL(x, y) memset(x,y,sizeof(x))
#define MM(x) memset(x,-1,sizeof(x))
#define ALL(x) (x).begin(),(x).end()
using namespace std;
typedef pair<int, int> PII;
typedef pair<long long, long long> PLL;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<long long> VL;
typedef long long ll;
typedef long long integer;
///////////////////////////////////////////////
/* (๑╹◡╹) */
ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; }
ll MOD = 1000000007;
template<class T>
inline bool chmin(T &a, T b) {
	if (a > b) {
		a = b;
		return true;
	}
	return false;
}
 /* (๑╹◡╹)(๑╹◡╹)(๑╹◡╹)*/
template<class T>
inline bool chmax(T &a, T b) {
	if (a < b) {
		a = b;
		return true;
	}
	return false;
}
/* (๑╹◡╹)(๑╹◡╹)(๑╹◡╹)(๑╹◡╹)(๑╹◡╹)(๑╹◡╹) */
///////////////////////////////////////////////
const int MAX = 510000;

long long fac[MAX], finv[MAX], inv[MAX];

// テーブルを作る前処理
void COMinit() {
    fac[0] = fac[1] = 1;
    finv[0] = finv[1] = 1;
    inv[1] = 1;
    for (int i = 2; i < MAX; i++){
        fac[i] = fac[i - 1] * i % MOD;
        inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
        finv[i] = finv[i - 1] * inv[i] % MOD;
    }
}

// 二項係数計算
long long COM(int n, int k){
    if (n < k) return 0;
    if (n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
 



int main() {
	int ans = 0;
	int A,B; cin >> A >> B;
	string s = "Yay!"
	if(A>8 or B>8){s = ":("}



	cout << s << endl;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:79:9: error: expected ',' or ';' before 'if'
   79 |         if(A>8 or B>8){s = ":("}
      |         ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'cout'
   10 |   else ans=":("
      |                ^
      |                ;
   11 | 
   12 |   cout <<ans<< endl;
      |   ~~~~
Language: C++

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

int main(void){
  int a, b; cin >> a >> b;
  if(a >= 9 || b = 9) cout << ":(" << endl;
  else cout << "Yay!" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: lvalue required as left operand of assignment
    6 |   if(a >= 9 || b = 9) cout << ":(" << endl;
      |      ~~~~~~~^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A,B;
  cin >> A >>B;
  if (A <= 8 || B <== 8){
  cout << "Yay!";
  }else{
  cout << ":(";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '=' token
    7 |   if (A <= 8 || B <== 8){
      |                     ^
Language: C++

#include<iostream>
#include<math.h>
#include <algorithm>
#include<float.h>
#include <limits>
#include <vector> 
#include <numeric>
#include <string.h>

#define rep(i,a,n) for(ll int (i) = (a);(i) < (n);(i)++)
#define urep(i,a,n) for(ll int (i) = (a);(i) > (n);(i)--)
#define MOD 1000000007
#define ll long long

using namespace::std;

int jo(ll int jxo, ll int jyo){
	ll int jhogeo = 1;
	rep(jinto,0,jyo) jhogeo=jhogeo*jxo;
	return jhogeo;
}
char tobig(char toxbig){
  return (toxbig-0x20);
}
char tolow(char toxlow){
  return (toxlow+0x20);
}
  


int main(){
  int a,b;
  cin>>a>>b;
  if(a<9&&b<9) ccout<<"Yay!";
  else cout<<":(";
}
// int *p = new int[N];

//  vector<int> 変数名(要素数);
//  sort(変数名.begin(),変数名.end());//昇順ソート

// vector<vector<int>> 変数名(左の個数, vector<int>(右の個数));

//


Compiler output:
a.cc: In function 'int main()':
a.cc:34:16: error: 'ccout' was not declared in this scope
   34 |   if(a<9&&b<9) ccout<<"Yay!";
      |                ^~~~~
Language: C++

class Main{
  public static void main(String arts[]) {
    int A, B 
      A = 1, B = 1
      while (A <= 8, B <=8) {
        System.out.print("Yay!")
          A++;
          B++;
      }
      else {
        System.out.print(":(")
          A++;
          B++;
      }
  }
}

Compiler output:
a.cc:2:9: error: expected ':' before 'static'
    2 |   public static void main(String arts[]) {
      |         ^~~~~~~
      |         :
a.cc:2:27: error: 'String' has not been declared
    2 |   public static void main(String arts[]) {
      |                           ^~~~~~
a.cc:16:2: error: expected ';' after class definition
   16 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:7: error: expected initializer before 'A'
    4 |       A = 1, B = 1
      |       ^
a.cc:10:7: error: 'else' without a previous 'if'
   10 |       else {
      |       ^~~~
a.cc:11:9: error: 'System' was not declared in this scope
   11 |         System.out.print(":(")
      |         ^~~~~~
a.cc:13:11: error: 'B' was not declared in this scope
   13 |           B++;
      |           ^
Language: C++

class Main {
  public static void main(String arts[]) {
      int A,B;
      A = 1;
      B = 1;
      while (A <= 8, B<=8) {
        System.out.print ("Yay!");
        A++;
        B++;
      else {
        System.out.print(":(");
        A++;
        B++;
      }
      }
  }
}


Compiler output:
a.cc:2:9: error: expected ':' before 'static'
    2 |   public static void main(String arts[]) {
      |         ^~~~~~~
      |         :
a.cc:2:27: error: 'String' has not been declared
    2 |   public static void main(String arts[]) {
      |                           ^~~~~~
a.cc:17:2: error: expected ';' after class definition
   17 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:9: error: 'System' was not declared in this scope
    7 |         System.out.print ("Yay!");
      |         ^~~~~~
a.cc:10:7: error: 'else' without a previous 'if'
   10 |       else {
      |       ^~~~
Language: Java

import java.util.*;

public class problem1{
  public static void main(String args[]) {
    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:3: error: class problem1 is public, should be declared in a file named problem1.java
public class problem1{
       ^
1 error
Language: Java

import java.util.scanner;

public class Problem1 {
  static void main (String arts[]){
    int A,B;
    int A = 0;
    int B = 0;

    1<=A,A<=16,1<=B,B<=16;
    A+B<=16;
    
    if (A<=8,B<=8){
      System.out.print("Yay!");
    } else if (A>9,B>9){
      System.out.print(":(");
    }
  }
}

      
  

Compiler output:
Main.java:9: error: not a statement
    1<=A,A<=16,1<=B,B<=16;
     ^
Main.java:9: error: ';' expected
    1<=A,A<=16,1<=B,B<=16;
        ^
Main.java:9: error: not a statement
    1<=A,A<=16,1<=B,B<=16;
          ^
Main.java:9: error: ';' expected
    1<=A,A<=16,1<=B,B<=16;
              ^
Main.java:9: error: not a statement
    1<=A,A<=16,1<=B,B<=16;
                  ^
Main.java:9: error: ';' expected
    1<=A,A<=16,1<=B,B<=16;
                   ^
Main.java:9: error: not a statement
    1<=A,A<=16,1<=B,B<=16;
                     ^
Main.java:10: error: not a statement
    A+B<=16;
       ^
Main.java:12: error: ')' expected
    if (A<=8,B<=8){
            ^
Main.java:12: error: not a statement
    if (A<=8,B<=8){
              ^
Main.java:12: error: ';' expected
    if (A<=8,B<=8){
                 ^
Main.java:14: error: ')' expected
    } else if (A>9,B>9){
                  ^
Main.java:14: error: 'else' without 'if'
    } else if (A>9,B>9){
      ^
Main.java:14: error: not a statement
    } else if (A>9,B>9){
                    ^
Main.java:14: error: ';' expected
    } else if (A>9,B>9){
                      ^
15 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before '}' token
    9 |         cout << "Yay!"
      |                       ^
      |                       ;
   10 |     }else{
      |     ~                  
a.cc:11:21: error: expected ';' before '}' token
   11 |         cout << ":("
      |                     ^
      |                     ;
   12 |     }
      |     ~
Language: C

#include<stdio.h>

int main(){
    int A,B;
    scanf("%d%d",A,B);
    if(A<B){
        if(16-A-B<B/2-A/2){
            printf("Yay!");
        }else{
            printf(":(";
        }
     if(A>B){
        if(16-A-B<A/2-B/2){
            printf("Yay!");
        }else{
            printf(":(");
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:24: error: expected ')' before ';' token
   10 |             printf(":(";
      |                   ~    ^
      |                        )
main.c:10:25: error: expected ';' before '}' token
   10 |             printf(":(";
      |                         ^
      |                         ;
   11 |         }
      |         ~                
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(){
    int A,B;
    scanf("%d%d",A,B);
    if(A<B){
        if(16-A-B<B/2-A/2){
            printf("Yay!");
        }else{
            printf(":(";
        }
     if(A>B){
        if(16-A-B<A/2-B/2){
            printf("Yay!");
        }else{
            printf(":(";
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:24: error: expected ')' before ';' token
   10 |             printf(":(";
      |                   ~    ^
      |                        )
main.c:10:25: error: expected ';' before '}' token
   10 |             printf(":(";
      |                         ^
      |                         ;
   11 |         }
      |         ~                
main.c:16:24: error: expected ')' before ';' token
   16 |             printf(":(";
      |                   ~    ^
      |                        )
main.c:16:25: error: expected ';' before '}' token
   16 |             printf(":(";
      |                         ^
      |                         ;
   17 |         }
      |         ~                
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include<stdio.h>

int main(){
    int A,B;
    int X=|A-B|;
    scanf("%d%d",A,B);
    if(A<B){
        if(16-A-B<B/2-A/2){
            printf("Yay!");
        }else{
            printf(":(";
        }
     if(A>B){
        if(16-A-B<A/2-B/2){
            printf("Yay!");
        }else{
            printf(":(";
        }
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected expression before '|' token
    5 |     int X=|A-B|;
      |           ^
main.c:11:24: error: expected ')' before ';' token
   11 |             printf(":(";
      |                   ~    ^
      |                        )
main.c:11:25: error: expected ';' before '}' token
   11 |             printf(":(";
      |                         ^
      |                         ;
   12 |         }
      |         ~                
main.c:17:24: error: expected ')' before ';' token
   17 |             printf(":(";
      |                   ~    ^
      |                        )
main.c:17:25: error: expected ';' before '}' token
   17 |             printf(":(";
      |                         ^
      |                         ;
   18 |         }
      |         ~                
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include<stdio.h>

int main(){
    int A,B;
    int X=|A-B|;
    scanf("%d%d",A,B);
    if(16-A+B<X){
        printf(":(");
    }else{
        printf("Yay!");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: expected expression before '|' token
    5 |     int X=|A-B|;
      |           ^
Language: C

#include<stdio.h>

int main(){
    int A,B;
    scanf("%d%d",A,B);
    if(16-A+B<|A-B|){
        printf(":(");
    }else{
        printf("Yay!");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '|' token
    6 |     if(16-A+B<|A-B|){
      |               ^
Language: C++

\#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
const ll MOD = 1e9+7;

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

  if(a>8 || b>8) puts(":(");
  else puts("Yay!");

  return 0;
}

Compiler output:
a.cc:1:1: error: stray '\' in program
    1 | \#include<bits/stdc++.h>
      | ^
a.cc:1:2: error: stray '#' in program
    1 | \#include<bits/stdc++.h>
      |  ^
a.cc:1:3: error: 'include' does not name a type
    1 | \#include<bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin >> a >> b;
      |   ^~~
a.cc:12:18: error: 'puts' was not declared in this scope
   12 |   if(a>8 || b>8) puts(":(");
      |                  ^~~~
a.cc:13:8: error: 'puts' was not declared in this scope
   13 |   else puts("Yay!");
      |        ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll INF = 1LL << 60;
const ll MOD = 1e9+7;

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

  if(a>8 || b>8) puts(":)");
  else puts("Yay!")

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before 'return'
   13 |   else puts("Yay!")
      |                    ^
      |                    ;
   14 | 
   15 |   return 0;
      |   ~~~~~~
Language: C++

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

int main(){
    int a, b; cin >> a >> b;
    string ans = "Yay!"
    if(a > 8 || b > 8) ans = ":(";
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
    8 |     if(a > 8 || b > 8) ans = ":(";
      |     ^~
Language: C

// Author : MohamedSameh
#include <bits/stdc++.h>
typedef long long ll ;
#define pb push_back
#define f first
#define s second
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
#define SZ(a) (int)a.size()
#define IN(n) scanf("%d" , &n )
void fo (){fflush(stdout);}
using namespace std;
int main ()
{

int a , b ;
cin >> a >> b ;
if (max (a , b ) <= 8 )
{
  cout <<"Yay!\n";
}else
cout <<":(\n"; 
//  cerr << 1000 * clock() / CLOCKS_PER_SEC << "ms\n";
  return 0;
}


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

import java.util.Scanner ;
public class JavaApplication7 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        int a , b ;
        Scanner in = new Scanner(System.in); 
        a = in.nextInt(); 
        b = in.nextInt(); 
        if (a <= b )
            a = b ; 
        if (a <= 8 )
            System.out.println("Yay!");
        else 
            System.out.println(":(\n");
    }
    
}


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

#include <stdio.h>
const int N = 2e7 + 5;

int main() {
    int a = D(), b = D();
    int turn = 1;
    for(int i = 1; i <= 16; ++i){
        if(turn && a)
            a-= 1;
        if(!turn && b)
            b-= 1;
        turn ^= 1;
    }
    puts(!a && !b ? "Yay!": ":(");
}


Compiler output:
main.c: In function 'main':
main.c:5:13: error: implicit declaration of function 'D' [-Wimplicit-function-declaration]
    5 |     int a = D(), b = D();
      |             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	if(max(a,b)>8)
		cout<<":(";
	else
		cout<<"Yay!";
	return 0;


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

#include<bits/stdc++.h>
usig namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	if(max(a,b)>8)
		cout<<"Yay!";
	else
		cout<<":(";
	return 0;
}

Compiler output:
a.cc:2:1: error: 'usig' does not name a type
    2 | usig namespace std;
      | ^~~~
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:12: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |         if(max(a,b)>8)
      |            ^~~
      |            std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |                 cout<<"Yay!";
      |                 ^~~~
      |                 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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |                 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<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
if((a<=8)&&(b<=08))
 cout<<"Yay!";
else
cout<<":-(";
return 0;
}

Compiler output:
a.cc:7:16: error: invalid digit "8" in octal constant
    7 | if((a<=8)&&(b<=08))
      |                ^~
Language: C++

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'intA' was not declared in this scope; did you mean 'int'?
    5 | intA,B;
      | ^~~~
      | int
a.cc:5:6: error: 'B' was not declared in this scope
    5 | intA,B;
      |      ^
a.cc:6:9: error: 'A' was not declared in this scope
    6 |   cin >>A>>B;
      |         ^
Language: C++

#include <iostream>

using namespace std;

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

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

#include<bits/stdc++.h>
using namespace std;
typedef unsigned long long int ll;
const int INF = 1<<30;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before '}' token
    8 |   cout<<(a<=8&&b<=8?"Yay!":":(")
      |                                 ^
      |                                 ;
    9 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int a, b;
  cin>>a>>b;
  if (a>8||b>8) puts(":(");
  else puts("Yay!")
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before 'return'
    8 |   else puts("Yay!")
      |                    ^
      |                    ;
    9 |   return 0;
      |   ~~~~~~
Language: C++


#include<iostream>
#include<vector>
#include<string>
#include<tuple>
#include<algorithm>
#include<iomanip>

using namespace std;

int main(){
    cin >> A >> B;

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int a,b;
	cin>>a>>b;
	if(a<=8 && b<=8)
	{
		cout<<"Yay!";
	}
	else
	{
		cout<<":("
	}
}

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

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

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

  cout << ((a <= 8 && <= 8) ? "Yay!" : ":(") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected primary-expression before '<=' token
    8 |   cout << ((a <= 8 && <= 8) ? "Yay!" : ":(") << endl;
      |                       ^~
Language: C++

#inculde <bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a>=9||b>=9){
    cout<<":("<<endl;
  }
  else
    cout<<"Yay!"<<endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #inculde <bits/stdc++.h>
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<":("<<endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:17: error: 'endl' was not declared in this scope
    7 |     cout<<":("<<endl;
      |                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculde <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"Yay!"<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:19: error: 'endl' was not declared in this scope
   10 |     cout<<"Yay!"<<endl;
      |                   ^~~~
a.cc:10:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <cstdio>
#include <cmath>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

#ifdef _DEBUG
#define DMP(x) cerr << #x << ": " << x << "\n"
#else
#define DMP(x) ((void)0)
#endif

const int MOD = 1000000007, INF = 1111111111; 
using namespace std;
using lint = long long;

int main() {

	cin.tie(nullptr);
	ios::sync_with_stdio(false);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:30:24: error: expected '}' at end of input
   30 |      else cout << ":(";
      |                        ^
a.cc:21:12: note: to match this '{'
   21 | int main() {
      |            ^
Language: C++

#include <cstdio>
#include <cmath>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

#ifdef _DEBUG
#define DMP(x) cerr << #x << ": " << x << "\n"
#else
#define DMP(x) ((void)0)
#endif

const int MOD = 1000000007, INF = 1111111111; 
using namespace std;
using lint = long long;

int main() {

	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	int A,B;
       cin >> A>>B;
      
      if(A<=8&&B<=8) cout << “Yay!”;
     else cout << “:(“;

Compiler output:
a.cc:29:30: error: extended character “ is not valid in an identifier
   29 |       if(A<=8&&B<=8) cout << “Yay!”;
      |                              ^
a.cc:29:35: error: extended character ” is not valid in an identifier
   29 |       if(A<=8&&B<=8) cout << “Yay!”;
      |                                   ^
a.cc:30:19: error: extended character “ is not valid in an identifier
   30 |      else cout << “:(“;
      |                   ^
a.cc:30:22: error: extended character “ is not valid in an identifier
   30 |      else cout << “:(“;
      |                      ^
a.cc: In function 'int main()':
a.cc:29:30: error: '\U0000201cYay' was not declared in this scope
   29 |       if(A<=8&&B<=8) cout << “Yay!”;
      |                              ^~~~
a.cc:30:19: error: '\U0000201c' was not declared in this scope
   30 |      else cout << “:(“;
      |                   ^
a.cc:30:24: error: expected '}' at end of input
   30 |      else cout << “:(“;
      |                        ^
a.cc:21:12: note: to match this '{'
   21 | int main() {
      |            ^
Language: C++

#include <cstdio>
#include <cmath>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

#ifdef _DEBUG
#define DMP(x) cerr << #x << ": " << x << "\n"
#else
#define DMP(x) ((void)0)
#endif

const int MOD = 1000000007, INF = 1111111111; 
using namespace std;
using lint = long long;

int main() {

	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	int A,B;
       cin >> A>>B;
      
      if(A<=8&&B<=8) cout << Yay!;
     else cout << “:(“;

Compiler output:
a.cc:30:19: error: extended character “ is not valid in an identifier
   30 |      else cout << “:(“;
      |                   ^
a.cc:30:22: error: extended character “ is not valid in an identifier
   30 |      else cout << “:(“;
      |                      ^
a.cc: In function 'int main()':
a.cc:29:30: error: 'Yay' was not declared in this scope
   29 |       if(A<=8&&B<=8) cout << Yay!;
      |                              ^~~
a.cc:30:19: error: '\U0000201c' was not declared in this scope
   30 |      else cout << “:(“;
      |                   ^
a.cc:30:24: error: expected '}' at end of input
   30 |      else cout << “:(“;
      |                        ^
a.cc:21:12: note: to match this '{'
   21 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <map>
#include <vector>
#include <set>
using namespace std;
#define LL long long

int a, b;

int main(){

	cin >> a >> b;

	if (a <= 8 && b <= 8)cout << "Yay!" << << endl;
	else cout << ":(" << endl;
	

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:48: error: expected primary-expression before '<<' token
   17 |         if (a <= 8 && b <= 8)cout << "Yay!" << << endl;
      |                                                ^~
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:4:9: error: expected initializer before 'b'
    4 |   int a b; cin >> a >> b;
      |         ^
a.cc:4:19: error: 'a' was not declared in this scope
    4 |   int a b; cin >> a >> b;
      |                   ^
a.cc:4:24: error: 'b' was not declared in this scope
    4 |   int a b; cin >> a >> b;
      |                        ^
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:1:9: fatal error: bits.stdc++.h: No such file or directory
    1 | #include<bits.stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

A, B = list(map(int, input().split()))

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

    

Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print(':(')
      |           ^~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('Yay!')
      |           ^~~~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = list(map(int, input().split()))
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ';' before '}' token
   10 |         cout << ":("
      |                     ^
      |                     ;
   11 |     }
      |     ~
Language: Java

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int time = in.nextInt();
        int num = in.nextInt();
        in.close();
        int ans = Math.pow(100, time) * num;
        
        System.out.println(ans);
    }
}

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
        int ans = Math.pow(100, time) * num;
                                      ^
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();
if(A<=8&&B<=8){
System.out.println("Yay!");
}else{
System.out.println(":(");
}
}
}

Compiler output:
Main.java:6: error: cannot find symbol
int B=sc.NextInt();
        ^
  symbol:   method NextInt()
  location: variable sc of type Scanner
1 error
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:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A <= 8; && B <= 8) {
      |               ~~~~~^~~~
a.cc:7:18: error: label 'B' used but not defined
    7 |   if (A <= 8; && B <= 8) {
      |                  ^
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:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'Yay!' << endl;
      |             ^~~~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |     cout << ':(' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A <= 8; && B <= 8) {
      |               ~~~~~^~~~
a.cc:7:18: error: label 'B' used but not defined
    7 |   if (A <= 8; && B <= 8) {
      |                  ^
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 << 'No' << endl;
  }
}


Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'Yay!' << endl;
      |             ^~~~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A <= 8; && B <= 8) {
      |               ~~~~~^~~~
a.cc:7:18: error: label 'B' used but not defined
    7 |   if (A <= 8; && B <= 8) {
      |                  ^
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 << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if (A <= 8; && B <= 8) {
      |               ~~~~~^~~~
a.cc:7:18: error: label 'B' used but not defined
    7 |   if (A <= 8; && B <= 8) {
      |                  ^
Language: C++

#include<iostream>

int main(){
  int a,b;
  std::cin>> a >> b;
  
 if(a+1==b||a==b||a==b+1){
 std::cout << "Yay!" << std::endl;
 }
 else {
  std::cout << ":(" << std::endl;
 }

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

#include<stdio.h>
int maxf(int a, int b);

void main(void){
    int a, b, max;
    scanf("%d%d",a,b);
    max = maxf(a, b);
    if (max > 8) printf(":(");
    else printf("Yay!");
}

int maxf(int a, int b){
    return a > b ? a : b ;
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(void){
      | ^~~~
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:11:25: error: expected ';' before ':' token
   11 |     cout << ":(" << endl:
      |                         ^
      |                         ;
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int N,M;
    cin >> N >> M;
    if(N<9 && M<9({
        cout << "Yay!" << endl;
    }
    else{
        cout << ":(" << endl;
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected '}' before ';' token
    7 |         cout << "Yay!" << endl;
      |                               ^
a.cc:6:19: note: to match this '{'
    6 |     if(N<9 && M<9({
      |                   ^
a.cc:7:31: error: expected ')' before ';' token
    7 |         cout << "Yay!" << endl;
      |                               ^
      |                               )
a.cc:6:18: note: to match this '('
    6 |     if(N<9 && M<9({
      |                  ^
a.cc:7:31: error: expected ')' before ';' token
    7 |         cout << "Yay!" << endl;
      |                               ^
      |                               )
a.cc:6:7: note: to match this '('
    6 |     if(N<9 && M<9({
      |       ^
a.cc: At global scope:
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else{
      |     ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int A,B;
  cin>>A>>B;
  if(A-B<=1&&A-B=>-1){
    cout<<"Yay!"<<endl;
  }
  else if{
    cout<<":("<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected primary-expression before '>' token
    6 |   if(A-B<=1&&A-B=>-1){
      |                  ^
a.cc:9:10: error: expected '(' before '{' token
    9 |   else if{
      |          ^
      |          (