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

#include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define int long long
using namespace std;
typedef pair<int, int> P;
const int mod = 1000000007;
const int INF = 1e18;
signed 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:24: error: unable to find string literal operator 'operator""endl' with 'const char [5]', 'long unsigned int' arguments
   11 |   if(a<=8&&b<<8){cout<<"Yay!"endl;}
      |                        ^~~~~~~~~~
a.cc:12:14: error: unable to find string literal operator 'operator""endl' with 'const char [3]', 'long unsigned int' arguments
   12 |   else{cout<<":("endl;}
      |              ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i,N) for(i=0;i<N;i++)
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL;
  typedef pair<ll,char> PLC;
  typedef pair<char,ll> PCL;

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


Compiler output:
a.cc:24:29: warning: missing terminating " character
   24 |   else cout << ":(" << endl;"
      |                             ^
a.cc:24:29: error: missing terminating " character
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:12:1: error: expected declaration or statement at end of input
   12 | printf(":(");
      | ^~~~~~
Language: C++

#include <iostream>

int a, b;

int main() {
  std::cin >> a >> b;
  if (a == b) {
    std::cout << "Yay!" << std::endl;
    return 0;
  }
  if ((a + b) < 15) {
    std::cout << "Yay!" << std::endl;
    return 0;
  }
  else {
    std::cout << ":(" << std::endl;
}

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

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

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

}

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

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

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

#include<iostream>
using namespace std;

int main(void){
  int a, b;
  std::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:9: error: expected primary-expression before '<' token
    7 |   if(a =< 8 && b <= 8)
      |         ^
Language: C++

#include<iostream>


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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '<' token
    7 |   if(a =< 8 && b <= 8)
      |         ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "Yay!" << endl;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    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:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     std::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>


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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected primary-expression before '.' token
    6 |   std.cin >> a >> b;
      |      ^
a.cc:7:9: error: expected primary-expression before '<' token
    7 |   if(a =< 8 && b <= 8)
      |         ^
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "Yay!" << endl;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    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:10:8: error: expected primary-expression before '.' token
   10 |     std.cout << ":(" << endl;
      |        ^
a.cc:10:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     std.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>

int main(void){
  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:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:6:9: error: expected primary-expression before '<' token
    6 |   if(a= < 8 && b <= 8)
      |         ^
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     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:7:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     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:9:5: 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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << ":(" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
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 && a<=8){
            System.out.println("Yay!");
        }else{
            System.out.println(":(")
        }
    }
}


Compiler output:
Main.java:10: error: ';' expected
            System.out.println(":(")
                                    ^
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 && a<+8){
            System.out.println("Yay!");
        }else{
            System.out.println(":(")
        }
    }
}


Compiler output:
Main.java:10: error: ';' expected
            System.out.println(":(")
                                    ^
1 error
Language: C++

#include <iostream>
#include <cstring>
#include <algorithm>
#include <vector>
#include <string>
#include <math.h>
#include <iomanip>
#include <limits>
#include <list>
#include <queue>
#include <tuple>
#include <map>
#include <set>
#include <sstream>
#include <bitset>
#include <string>
using namespace std;
#define MOD (long long int)(1e9+7)
#define ll long long int
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define reps(i,n) for(int i=1; i<=(int)(n); i++)
#define REP(i,n) for(int i=n-1; i>=0; i--)
#define REPS(i,n) for(int i=n; i>0; i--)
#define INF (int)(1123456789)
#define LINF (long long int)(112345678901234567)


ll modpow(ll x, ll n) {
    if (n == 0) {
        return 1;
    } else if (n % 2 == 0) {
        ll h = modpow(x, n / 2);
        return h * h % MOD;
    } else {
        return x * modpow(x, n - 1) % MOD;
    }
}

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

int main() {
    int A, B; cout << A << B;
    string ans = ":("
    if(max(A, B) <= 8) ans = "Yay!"
    cout << ans << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:5: error: expected ',' or ';' before 'if'
   47 |     if(max(A, B) <= 8) ans = "Yay!"
      |     ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
// ABC098-A-
/*
int main(){
    int a, b;
    cin >> a >> b;
    cout << max(a + b, max(a - b, a * b)) << endl;
}
 */

// ABC099-A-
/*
int main(){
    int a;
    bool okey = true;
    cin >> a ;
    if (a > 999) {
        okey = false;
        a -= 1000;
    }
    
    if (okey) {
        cout << "ABC" << endl;
    }else{
        cout << "ABD" << endl;
    }
}
*/

//ABC100-A-

int main(){
    int a, b;
    cin >> a >> b;
    if (a > 8 || b > 8) {
        cout << ":(" << endl;
    }else{
        cout << "Yay!" << endl;
    }
    
}
 */
//ABC101-A-
/*
int main(){
    int ans = 0;
    for (int i = 0; i < 4; i++) {
        char s;
        cin >> s;
        if(s == '+'){
            ans++;
        }else{
            ans--;
        }
    }
    cout << ans << endl;
}
*/
//ABC102-A-
/*
int main(){
    int n;
    cin >> n;
    if (n % 2 == 0) {
        cout << n << endl;
    }else{
        cout << n * 2 << endl;
    }
}
*/
//ABC102-A-
/*
int main(){
    int a, b, c;
    cin >> a >> b >> c;
    vector<int>task;
    task = {a, b, c};
    sort(task.begin(), task.end());
    cout << task.at(2) - task.at(0) << endl;
}
*/




Compiler output:
a.cc:43:3: error: expected unqualified-id before '/' token
   43 |  */
      |   ^
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;
}

Compiler output:
a.cc:6:32: warning: missing terminating " character
    6 |   if(A <= 8 && B <= 8) cout << "Yay! << endl;
      |                                ^
a.cc:6:32: error: missing terminating " character
    6 |   if(A <= 8 && B <= 8) cout << "Yay! << endl;
      |                                ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: expected primary-expression before 'else'
    7 |   else cout << ":(" << endl;
      |   ^~~~
Language: C++

#include<stdio.h>   
int main(void)      
{                   
  int a,b;          
                    
  scanf("%d%d",&a,&b); 
                    
/*                  
  if(a<1 || a>16){  
    return 0;       
  }else if(b<1 || b>16){
    return 0;       
  }else if(a+b>16){ 
    return 0;       
  }                 
*/                  
                    
  if(a >= 8 || b >= 8){
    printf(":(\n"); 
  }else if(a<1 || b<1){
    printf(":(\n"); 
  }else{            
    printf("Yay!\n");                                   
  }                 
                    
  return 0;         
}                   
~           

Compiler output:
a.cc:28:2: error: expected class-name at end of input
   28 | ~
      |  ^
Language: C

#include<stdio.h>
int main(void)
{       
  int a,b;
  scanf("%d%d",&a,&b);
        
  if(a<1 || a>16){
    return 1;
  }else if(b<1 || b>16){
    return 1;
  }else if(a+b>16){
    return 1;
  }   
        
  if(a > 8 || b > 8){ 
    printf(":(\n");
    return 1;                                           
  }else{
    printf("Yay!\n");
  }   
        
  return 0;
}       
~   

Compiler output:
main.c:24:1: error: expected identifier or '(' before '~' token
   24 | ~
      | ^
Language: C++

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

int main(void){
  int n, m;
  cin >> n >> m;
  if(n > 8 || m > 8)cout << ":(\n";
  else cout << "Yay!\n"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before '}' token
    8 |   else cout << "Yay!\n"
      |                        ^
      |                        ;
    9 | }
      | ~
Language: C++

#include<iostream>
#include<cstdio>

using namespace std;

int main(void){
     int a,b;

      cin>>a>>b;

     if(a<=8&&b<=8){
        cout<<“Yay!”<<endl;}
    else{
       cout<<“:(”<<endl;}

return 0;

}


Compiler output:
a.cc:12:15: error: extended character “ is not valid in an identifier
   12 |         cout<<“Yay!”<<endl;}
      |               ^
a.cc:12:20: error: extended character ” is not valid in an identifier
   12 |         cout<<“Yay!”<<endl;}
      |                    ^
a.cc:14:14: error: extended character “ is not valid in an identifier
   14 |        cout<<“:(”<<endl;}
      |              ^
a.cc:14:17: error: extended character ” is not valid in an identifier
   14 |        cout<<“:(”<<endl;}
      |                 ^
a.cc: In function 'int main()':
a.cc:12:15: error: '\U0000201cYay' was not declared in this scope
   12 |         cout<<“Yay!”<<endl;}
      |               ^~~~
a.cc:14:14: error: '\U0000201c' was not declared in this scope
   14 |        cout<<“:(”<<endl;}
      |              ^
Language: C++

#include<iostream>
#include<cstdio>

using namespace std;

int main(void){
     int a,b;

      cin>>a>>b;

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

return 0;

}


Compiler output:
a.cc:12:15: error: extended character “ is not valid in an identifier
   12 |         cout<<“Yay!”<<endl;
      |               ^
a.cc:12:20: error: extended character ” is not valid in an identifier
   12 |         cout<<“Yay!”<<endl;
      |                    ^
a.cc:14:14: error: extended character “ is not valid in an identifier
   14 |        cout<<“:(”<<endl;
      |              ^
a.cc:14:17: error: extended character ” is not valid in an identifier
   14 |        cout<<“:(”<<endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:12:15: error: '\U0000201cYay' was not declared in this scope
   12 |         cout<<“Yay!”<<endl;
      |               ^~~~
a.cc:14:14: error: '\U0000201c' was not declared in this scope
   14 |        cout<<“:(”<<endl;
      |              ^
Language: C++

#include<iostream>
#include<cstdio>

int main(void){
     int a,b;

      cin>>a>>b;

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

return 0;

}


Compiler output:
a.cc:10:15: error: extended character “ is not valid in an identifier
   10 |         cout<<“Yay!”<<endl;
      |               ^
a.cc:10:20: error: extended character ” is not valid in an identifier
   10 |         cout<<“Yay!”<<endl;
      |                    ^
a.cc:12:14: error: extended character “ is not valid in an identifier
   12 |        cout<<“:(”<<endl;
      |              ^
a.cc:12:17: error: extended character ” is not valid in an identifier
   12 |        cout<<“:(”<<endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:7:7: 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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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:10:15: error: '\U0000201cYay' was not declared in this scope
   10 |         cout<<“Yay!”<<endl;
      |               ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |        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:12:14: error: '\U0000201c' was not declared in this scope
   12 |        cout<<“:(”<<endl;
      |              ^
Language: C++

#include<iostream>

int main(void){
     int a,b;

      cin>>a>>b;

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

return 0;

}


Compiler output:
a.cc:9:15: error: extended character “ is not valid in an identifier
    9 |         cout<<“Yay!”<<endl;
      |               ^
a.cc:9:20: error: extended character ” is not valid in an identifier
    9 |         cout<<“Yay!”<<endl;
      |                    ^
a.cc:11:14: error: extended character “ is not valid in an identifier
   11 |        cout<<“:(”<<endl;
      |              ^
a.cc:11:17: error: extended character ” is not valid in an identifier
   11 |        cout<<“:(”<<endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:6:7: 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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:9:15: error: '\U0000201cYay' was not declared in this scope
    9 |         cout<<“Yay!”<<endl;
      |               ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |        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:11:14: error: '\U0000201c' was not declared in this scope
   11 |        cout<<“:(”<<endl;
      |              ^
Language: C

#include <stdio.h>
int main(void){
    int A,B;
    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:15: error: 'b' undeclared (first use in this function)
    5 |     if(A<=8 &&b<=8)
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:15: error: 'b' undeclared (first use in this function)
    4 |     if(A<=8 &&b<=8)
      |               ^
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C++


import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**5) 
 
def li(): return map(int, stdin.readline().split())
A, B = tuple(li())
if A > 8 or B > 8:
    print(":(")
else:
    print("Yay!")


Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import sys
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

  
      
      
      


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

#include <bits/stdc++.h>
#define endl '\n';

typedef long long ll;

using namespace std;

const string YES = "";
const string NO  = "";

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

    int a, b;

    cin >> a >> b;

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

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: expected ';' before string constant
   23 |         cout ":(";
      |             ^~~~~
      |             ;
Language: C++

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

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:9:22: error: expected ';' before '}' token
    9 |     else cout << ":("
      |                      ^
      |                      ;
   10 | }
      | ~
Language: C++

#!/bin/bash
all_ac=true

try() {
    input="$1"
    expected="$2"

    actual="$(echo $input | ./main)"

    if [ "$actual" != "$expected" ]; then
        echo "WA"
        echo "expected:"
        echo "$expected"
        echo
        echo "actual:"
        echo "$actual"
        echo

        all_ac=false
        return
    fi
    echo "AC"
    echo
}

# test cases
echo "[Sample1]"
input1="$(cat << EOS
5 4
EOS
)"
expected1="$(cat << EOS
Yay!
EOS
)"
try "$input1" "$expected1"

echo "[Sample2]"
input2="$(cat << EOS
8 8
EOS
)"
expected2="$(cat << EOS
Yay!
EOS
)"
try "$input2" "$expected2"

echo "[Sample3]"
input3="$(cat << EOS
11 4
EOS
)"
expected3=`cat << EOS
:(
EOS
`
try "$input3" "$expected3"

echo "[Result]"
if ! $all_ac; then
    echo "WA"
    echo
    exit 1
fi
echo "All AC"


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/bin/bash
      |  ^
a.cc:26:3: error: invalid preprocessing directive #test
   26 | # test cases
      |   ^~~~
a.cc:28:8: warning: missing terminating " character
   28 | input1="$(cat << EOS
      |        ^
a.cc:28:8: error: missing terminating " character
   28 | input1="$(cat << EOS
      |        ^~~~~~~~~~~~~
a.cc:31:2: warning: missing terminating " character
   31 | )"
      |  ^
a.cc:31:2: error: missing terminating " character
a.cc:32:11: warning: missing terminating " character
   32 | expected1="$(cat << EOS
      |           ^
a.cc:32:11: error: missing terminating " character
   32 | expected1="$(cat << EOS
      |           ^~~~~~~~~~~~~
a.cc:35:2: warning: missing terminating " character
   35 | )"
      |  ^
a.cc:35:2: error: missing terminating " character
a.cc:39:8: warning: missing terminating " character
   39 | input2="$(cat << EOS
      |        ^
a.cc:39:8: error: missing terminating " character
   39 | input2="$(cat << EOS
      |        ^~~~~~~~~~~~~
a.cc:42:2: warning: missing terminating " character
   42 | )"
      |  ^
a.cc:42:2: error: missing terminating " character
a.cc:43:11: warning: missing terminating " character
   43 | expected2="$(cat << EOS
      |           ^
a.cc:43:11: error: missing terminating " character
   43 | expected2="$(cat << EOS
      |           ^~~~~~~~~~~~~
a.cc:46:2: warning: missing terminating " character
   46 | )"
      |  ^
a.cc:46:2: error: missing terminating " character
a.cc:50:8: warning: missing terminating " character
   50 | input3="$(cat << EOS
      |        ^
a.cc:50:8: error: missing terminating " character
   50 | input3="$(cat << EOS
      |        ^~~~~~~~~~~~~
a.cc:53:2: warning: missing terminating " character
   53 | )"
      |  ^
a.cc:53:2: error: missing terminating " character
a.cc:54:11: error: stray '`' in program
   54 | expected3=`cat << EOS
      |           ^
a.cc:57:1: error: stray '`' in program
   57 | `
      | ^
a.cc:2:1: error: 'all_ac' does not name a type
    2 | all_ac=true
      | ^~~~~~
a.cc:27:1: error: 'echo' does not name a type
   27 | echo "[Sample1]"
      | ^~~~
a.cc:61:15: error: 'then' does not name a type
   61 | if ! $all_ac; then
      |               ^~~~
Language: C++

#include<iotream>
using namespace std;

int main(void){{
    int A,B;
    if(A>8||B>8)
        cout<<":("<<endl;
    else
        cout<<"Yay"<,endl;
    return 0;
}


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

#include <iostream>
#include <stdio.h>
#include <algorithm>
using namespace std;
int main() {
	int n, m;
	string ans(":(");
	cin >> n; cin >> m;
	if (n < 9 && m < 9)ans = "Yay!";

	cout << ans<< "\n";

Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected '}' at end of input
   11 |         cout << ans<< "\n";
      |                            ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iosteam>

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

    if(a < 9 && b < 9){
        std::cout << "Yay!" << std::endl;
    }else{
        std::cout << ":(" << std::endl;
    }

    return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected ';' before 'cout'
   14 |     ans = ":("
      |               ^
      |               ;
   15 |   cout << ans <<"\n";
      |   ~~~~
Language: C++

#include<stdio.h>
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: In function 'int main()':
a.cc:9:21: error: expected ';' before '}' token
    9 |     printf("Yay!\n")
      |                     ^
      |                     ;
   10 | }
      | ~
Language: C

#include<stdio.h>
int d,n;
int main(void){
    scanf("%d%d",&d,&n);
    if(d == 0){
        if(n == 100){
            printf("101");
        }else{
        printf("%d",n);
        
    }else if(d == 1){
         if(n == 100){
            printf("10100");
        }else{
        printf("%d",n*100);
    }}else if(d == 2){
         if(n == 100){
            printf("1010000");
        }else{
        printf("%d",n*10000);
        }
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:6: error: expected '}' before 'else'
   11 |     }else if(d == 1){
      |      ^~~~
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:8:36: error: expected ';' before 'else'
    8 |     if(a<=8 && b<=8) cout << "Yay!"
      |                                    ^
      |                                    ;
    9 |     else cout << ":("
      |     ~~~~
Language: C

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

Compiler output:
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | {
      | ^
Language: Java

import java.util.*;

class Main{
  
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int d,n;
    d = sc.nextInt();
    n = sc.nextInt();
    if(d==0){
      System.out.println(n);
    }
    else if(d==1){
      System.out.println(100*n);
    }
    else if(n==100){
      if(d==0){
        System.out.println(n+1);
      }
      else if(d==1){
        System.out.println(100*n+100);
      }
      else{
        System.out.println(10000*n+10000);
      }
    }
    else if{
      System.out.println(10000*n);
    }
  }
  
}


Compiler output:
Main.java:27: error: '(' expected
    else if{
           ^
1 error
Language: C++

#include<iostream>
using namespace

int main(void){

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


    return 0;
}

Compiler output:
a.cc:4:1: error: expected identifier before 'int'
    4 | int main(void){
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 | int main(void){
      | ~~~             
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<<"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:9:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         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 <stdio.h>

int main(void){
  int A,B;
  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:18: error: invalid operands to binary & (have 'int *' and 'int')
    5 |   scanf("%d%d",&A&B);
      |                ~~^
      |                |
      |                int *
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:10:22: error: expected primary-expression before '<' token
   10 |     cout << "Yay!" < < endl;
      |                      ^
Language: C++

#include<cstdio>
#include<iostream>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<list>
#include<map>
#include<algorithm>

using namespace std;

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

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

    cout << "Yay!" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: expected initializer before 'b'
   14 |     int a b;
      |           ^
a.cc:15:12: error: 'a' was not declared in this scope
   15 |     cin >> a >> b;
      |            ^
a.cc:15:17: error: 'b' was not declared in this scope
   15 |     cin >> a >> b;
      |                 ^
a.cc: At global scope:
a.cc:27:5: error: 'cout' does not name a type
   27 |     cout << "Yay!" << endl;
      |     ^~~~
a.cc:29:5: error: expected unqualified-id before 'return'
   29 |     return 0;
      |     ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d%d", &a,&b);
      |         ^~~~~~~
      |         scanf
Language: C++

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

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

#include<iostream>
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:8:20: error: expected primary-expression before '%' token
    8 |         if (a < 8 &% b < 8) {
      |                    ^
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();
		sc.close();

		solve(a, b);
	}

	static void solve(int a, int b) {

		int c = a + b;
		String[] arr = new String[c];

		try {
			for (int i = 0; i < a; i++) {
				arr[i * 2] = "e";
			}

			for (int i = 1; i < b; i++) {
				arr[(i * 2) - 1] = "s";
			}
			System.out.println("Yay!");

		} catch (ArrayIndexOutOfBoundsException e) {
			System.out.println(":(");
		}
	}
}

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

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

int main() {
    int A,B;
    cin>>A>>B;
    if(A=<8&&B=<8)
    {
        cout<<"Yes"<<endl;

    }

    else
    {
        cout<<"No"<<endl;
    }
}
        


}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected primary-expression before '<' token
    7 |     if(A=<8&&B=<8)
      |          ^
a.cc:7:16: error: expected primary-expression before '<' token
    7 |     if(A=<8&&B=<8)
      |                ^
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

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

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

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


Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = map(int, input().split())
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'B'
    5 |   int A B;
      |         ^
a.cc:6:8: error: 'A' was not declared in this scope
    6 |   cin>>A>>B;
      |        ^
a.cc:6:11: error: 'B' was not declared in this scope
    6 |   cin>>A>>B;
      |           ^
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(Systwm.in);
		int D = sc.nextInt();
		int N = sc.nextInt();

		if(D == 0){
			System.out.println(N);
		}else{
			System.out.print(N * Math.pow(100,D));
		}
	}
}

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

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(Systwm.in);
		int D = sc.nextInt();
		int N = sc.nextInt();

		if(D = 0){
			System.out.println(N);
		}else{
			System.out.print(N * Math.pow(100,D));
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(Systwm.in);
		                         ^
  symbol:   variable Systwm
  location: class Main
Main.java:9: error: incompatible types: int cannot be converted to boolean
		if(D = 0){
		     ^
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(Systwm.in);
		int D = sc.nextInt();
		int N = sc.nextInt();

		if(D = 0){
			System.out.println(N);
		}else{
			System.out.print(N * Math.pow(100,D))
		}
	}
}

Compiler output:
Main.java:12: error: ';' expected
			System.out.print(N * Math.pow(100,D))
			                                     ^
1 error
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		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:9: error: ')' expected
		if(A <= 8,B <= 8){
		         ^
Main.java:9: error: not a statement
		if(A <= 8,B <= 8){
		            ^
Main.java:9: error: ';' expected
		if(A <= 8,B <= 8){
		                ^
Main.java:11: error: 'else' without 'if'
		}else {
		 ^
4 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

		if(A + B <= 16){
			System.println("Yay!");
		}else {
			System.println(":(");
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
			System.println("Yay!");
			      ^
  symbol:   method println(String)
  location: class System
Main.java:12: error: cannot find symbol
			System.println(":(");
			      ^
  symbol:   method println(String)
  location: class System
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] orgs) {
		int A = sc.nextInt();
		int B = sc.nextInt();

		if(A + B <= 16){
			System.println("Yay!");
		}else {
			System.println(":(");
		}
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		int A = sc.nextInt();
		        ^
  symbol:   variable sc
  location: class Main
Main.java:6: error: cannot find symbol
		int B = sc.nextInt();
		        ^
  symbol:   variable sc
  location: class Main
Main.java:9: error: cannot find symbol
			System.println("Yay!");
			      ^
  symbol:   method println(String)
  location: class System
Main.java:11: error: cannot find symbol
			System.println(":(");
			      ^
  symbol:   method println(String)
  location: class System
4 errors
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected primary-expression before ';' token
    9 |         else if(a<b&&;9>b){
      |                      ^
Language: C++

#include <iostream>

using namespace std;
int main(int argc, char *argv[]) {
	int a,b
	cin >> a >> b;
	if(a<9 && b<9) cout << "Yay!" << "\n";
	else cout << ":(" << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:9: error: expected initializer before 'cin'
    6 |         cin >> a >> b;
      |         ^~~
a.cc:7:19: error: 'b' was not declared in this scope
    7 |         if(a<9 && b<9) cout << "Yay!" << "\n";
      |                   ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:30: error: expected ';' before '}' token
    8 |     if(a+b<=8){printf("Yay!")
      |                              ^
      |                              ;
    9 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

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

  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected '(' before '{' token
    9 |   } else if{
      |            ^
      |            (
Language: Java

import java.util.*;
import java.lang.*;

public class Main {
 public static void main(String args[]){
	
	Scanner sc = new Scanner(System.in);
	int D = sc.nextInt();
	int N = sc.nextInt();
	
	int a = Math.pow(100,D);
	System.out.println( a*N );


 }
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from double to int
	int a = Math.pow(100,D);
	                ^
1 error
Language: Java

import java.util.*;

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

	Scanner sc = new Scanner(System.in);
	int d = sc.nextInt;
	int n = sc.nextInt;

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

}

}

Compiler output:
Main.java:7: error: cannot find symbol
	int d = sc.nextInt;
	          ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
Main.java:8: error: cannot find symbol
	int n = sc.nextInt;
	          ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.*;


public static void main(String args[]){

	Scanner sc = new Scanner(System.in);
	int d = sc.nextInt;
	int n = sc.nextInt;

	if (d=0){
		System.out.println("Yay!");
	}else if ( d = 1 ){
		System.out.println(":(");
	}

}


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

import java.util.*;


public static void main String[]{

	Scanner sc = new Scanner(System.in);
	int d = sc.nextInt;
	int n = sc.nextInt;

	if (d=0){
		System.out.println("Yay!");
	}else if ( d = 1 ){
		System.out.println(":(");
	}

}


Compiler output:
Main.java:4: error: class, interface, enum, or record expected
public static void main String[]{
              ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
	int d = sc.nextInt;
	^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: class, interface, enum, or record expected
	if (d=0){
	^
Main.java:12: error: class, interface, enum, or record expected
	}else if ( d = 1 ){
	^
Main.java:14: error: class, interface, enum, or record expected
	}
	^
5 errors