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

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

int main()
{
	int A, B;
	cin >> A >> B;
	if (A >= 13) {
		cout << B << endl;
	}
	if (5 < A <= 12) {
		cout << B / 2 << endl;
	}
	else {
		cout << "0" << endl;
	}
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include>iostream>
      |         ^
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> A >> B;
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << B << endl;
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:30: error: 'endl' was not declared in this scope
   10 |                 cout << B << endl;
      |                              ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << B / 2 << endl;
      |                 ^~~~
a.cc:13:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:34: error: 'endl' was not declared in this scope
   13 |                 cout << B / 2 << endl;
      |                                  ^~~~
a.cc:13:34: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "0" << endl;
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:32: error: 'endl' was not declared in this scope
   16 |                 cout << "0" << endl;
      |                                ^~~~
a.cc:16:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.Scanner;

public class atcoder1 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ans;

		if (a < 6)
			ans = 0;
		else if (a >= 6 && a <= 12)
			ans = b / 2;
		else
			ans = b;
		System.out.println(ans);
	}
}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
 int a,b,ans=0;
  cin >> a >> b;
  if(a>12){
    ans=b;
  }
  else if(a>5||13>a)
    ans=b/2;
  else
    ans=0;
  cout << ans <<< endl;
}

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

include <bits/stdc++.h>
using namespace std;
int main(){
  int A,B;
  cin >>A>>B;
  if(A<=5){
    cout <<0<<endl;
  }else if(A>=6%%A<=12){
    cout <<B/2<<endl;
  }else if(A>=13){
    cout <<B<<endl;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >>A>>B;
      |   ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout <<0<<endl;
      |     ^~~~
a.cc:7:15: error: 'endl' was not declared in this scope
    7 |     cout <<0<<endl;
      |               ^~~~
a.cc:8:17: error: expected primary-expression before '%' token
    8 |   }else if(A>=6%%A<=12){
      |                 ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout <<B/2<<endl;
      |     ^~~~
a.cc:9:17: error: 'endl' was not declared in this scope
    9 |     cout <<B/2<<endl;
      |                 ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout <<B<<endl;
      |     ^~~~
a.cc:11:15: error: 'endl' was not declared in this scope
   11 |     cout <<B<<endl;
      |               ^~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int (i) = 0; (i) < (n); (i)++)
#define REPR(i, n) for(int (i) = (n); (i) >= 0; (i)--)
#define FOR(i, m, n) for(int (i) = (m); (i) < (n); (i)++)
#define INF 1e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;

int main()
{
	int r, D
	int A, B;
	cin >> A >> B;

	if(A >= 13) cout << B << endl;
	else if(A >= 6 && A <= 12) cout << B / 2 << endl;
	else cout << 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected initializer before 'int'
   13 |         int A, B;
      |         ^~~
a.cc:14:16: error: 'A' was not declared in this scope
   14 |         cin >> A >> B;
      |                ^
a.cc:14:21: error: 'B' was not declared in this scope
   14 |         cin >> A >> B;
      |                     ^
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();
		// 出力
		System.out.println((a+b) + " " + s);
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
		System.out.println((a+b) + " " + s);
		                                 ^
  symbol:   variable s
  location: class Main
1 error
Language: C

#include<stdio.h>

int main(void){
  int age;
  int fee;
  scanf("%d", &age);
  acanf("%d", &fee);
  if(age<6){
    printf("0");
  }else if(6<=age&&age<13){
    printf("%d", age/2);
  }else{
    printf("%d", age);
  }
  return 0;
}

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

#include <stdio.h>
int main() {
	int a, b;
	scanf_s("%d %d", &a, &b);
	int res;
	if (a <= 5) {
		res = 0;
	}
	else if (a <= 12) {
		res = b / 2;
	}
	else {
		res = b;
	}
	printf("%d", res);
}

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

#include<iostream>
using namespace std;

int main() {
  int A,B;
  cin >> A >> B;
  if(A <= 5) {
    cout << 0 << endl;
  }
  else( A > 5 && A <= 12) {
    cout << B / 2 << endl;
  }
  else {
    cout << B << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before '{' token
   10 |   else( A > 5 && A <= 12) {
      |                          ^~
      |                          ;
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
void main(){
  int A,B,ans;
  cin>>A>>B;
  if(A<=5)
    ans = 0;
  else if((A>=6)&&(A<=12))
    ans = (B/2);
  else
    ans = B;
  cout<<B;
}

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

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();

        if (a > 13) {
            System.out.println(b);
        } else if(a >= 6) {
            System.out.println(b / 2);
        } else {
            System.out.println(0);
        }
    }
}


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

#include <stdio.h>
int main(){
  
  int A,B;
  
  scanf("%d %d", &A, &B);
  
  if(A > 12){
    print("%d", B);
  }else if((A > 5) && (A < 13)){
    print("%d", B/2);
  }else{
    print("0");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |     print("%d", B);
      |     ^~~~~
      |     printf
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int a, b;
	cin >> a >> b;
	if(a<=5) cout << 0;
	else (a<=12) cout << b/2;
	else cout << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected ';' before 'cout'
    8 |         else (a<=12) cout << b/2;
      |                     ^~~~~
      |                     ;
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else cout << b;
      |         ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b>> ans;
  if(a<=5) ans=0;
  else if(a<=12) ans=b/2;
  else   ans=b;
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
    5 |   cin >> a >> b>> ans;
      |                   ^~~
      |                   abs
Language: C++

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

if A >= 13:
  print(B)
elif 6 <= A <= 12:
  print(int(B/2))
else:
  print(0)

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(void){
int A;
int B;
int ans;

cin>>A;
cin>>B;

if(A>=13){
ans = B;
}
else if(A>=6){
ans = B/2;
}
else ans = 0;

cout<<B<<endl


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:1: error: 'cin' was not declared in this scope
   10 | cin>>A;
      | ^~~
a.cc:21:1: error: 'cout' was not declared in this scope
   21 | cout<<B<<endl
      | ^~~~
a.cc:21:10: error: 'endl' was not declared in this scope
   21 | cout<<B<<endl
      |          ^~~~
a.cc:21:14: error: expected '}' at end of input
   21 | cout<<B<<endl
      |              ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int A,B;
  cin>>A>>B;
 
  if(6<=A&&A<=12){
    B/=2;
  }else if(A<=5){
 B=0;
  }
  cout<<B<<endl;
    

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected '}' at end of input
   12 |   cout<<B<<endl;
      |                 ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int cost = 0;
		if (a >= 13) {
			cost = b;
		} else if (a >= 6 && a <= 12) {
			cost = b /2;
		} else {
			cost = 0;
		}
		System.out.println(cost);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
	}
}

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

#include <iostream>
using namespace std;
int main()
{
	cin >> a >> b;
	if(a<=5) cout << 0;
	else (a<=12) cout << b/2;
	else cout << b;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'a' was not declared in this scope
    5 |         cin >> a >> b;
      |                ^
a.cc:5:21: error: 'b' was not declared in this scope
    5 |         cin >> a >> b;
      |                     ^
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout << b;
      |         ^~~~
Language: C++

#include<iostream>
 
using namespace std;
 
int main(){
  cin >> a >> b;
  if(a>12)     cout << b << endl;
  else if(a>5) cout << b/2 << endl;
  else         cout << "0" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^
Language: Java


import java.util.*;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        int k;

        if(a>13){
            k=b;
        }else if(a<=6){
            k=b/2;
        }else if(a>6){
            k=0;
        }

        System.out.println(k);

    }
}

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

#include <bits/stdc++.h>

using namespace std;

int main(){
int a,b;
cin>>a>>b;
cout<<(a>12?b:(a>5?b/2:0))<<endl:
return 0:
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before ':' token
    8 | cout<<(a>12?b:(a>5?b/2:0))<<endl:
      |                                 ^
      |                                 ;
Language: Java

import scala.io.{StdIn => in}

object Main extends App {
  val Array(a, b) = in.readLine.split(" ").map(_.toInt)
  val ans = a match {
    case x if x <= 5 => 0
    case x if x <=12 => b / 2
    case _ => b
  }
  println(ans)
}

Compiler output:
Main.java:1: error: <identifier> expected
import scala.io.{StdIn => in}
                ^
1 error
Language: C++

#include<iostream>

int main(){
	int a, b;
  	cin>>a>>b;
  	if( a>12 ){
    	cout<<b<<endl;
    }else if( a>5 )
      	cout<<b/2<<endl;
  	else
      	cout<<0<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: 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:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<b<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         cout<<b<<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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<<b/2<<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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout<<b/2<<endl;
      |                    ^~~~
      |                    std::endl
/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<<0<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout<<0<<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>
#include<vector>
#include<math.h>
#include<string>

typedef long long ll;
typedef unsigned short int unsi;
typedef unsigned int uni;
typedef unsigned long int unli;

using namespace std;

unsi gojoho(unsi A, unsi B) {
	unsi R = 1;
	if (A > B) {
		while (R!=0) {
			R = A % B;
			A = B;
			B = R;
		}
		return A;
	} else {
		while (R != 0) {
			R = B % A;
			B = A;
			A = R;
		}
		return B;
	}
}

uni gojoho(uni A, uni B) {
	uni R = 1;
	if (A > B) {
		while (R != 0) {
			R = A % B;
			A = B;
			B = R;
		}
		return A;
	} else {
		while (R != 0) {
			R = B % A;
			B = A;
			A = R;
		}
		return B;
	}
}

unli gojoho(unli A, unli B) {
	unli R = 1;
	if (A > B) {
		while (R != 0) {
			R = A % B;
			A = B;
			B = R;
		}
		return A;
	} else {
		while (R != 0) {
			R = B % A;
			B = A;
			A = R;
		}
		return B;
	}
}

int gojoho(int A, int B) {
	int R = 1;
	if (A > B) {
		while (R != 0) {
			R = A % B;
			A = B;
			B = R;
		}
		return A;
	} else {
		while (R != 0) {
			R = B % A;
			B = A;
			A = R;
		}
		return B;
	}
}



int main(){
	int A, B;
	scanf_s("%d%d", &A, &B);
	
	if (A <= 5) {
		printf("%d", 0);
	}else if (A <= 12) {
		printf("%d", B / 2);
	}
	else {
		printf("%d", B);
	}

}


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

#include <iostream>
using namespace std;
 
int main() {
	int A, B, ans;
	cin >> A >> B;
	ans = 0;

	if(A > 12){
		ans = B;
	}else if(A > 6){
		ans = b / 2;
	}

	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:23: error: 'b' was not declared in this scope
   12 |                 ans = b / 2;
      |                       ^
Language: C++

object Main extends App {
  val read = scala.io.StdIn.readLine()
  val array =  read.split(" ").map(_.toInt).toVector
  val a = array(0)
  val b = array(1)
  if (a >= 13) {
    println(b)
  } else if (a >= 6 && a <= 12) {
    println(b / 2)
  } else {
    println(0)
  }
}


Compiler output:
a.cc:1:1: error: 'object' does not name a type
    1 | object Main extends App {
      | ^~~~~~
Language: C++

#include <algorithm>
#include <cassert>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

/* #include <bits/stdc++.h> */

using namespace std;

/* g++ -g -fsanitize=address -lasan -std=c++11 -Dfoo_ */

/* freopen("input.txt", "rt", stdin); */
/* freopen("output.txt", "wt", stdout); */

#define ALL(c)          (c).begin(), (c).end()
#define ALLR(c)         (c).rbegin(), (c).rend()
#define FOR(i,a,b)      for (int i=(a); i < (b); ++i)
#define FORR(i,a,b)     for (int i=(a); i > (b); --i)
#define FOR_ALL(i,c)    for (__typeof((c).begin()) i=(c).begin();   \
                             i != (c).end(); ++i)
#define FOR_ALLR(i,c)   for (__typeof((c).rbegin()) i=(c).rbegin(); \
                             i != (c).rend(); ++i)
#define SZ(array)       (sizeof(array)/sizeof(array[0]))
#define lc(x)           (x<<1)     /* 2*x */
#define rc(x)           (x<<1 | 1) /* 2*x+1 */
#define lowbit(x)       (x & (-x)) /* 0b10100 -> 0b100 */

typedef long long       LL;
typedef map<int,int>    MII;
typedef pair<int,int>   PII;
typedef set<int>        SI;
typedef vector<bool>    VB;
typedef vector<double>  VD;
typedef vector<int>     VI;
typedef vector<string>  VS;

/* check if a key is in container C */
template <class C>
inline bool in_(const typename C::key_type& k, const C& A)
{ return A.find(k) != A.end(); }
inline bool in_(const string& s, const string& S)
{ return S.find(s) != string::npos; }

int main()
{
#ifdef foo_
    freopen("foo", "rt", stdin);
#endif
    int a,b;
    while (cin >> a >> b) {
        if (a  <= 5)
            cout << 0 << endl;
        else if (6 <= a && a <= 12)
            cout << b/2 << endl;
        else
            cout << b << endl
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:75:30: error: expected ';' before '}' token
   75 |             cout << b << endl
      |                              ^
      |                              ;
   76 |     }
      |     ~
Language: C++

#include<bits.stdc++.h>
using namespace std;
const int N=1e6;
const int inf=1<<30;
int i,j,k,m,n,tot;
int a[N],ver[N],nxt[N],edge[N],head[N];
char s[N],t[N];
void add(int x,int y,int w)
{
	ver[++tot]=y,edge[tot]=w,nxt[tot]=head[x],head[x]=tot;
}
int main()
{
	scanf("%d%d",&n,&m);
	if(n>=13) 
	{
		printf("%d",m);
		return 0;
	}
	else if(n>=6&&n<=12)
	{
		printf("%d",m/2);
		return 0;
	}
	else
	{
		printf("0");
		return 0;
	}
	return 0;
}

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

import java.util.*;

import jdk.nashorn.internal.parser.Scanner;

import static java.lang.Math.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        if(a>=13){
            ans = b;
        }else if(a>=6){
            ans = b/2;
        }else{
            
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:3: error: package jdk.nashorn.internal.parser does not exist
import jdk.nashorn.internal.parser.Scanner;
                                  ^
1 error
Language: C++

include<iostream>

int main(void){
int A;
int B;
int ans;

cin>>A;
cin>>B;

if(A>=13){
ans = B;
}
else if(A>=6){
ans = B/2;
}
else ans = 0;

cout<<B<<endl


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
Language: C++

#inc;ude<iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(a>=13)
  {
    cout<<b;
  }
  else if(a<6)
  {
    cout<<0;
  }
  else if(a>5 && a<13)
  {
    cout<<b/2;
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inc
    1 | #inc;ude<iostream>
      |  ^~~
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 | #inc;ude<iostream>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<b;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<0;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<b/2;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(a>=13) cout<<b<<'\n';
  else if(a<=12&&a>=6) cout<<(b/2)<<'\n';
  else cout<<'0\n';
  return 0;

Compiler output:
a.cc:9:14: warning: multi-character character constant [-Wmultichar]
    9 |   else cout<<'0\n';
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:10:12: error: expected '}' at end of input
   10 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<iostream>
#include<algorithm>
#include<iterator>
#include<vector>
#include<string>
#include<map>

using namespace std;


#define mod(cans) cans%10**9+7
#define cin_pl(x,y) for(int i=0;i<x;i++){cin>>y[i];}
#define pl_twin(x,y,z) for(int i=0;i<x;i++){cin>>y[i]>>z[i];}
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define st(s) size_t size = s.length()
#define prians(Answer) cout<<Answer<<"\n"
#define make_pair mp;
#define com_div(x,Co) for(int i=1;i<x+1;i++){if(x%i==0){Co++;}}
#define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
#define elcon else{continue;}

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vector<int>> matrix;
typedef pair<int,int> pr;
typedef greater<int> gi;

int main()
{   
    int a,b;
    cin>>a>>b;
    if(a<=5){cout<<0;}
    else if(a>=13) cout<<b;
    else cout<<b/2;
}

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

#include <iostream>
#include <cstring>
#include <map>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <set>
#include <vector>
#include <queue>
#include <list>
#include <numeric>

using namespace std;
typedef long long ll;

int gcd(int x, int y) {
  if (x < y) swap(x, y);
  while (y > 0) {
    int r = x % y;
    x = y;
    y = r;
  }
  return x;
}

/*迷路
const int INF = 50;

typedef pair<int,int> P;
char field[52][52];
int d[51][51];
int r,c;
int sx,sy;
int gx,gy;

int dx[4]={1,0,-1,0};
int dy[4]={0,1,0,-1};

int bfs(){
    queue<P> que;
    for(int i=0;i<r;i++){
        for(int j=0;j<c;j++){
            d[i+1][j+1] = INF;
        }
    }
    que.push(P(sy,sx));
    d[sy][sx]=0;
while(que.size()){
    P p=que.front();
    que.pop();
    if(p.second==gx&&p.first==gy) break;
    for(int i=0;i<4;i++){
        int nx=p.second+dx[i];
        int ny=p.first+dy[i];

        if(1<=nx&&nx<=c&&1<=ny&&ny<=r&&field[ny][nx]!='#'&&d[ny][nx]==INF){
            que.push(P(ny,nx));
            d[ny][nx] = d[p.first][p.second] + 1;
        }
    }
}
return d[gy][gx];
}
*/

int main(){
  int r,d;
  cin>>a>>b;
  if(5<a&&a<13) cout<<b/2<<endl;
  else if(a<=5) cout<<0<<endl;
  else cout<<b<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:68:8: error: 'a' was not declared in this scope
   68 |   cin>>a>>b;
      |        ^
a.cc:68:11: error: 'b' was not declared in this scope
   68 |   cin>>a>>b;
      |           ^
Language: C

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

int main() {
  int A,B;
  cin >> A >> B;
  if(A >= 13){
    cout << B << endl;
  }else if( A <= 5){
    cout << '0' << endl;
  }else{
    cout << B/2 << endl;
  }


}


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

int main() {
  int a,b;
  cin >> a >> b;
  
  int ans;
  if(a>=6 && a<=12) {
    ans = b/2;
  }else if(a<=5) {
    ans = 0;
  }else{
    ans = b;
  }
  
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b;
      |   ^~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << ans << endl;
      |   ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include "pch.h"
#include <iostream>

using namespace std;

int main()
{
	int A, B;


	cin >> A >> B;


	if (A <= 5) {
		cout << 0;
	}
	else if (6 <= A && A <= 12) {
		cout << B / 2;
	}
	else {
		cout << B;
	}

	return 0;


}


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

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

#define int long long int

int32_t main()
{
  int n,m;
  cin>>n>>m;
  int ans=0;
  if(n>=13) ans=b;
  if(n<=12 && n>=6) ans=b/2;
  else ans=0;

  cout<<ans<<endl;

  return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:11:17: error: 'b' was not declared in this scope
   11 |   if(n>=13) ans=b;
      |                 ^
a.cc:12:25: error: 'b' was not declared in this scope
   12 |   if(n<=12 && n>=6) ans=b/2;
      |                         ^
Language: Java

class Main {
  public static void main(String[] args) {
    if(args[0] <= 5) System.out.println("0");
   	else if(args[0] <=12) System.out.println(args[1]/2);
    else System.out.println(args[1]);
  }
}

Compiler output:
Main.java:3: error: bad operand types for binary operator '<='
    if(args[0] <= 5) System.out.println("0");
               ^
  first type:  String
  second type: int
Main.java:4: error: bad operand types for binary operator '<='
   	else if(args[0] <=12) System.out.println(args[1]/2);
   	                ^
  first type:  String
  second type: int
Main.java:4: error: bad operand types for binary operator '/'
   	else if(args[0] <=12) System.out.println(args[1]/2);
   	                                                ^
  first type:  String
  second type: int
3 errors
Language: Java


import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = sc.nextInt();
        int k;

        if(a>13){
            k=b;
        }else if(a<=6){
            k=b/2;
        }else if(a>6){
            k=0
        }

        System.out.println(k);

    }
}

Compiler output:
Main.java:17: error: ';' expected
            k=0
               ^
1 error
Language: C++

from sys import stdin
    
def main():
    a,b = [int(x) for x in stdin.readline().rstrip().split()]

    if a <= 5:
        print(0)
    elif a <= 12:
        print(int(b/2))
    else:
        print(b)

if __name__=='__main__':
    main()

Compiler output:
a.cc:13:14: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   13 | if __name__=='__main__':
      |              ^~~~~~~~~~
a.cc:1:1: error: 'from' does not name a type
    1 | from sys import stdin
      | ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
  {
  int a,b;
  cin>>a>>b;
  if(a<=5)
    cout<<0;
  else if(a>=6 && a<=12)
    cout<<b/2;
  else if(a>=13)
    cout<<b;
  return 0;
  )

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected primary-expression before ')' token
   14 |   )
      |   ^
a.cc:14:4: error: expected '}' at end of input
   14 |   )
      |    ^
a.cc:4:3: note: to match this '{'
    4 |   {
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a,b
int main()
{
	cin>>a>>b;
	if(a>13) cout<<b<<endl;
	else if(a>5) cout<<b/2<<endl;
	else cout<<0<<endl;
	return 0;
}


Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main()
      | ^~~
Language: C++

#include<iostream>
usng namespace std;

int main()
{
  int A, B;
  
  cin >> A >> B;
  if(A < 13 && 0 <= A)return B/2;
  else return B;
}

Compiler output:
a.cc:2:1: error: 'usng' does not name a type
    2 | usng namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   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
      |                  ^~~
Language: Java

import java.util.*;
import static java.lang.Math.*;

public class Main{
    public static void main(String[] args){
        int n = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();
        int ans = 0;
        if(a>=13){
            ans = b;
        }else if(a>=6){
            ans = b/2;
        }else{
            
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        int n = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:7: error: cannot find symbol
        int a = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
Main.java:8: error: cannot find symbol
        int b = sc.nextInt();
                ^
  symbol:   variable sc
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int A = 0;
		int B = 0;
		Scanner sc = new Scanner(System.in);
		A = Integer.parseInt(sc.next());
		B = Integer.parseInt(sc.next());
		if(A>=13){
			System.out.println(B);
		}
		else if(6<=A&&A<=12){
			System.out.println(B/2);
		}
		else
			System.out.println("0");
	}

}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public Main {
       ^
Main.java:5: 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)
Main.java:22: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define PB push_back
#define MP make_pair
#define ff first
#define ss second
#define pri 1000000007 
using namespace std;

int main() {
	
	ll a,b;
	cin>a>>>b;
	if(a>=13){cout<<b<<endl;}
	else if(a>=6){cout<<b/2<<endl;}
	else{ cout<<0<<endl;}
	
	// your code goes here
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected primary-expression before '>' token
   13 |         cin>a>>>b;
      |                ^
Language: C++

#include <bits/stdc++.h>

int main() {
  int A = 0, B = 0;
  cin >> A >> B;
  
  if (A >= 13) {
    cout << B << endl;
  } else if (A >= 6) {
    cout << B / 2 << endl;
  } else {
    cout << 0 << endl;
  }
  
  return 0;
}

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 /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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << B << 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:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << B << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << B / 2 << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << B / 2 << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << 0 << 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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     cout << 0 << 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 "stdafx.h"
#include <iostream>
using namespace std;


int main()
{
	int a, b;
	cin >> a >> b;
	if (a<6)
	{
		cout << "0" << endl;
	}
	else
	{
		if (a<14)
		{
			cout << (b / 2) << endl;
		}
		else
		{
			cout << b << endl;
		}
	}
    return 0;
}



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>

int main(void)
{
  int a b;
  std::cin >> a >> b;
  
  int fare;
  
  if (a <= 5) fare = 0;
  else if (a <= 12) fare = b/2;
  else fare = b;
  
  std::cout << fare << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'b'
    5 |   int a b;
      |         ^
a.cc:6:15: error: 'a' was not declared in this scope
    6 |   std::cin >> a >> b;
      |               ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |   std::cin >> a >> b;
      |                    ^
Language: C++

import java.util.Scanner;

public class Main{
    
    public static void main (String[] args){
        
        Scanner sc = new Scanner (System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        if (A>=13){
            System.out.println(B);
        } else if (A>=6){
            System.out.println(B/2);
        } else {
            System.out.println("0");
        }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include<iostream>
using namesapce std;
int main()
{
    int a,b;
    cin>>a>>b;
    if(a>=13){cout<<b;return 0;}
    if(a<13){if(a>5){cout<<b/2;}else{cout<<0;}}
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>a>>b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     if(a>=13){cout<<b;return 0;}
      |               ^~~~
      |               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:22: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     if(a<13){if(a>5){cout<<b/2;}else{cout<<0;}}
      |                      ^~~~
      |                      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:38: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     if(a<13){if(a>5){cout<<b/2;}else{cout<<0;}}
      |                                      ^~~~
      |                                      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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, B;
  cin >> A >> B;
  if ( A >= 13 ) cout << B << endl;
  else if ( A <= 5 ) cout << '0' endl;
  else cout << B / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before 'endl'
    8 |   else if ( A <= 5 ) cout << '0' endl;
      |                                 ^~~~~
      |                                 ;
Language: C

#include<stdio.h>
int main(){
  int a,b;
  scan("%d%d",&a,&b);
  if(a>=13)b=b;
  else if(a<=12&&a>=6)b/=2;
  else b=0;
  printf("%d",b);
  return 0;
}

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

#include <bits/stdc++.h>
 
using namespace std;
 
#define BOOST        std::ios::sync_with_stdio(false);  cin.tie(NULL); cout.tie(NULL);
#define sp           <<" "<<
#define ll           long long
#define ld           long double
#define AZI(i,x)     for(auto i=x.begin();i!=x.end();i++)
#define AZ(x)        x.begin(),x.end()
#define P(x,y)       pair < x,y >
#define V(x)         vector < x >
#define fi           first
#define se           second
#define pb           push_back
#define mp           make_pair
#define PI           3.14159265358979323846264338327950288419716939937510
 
const ll mod=1e9+7,N=1e5+5,INF = 1e18;

ll power(ll a,ll b)
{
    a = a%mod;
    ll result = 1;

    while(b)
    {
        if(b&1)
            result = (result*a)%mod;
        b >>= 1, a = (a*a)%mod;
    }
    return result;
}

int main() 
{ 
    BOOST

    int a,b;
    cin>>a>>b;

    if(a>=13)
        cout<<b<<"\n";
    else if(a>=6 && a<=12)
        cout<<(b/2)<<"\n"
    else cout<<0<<"\n";
    return 0;    
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:45:26: error: expected ';' before 'else'
   45 |         cout<<(b/2)<<"\n"
      |                          ^
      |                          ;
   46 |     else cout<<0<<"\n";
      |     ~~~~
Language: C++

a,b=gets.split.map(&:to_i)
case a
when 0..5
puts 0
when 6..12
puts b/2
else
puts b
end

Compiler output:
a.cc:3:6: error: too many decimal points in number
    3 | when 0..5
      |      ^~~~
a.cc:5:6: error: too many decimal points in number
    5 | when 6..12
      |      ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=gets.split.map(&:to_i)
      | ^
Language: C++

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

int main()
{
	int a,b;
	cin>>a>>b;
	if(a>=13)
		cout<<b<<endl;
	else if(a<13 && a>5)
		cout<<b/2<<endl;
	else
		cout<<"0"<<endl
	
}			

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

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

template <class T>
inline void read(T &x) {
    x = 0;
    char c = getchar();
    bool f = 0;
    for (; !isdigit(c); c = getchar()) f ^= c == '-';
    for (; isdigit(c); c = getchar()) x = x * 10 + (c ^ 48);
    x = f ? -x : x;
}

template <class T>
inline void write(T x) {
    if (x < 0) {
        putchar('-');
        x = -x;
    }
    T y = 1;
	int len = 1;
    for (; y <= x / 10; y *= 10) ++len;
    for (; len; --len, x %= y, y /= 10) putchar(x / y + 48);
}

int a, b;

int main() {
	read(a), read(b);
	if (a >= 13) write(b);
	else if (a >= 6 && a <= 12) write(b >> 1);
	else write(0);
	putchar('\n');n
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:23: error: 'n' was not declared in this scope; did you mean 'yn'?
   34 |         putchar('\n');n
      |                       ^
      |                       yn
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  cout << (a < 6 ? 0 : (a < 13 ? : b / 2 : b)) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:41: error: expected ')' before ':' token
    7 |   cout << (a < 6 ? 0 : (a < 13 ? : b / 2 : b)) << endl;
      |                        ~                ^~
      |                                         )
a.cc:7:55: error: expected ')' before ';' token
    7 |   cout << (a < 6 ? 0 : (a < 13 ? : b / 2 : b)) << endl;
      |           ~                                           ^
      |                                                       )
Language: C++

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

int main(){
    int  A, B;

    //input
    cin >> A >> B;

    if(A <= 12 && A >= 6){
        cout << B / 2 << endl;
    }else if(A < 6){
        cout << 0 << endl;
    }else{
        cout << B << endl;

    return 0;
}


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

#include<bits/stdc++.h>
#include<iomanip>
#define mins(a,b) a=min(a,b)
#define maxs(a,b) a=max(a,b)
template < typename T > std::string to_string( const T& n )
  {
    std::ostringstream stm ;
    stm << n ;
    return stm.str() ;
  }
using namespace std;

const long long INF=9000000000000000;
int main(){
int n,m,ans=0;
cin>>n>>m;
if(n>=13)
cout<<m<<endl;
else if(5<n and n<13);
cout<<m/2<<endl;
else;
cout<<0<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:1: error: 'else' without a previous 'if'
   21 | else;
      | ^~~~
Language: C

#include <stdio.h>
int main(){
    int A,B;
    int ret;
    scanf("%d %d",&A,&B);
    if (A < 5){
        printf("0\n");
        return 0;
    }
    if(A < 13){
        prinf("%d\n",B/2);
        return 0;
    }
    printf("%d\n",B);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |         prinf("%d\n",B/2);
      |         ^~~~~
      |         printf
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,ab;cin>>a>>b;
  if(a>12)cout<<b<<endl;
  else if(a<6)cout<<0<<endl;
  else cout<<b/2<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: 'b' was not declared in this scope; did you mean 'ab'?
    4 |   int a,ab;cin>>a>>b;
      |                    ^
      |                    ab
Language: C++

#include<iostream>
using namespace std;

int main() {
  int A,B;
  cin >> A >> B;
  if(A =< 5) {
    cout << 0 << endl;
  }
  else( A > 5 && A =< 12) {
    cout << B / 2 << endl;
  }
  else {
    cout << B << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '<' token
    7 |   if(A =< 5) {
      |         ^
a.cc:10:21: error: expected primary-expression before '<' token
   10 |   else( A > 5 && A =< 12) {
      |                     ^
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
Language: C

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

int main() {
	int A, B; cin >> A >> B;
	if (A >= 13)cout << B << endl;
	else if (A >= 6 && A <= 12) cout << B / 2 << endl;
	else cout << 0 << endl;
}

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