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

#include<iostream>
#include<stdio.h>//printf("%.*f\n",*********);
#include<vector>//s.erase(n),vector
#include<algorithm>//next_permutation
#include<set>
#include<string>//char('a'=32+'A')
//to_string,string,substr
#include<sstream>
#include<complex>
#include<time.h>
#include<random>
#include<cmath>//min,max
#include<math.h>
#include<queue>
#include<time.h>
#include<iomanip>
#include<locale>
#include<utility>//swap

#define rt "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define rop(i,n) for(int i=1;i<=n;i++)//start==1
#define drep(i,n) for(int i=n-1;0<=i;i--)
#define drop(i,n) for(int i=n;0<i;i--)//end==1
#define yes(ans) if(ans)cout<<"yes"<<rt;else cout<<"no"<<rt;
#define Yes(ans) if(ans)cout<<"Yes"<<rt;else cout<<"No"<<rt;
#define YES(ans) if(ans)cout<<"YES"<<rt;else cout<<"NO"<<rt;
#define Yay(ans) if(ans)cout<<"Yay!"<<rt;else cout<<":("<<rt;
#define sec(a,b,ans) if(ans)cout<<a<<rt;else cout<<b<<rt;
#define vcin(a,n) rep(i,n)cin>>a[i];//vcin(配列名),(繰り返し回数)
#define sort(s) sort(s.begin(),s.end())//昇順
#define reve(s) reverse(s.begin(),s.end())//反転
#define please return
#define AC 0
#define rapid_pleaseAC_fast cin.tie(0);ios::sync_with_stdio(false)
#define pi 3.1415926535897932384626//pi
#define nine 1000000000//10^9

using namespace std;
typedef vector<int> vint;
typedef long double ldouble;
typedef vector<string> vstr;
typedef vector<char> vchar;
typedef vector<double> vdou;
typedef vector<double> vdouble;
typedef long long int llint;
typedef pair<int, int> pint;
typedef pair<llint, llint> pllint;
typedef vector<llint> vllint;
typedef vector<pint> vpint;
typedef vector<pair<llint, llint>> vpllint;
typedef vector<vector<int>> vvint;
typedef vector<vector<char>> vvchar;
typedef vector<vector<double>> vvdouble;
typedef vector<vector<llint>> vvllint;
typedef vector<vector<string>> vvstr;
typedef vector<vector<bool>> vvbool;
typedef vector<vector<pint>> vvpint;
typedef vector<bool> vbool;

long long GCD(long long a, long long b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}

long long LCM(long long a, long long b) {
	return a * b / GCD(a, b);
}

unsigned GetDigit(unsigned num) {
	return std::to_string(num).length();
}

int tow(int n) {//2のn乗
	if (n == 0)return 1;
	int x = tow(n / 2);
	x *= x;
	if (n % 2 == 1)x *= 2;
	return x;//@domino
}

int KETA(int n) { //Sum of Each Digit
	int sum = 0;
	while (n > 0) {
		sum += n % 10; n /= 10;
	}
	return sum;
}

unsigned ND(unsigned num) {//Number of Digits
	return std::to_string(num).length();//outmax=10
}

bool KIBN(string s) {
	rep(i, s.size() / 2) {
		if (s[i] != s[s.size() - 1 - i])return false;
	}
	return true;
}

/*

 (char)toupper(a[n])=文字列のn文字目を大文字で出力

  pow(a,b)=aのb乗

  */

int main(void) {

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

	please AC;
}
//参考：---


Compiler output:
a.cc: In function 'int main()':
a.cc:121:9: error: 'else' without a previous 'if'
  121 |         else {
      |         ^~~~
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

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

inr 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:4:1: error: 'inr' does not name a type; did you mean 'int'?
    4 | inr main(){
      | ^~~
      | int
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: expected ';' before 'endl'
   16 |     cout << B / 2 endl;
      |                  ^~~~~
      |                  ;
Language: C++

#define ll long long
#define INF 99999999
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#include<bits/stdc++.h>
using namespace std; 
int main(){
    int a,b;
    cin >> a >> b;
    if((a>5 && a < 13)b = b/2;
    else if (a<6)b = 0;
    cout << b<< endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before 'b'
    9 |     if((a>5 && a < 13)b = b/2;
      |                       ^
      |                       ;
a.cc:10:5: error: expected primary-expression before 'else'
   10 |     else if (a<6)b = 0;
      |     ^~~~
a.cc:9:31: error: expected ')' before 'else'
    9 |     if((a>5 && a < 13)b = b/2;
      |       ~                       ^
      |                               )
   10 |     else if (a<6)b = 0;
      |     ~~~~
Language: C++

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

int main() {
  ll 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:5:3: error: 'll' was not declared in this scope
    5 |   ll a,b; cin >> a >> b;
      |   ^~
a.cc:5:18: error: 'a' was not declared in this scope
    5 |   ll a,b; cin >> a >> b;
      |                  ^
a.cc:5:23: error: 'b' was not declared in this scope
    5 |   ll a,b; 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(6<=A<=12) cout<<B/2<<endl;
  else if(A<=5) cout<<"0"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '<' token
    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: C++

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

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


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

int main(){
int a,b;scanf("%d%d",&a,&b);
if(a<6)printf("0\n");
else if(a<13)printf("%d\n",b/2);
else printf("%d\n",b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'scanf' was not declared in this scope
    2 | int a,b;scanf("%d%d",&a,&b);
      |         ^~~~~
a.cc:3:8: error: 'printf' was not declared in this scope
    3 | if(a<6)printf("0\n");
      |        ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:4:14: error: 'printf' was not declared in this scope
    4 | else if(a<13)printf("%d\n",b/2);
      |              ^~~~~~
a.cc:4:14: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:5:6: error: 'printf' was not declared in this scope
    5 | else printf("%d\n",b);
      |      ^~~~~~
a.cc:5:6: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

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

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a >> b;
      |     ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << b << endl;
      |         ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout << b << endl;
      |                      ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << 0 << endl;
      |         ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |         cout << 0 << endl;
      |                      ^~~~
a.cc:11:6: error: 'ekse' was not declared in this scope
   11 |     }ekse{
      |      ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int,int> pii;

#define fi first
#define se second
#define mp make_pair
#define fastIO ios::sync_with_stdio(false)cin.tie(0);cout.tie(0);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:43: error: expected ';' before 'cin'
   11 | #define fastIO ios::sync_with_stdio(false)cin.tie(0);cout.tie(0);
      |                                           ^~~
a.cc:14:3: note: in expansion of macro 'fastIO'
   14 |   fastIO;
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int A, B;
  cin >> A >> B;

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


Compiler output:
a.cc:8:19: error: extended character 　 is not valid in an identifier
    8 |   if (A < 13) B/2;　  cout << B << endl;
      |                   ^
a.cc: In function 'int main()':
a.cc:8:19: error: '\U00003000' was not declared in this scope
    8 |   if (A < 13) B/2;　  cout << B << endl;
      |                   ^~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else if (A < 6) B=0;  cout << B << endl;
      |   ^~~~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else cout << B << endl;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int A, B;
  cin >> A >> B;

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


Compiler output:
a.cc:8:18: error: extended character 　 is not valid in an identifier
    8 |   if(A < 13) B/2;　  cout << B << endl;
      |                  ^
a.cc: In function 'int main()':
a.cc:8:18: error: '\U00003000' was not declared in this scope
    8 |   if(A < 13) B/2;　  cout << B << endl;
      |                  ^~
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else if(A < 6) B=0;  cout << B << endl;
      |   ^~~~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else cout << B << endl;
      |   ^~~~
Language: C++

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


Compiler output:
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　if(A < 13) B/2;
      | ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000if' was not declared in this scope
    8 | 　if(A < 13) B/2;
      | ^~~~
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)cout<<b/2<<endl;
  else cout<<"0"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected primary-expression before ',' token
    7 |         if(a>=13)cout<<b<,endl;
      |                          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
 
int main() {
cout<<fixed<<setprecision(10);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'elseif' was not declared in this scope
   11 |   elseif (A>=6) cout <<B/2<<endl;
      |   ^~~~~~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else cout << 0 <<endl;
      |   ^~~~
Language: Java

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


Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:5: error: not a statement
    cin >> A; 
        ^
Main.java:6: error: not a statement
    cin >> B;
        ^
Main.java:8: error: not a statement
        cout << 0;
             ^
Main.java:10: error: not a statement
        cout << B / 2;
             ^
Main.java:12: error: not a statement
        cout << B;
             ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main(void){
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: <identifier> expected
int main(void){
             ^
9 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'A' was not declared in this scope
    5 |     cin >> A >> B;
      |            ^
a.cc:5:17: error: 'B' was not declared in this scope
    5 |     cin >> A >> B;
      |                 ^
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:13: error: 'B' was not declared in this scope
    8 |     cout << B << endl;
      |             ^
a.cc:14:13: error: 'B' was not declared in this scope
   14 |     cout << B / 2 << endl;
      |             ^
Language: C++

import java.util.Scanner;

public class Main
{
  public static void main(String []args)
  {
	int n,b;
   	Scanner sc= new Scanner(System.in);
   	n= sc.nextInt();
   	b=sc.nextInt();
    
   	if(n>=13)
    {
		System.out.println(b);
    }
    
    else if(n>5 && n<13)
    {
		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: Java

import java.util.Scanner;

public class solution
{
  public static void main(String []args)
  {
	int n,b;
   	Scanner sc= new Scanner(System.in);
   	n= sc.nextInt();
   	b=sc.nextInt();
    
   	if(n>=13)
    {
		System.out.println(b);
    }
    
    else if(n>5 && n<13)
    {
		System.out.println(b/2);
    }
    
    else 
    {
		System.out.println("0");
    }

  }
  
  
  
}


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

import java.util.Scanner

public class solution
{
  public static void main(String []args)
  {
	int n,b;
   	Scanner sc= new Scanner(System.in);
   	n= sc.nextInt();
   	b=sc.nextInt();
    
   	if(n>=13)
    {
		System.out.println(b);
    }
    
    else if(n>5 && n<13)
    {
		System.out.println(b/2);
    }
    
    else 
    {
		System.out.println("0");
    }

  }
  
  
  
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: C++

A, B = map(int, input().split())
if A <= 5:
    print(0)
elif A > 12:
    print(B)
else:
    print(B // 2)

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 ( b%2==0)
{
if ( a>=13 )
cout <<b ;
else if ( a>=6 && a <=13 ) 
{
b/=2 ; 
cout << b ;
}
else 
cout << "0\n";
}
break ; 
return 0 ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:1: error: break statement not within loop or switch
   19 | break ;
      | ^~~~~
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:1: error: break statement not within loop or switch
   18 | break ;
      | ^~~~~
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'else'
    9 | cout <<b
      |         ^
      |         ;
   10 | else if ( a>=6 && a <=13 )
      | ~~~~     
a.cc:18:1: error: break statement not within loop or switch
   18 | break ;
      | ^~~~~
Language: C++

# include < iostream > 
using namespace std ; 
int main ()
{
	int A , B ; 
	cin >>A >> B ;
	if ( A >=13)
		cout <<B ; 
	else if (A>5 && A<13)
	{
		B/=2;
	cout<<B;
	}
	else
		cout<<"0\n";
return 0;



}

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

#include < iostream > 
using namespace std ; 
int main ()
{
	int A , B ; 
	cin >>A >> B ;
	if ( A >=13)
		cout <<B ; 
	else if (A>5 && A<13)
	{
		B/=2;
	cout<<B;
	}
	else
		cout<<"0\n";


return 0 ;

}

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

#include < iostream > 
using namespace std ; 
int main ()
{
	int A , B ; 
	cin >>A >> B ;
	if ( A >=13)
		cout <<B ; 
	else if (A>5 && A<13)
	{
		B/=2;
	cout<<B;
	}
	else
		cout<<"0\n";

return 0;


}

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

#include < iostream > 
using namespace std ; 
int main ()
{
	int A , B ; 
	cin >>A >> B ;
	if ( A >=13)
		cout <<B ; 
	else if (A>5 && A<13)
	{
		B/=2;
	cout<<B;
	}
	else
		cout<<"0\n";



return 0 ;
}

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

#include < iostream > 
using namespace std ; 
int main ()
{
	int A , B ; 
	cin >>A >> B ;
	if ( A >=13)
		cout <<B ; 
	else if (A>5 && A<13)
	{
		B/=2;
	cout<<B;
	}
	else
		cout<<"0\n";




}

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

#include <iostream>
using namespace std;
int A,B;
int main() {
  if((B%2==0)&&(A<=100))
  {	
	cin>>A>>B;
	if((A<=6)&&(A>13)){
		B/=2;
		cout<<B<<endl;
	}
	if(A<=5){
		cout<<'0'<<endl;
	}
	else{
	cout<<B<<endl;
  	}
 }

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

#include <iostream>
using namespace std;
int main()
{
  int A, B ,c ;
  cin>>A;
  cin>>B;
{
 if(A>=13)
      cout<<B;
  else if (A>=6&&A<=12 )
      c=B/2;
      cout<<c;
  else
      cout<< "0";
}



        return 0;
}

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

#include <iostream>
using namespace std;
int main() {
  if(B%2==0){	
	int A,B;
	cin>>A>>B;
	if((A<=6)&&(B>13)){
		B/=2;
		cout<<B<<endl;
	}
	if(A<=5){
		cout<<'0'<<endl;
	}
	else{
	cout<<B<<endl;
  	}
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: 'B' was not declared in this scope
    4 |   if(B%2==0){
      |      ^
a.cc:5:15: error: redeclaration of 'int B'
    5 |         int A,B;
      |               ^
a.cc:4:6: note: '<typeprefixerror>B' previously declared here
    4 |   if(B%2==0){
      |      ^
Language: C++

#include <iostream>
using namespace std;
int main() {
	int A,B;
	cin>>A>>B;
	if((A<=6)&&(B>13)){
		B/=2;
		cout<<B<<endl;
	}
	if(A<=5){
		cout<<'0'<<endl;
	}
	else{
	cout<<B<<endl;
	}
  }
}

Compiler output:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
int main() {
	int A,B;
	cin>>A>>B;
  if((B%2==0)&&(A<=0)&&(A>=100)&&(B<=2)&&(B>=1000)){
	
	if((A<=6)&&(B>13)){
		b/=2;
		cout<<A<<" "<<B<<endl;
	}
	if(a<=5){
		cout<<A<<" "<<'0'<<endl;
	}
	else{
	cout<<A<<" "<<B<<endl;
	}
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'b' was not declared in this scope
    9 |                 b/=2;
      |                 ^
a.cc:12:12: error: 'a' was not declared in this scope
   12 |         if(a<=5){
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main(){
   int a;
   int b;
   cin>> a >> b;
   if(a>=13){
    cout << "Takahashi is " << a <<" years old now, and the cost of the Ferris wheel is " << b <<" yen";
   }
   if(a>=6&&a<=12){
    cout << "Takahashi is " << a <<" years old now, and the cost of the Ferris wheel is " << b/2 <<" yen";
   }
   else(a<=5){
    count << "Takahashi is " << a <<" years old now, and the cost of the Ferris wheel is free";
   }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before '{' token
   13 |    else(a<=5){
      |              ^
      |              ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected ';' before 'cout'
   11 |                 b-=b
      |                     ^
      |                     ;
   12 |                 cout<<a<<b<<endl;
      |                 ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected ';' before '{' token
    6 |         if((a<=6)&&(a>13){
      |                          ^
      |                          ;
a.cc:10:9: error: expected primary-expression before 'if'
   10 |         if(a<=5){
      |         ^~
a.cc:9:10: error: expected ')' before 'if'
    9 |         }
      |          ^
      |          )
   10 |         if(a<=5){
      |         ~~
a.cc:6:11: note: to match this '('
    6 |         if((a<=6)&&(a>13){
      |           ^
Language: C++

#include <iostream>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected ';' before 'endl'
   13 |       cout<<b/2 endl;
      |                ^~~~~
      |                ;
Language: C++

#include <iostream>
using namespace std;
int main ()
{
	int a , b;
	cin>>a>>b;
	if (a>=13)
		cout<<b;

	else if (a>=6&&a<=12)
		cout<<b/2;

	else
		cout<<"0"

	return 0 ;

}


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

int main(){
    int A,B;
    cin>>A>>B;
    if(A>=13) {
        cout << B << endl;
        cout << "Takahashi is " << A << " years old now, and the cost of the Ferris wheel is " << B << " yen.";
    }else if (A >= 6){
            cout << B / 2 << endl;
            cout << "Takahashi is " << A << " years old,and the cost of the Ferris wheel is the half of " << B
             << " yen,that is,"<<B/2 <<" yen.";
    }else {

        cout << 0<< endl ;

        cout << "Takahashi is " << A << " years old, and he can ride the Ferris wheel for free.";
}}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin>>A>>B;
      |     ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << B << endl;
      |         ^~~~
a.cc:5:22: error: 'endl' was not declared in this scope
    5 |         cout << B << endl;
      |                      ^~~~
a.cc:8:13: error: 'cout' was not declared in this scope
    8 |             cout << B / 2 << endl;
      |             ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope
    8 |             cout << B / 2 << endl;
      |                              ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << 0<< endl ;
      |         ^~~~
a.cc:13:21: error: 'endl' was not declared in this scope
   13 |         cout << 0<< endl ;
      |                     ^~~~
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>
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 if(A<=5) {
    cout<<0<<endl;
   
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected '}' before 'else'
   14 |   else if(A<=5) {
      |   ^~~~
a.cc:11:26: note: to match this '{'
   11 |   else if (A>=6 && A<=12){
      |                          ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main() {
int a,b;
cin>>a>>b ;
if (a>=13){
  cout<<(b)<<endl
  cout<<"Takahashi is "<<a<< " years old now, and the cost of the Ferris wheel is "<< b<< " yen";}
else if (a>=6 && a<=12)
     {
    cout<<(0.5*b)<<endl;
    cout<<"Takahashi is "<<a<< " years old now, and the cost of the Ferris wheel is "<<(0.5* b)<< " yen";
   }
    else
      {	
      cout<<"0" <<endl;
      cout<<"Takahashi is 0 years old, and he can ride the Ferris wheel for free." ;
    }
  return 0;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'cout'
    7 |   cout<<(b)<<endl
      |                  ^
      |                  ;
    8 |   cout<<"Takahashi is "<<a<< " years old now, and the cost of the Ferris wheel is "<< b<< " yen";}
      |   ~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int A , B ;
    cout<<"please enter your age";
    cin>>A;
    cin>>B;
    while (B%2==0){
        if(A>=13){
            cout<<B;
            break;
        }
        else if (A>=6 && A<=12){
            cout<<B*0.5;
            break;
        }
        else{
            cout<<"for free";
            break;
        }}


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

#include <iostream>

using namespace std;

int main()
{
    int A , B ;
    cout<<"please enter your age";
    cin>>A;
    cin>>B;
    while (B%2==0){
        if(A>=13){
            cout<<B;
            break;
        }
        else if (A>=6 && A<=12){
            cout<<B*0.5;
            break;
        }
        else{
            cout<<"for free";
            break;
        }


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: expected '}' at end of input
   23 |         }
      |          ^
a.cc:11:19: note: to match this '{'
   11 |     while (B%2==0){
      |                   ^
a.cc:23:10: error: expected '}' at end of input
   23 |         }
      |          ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

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

	else if (a>=6&&a<=12){
		cout<<b/2 <<end1;}

	else{
		cout<<b<<end1; }

	return 0 ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: 'end1' was not declared in this scope
    8 |                 cout<< "0 "<<end1 ;}
      |                              ^~~~
a.cc:11:29: error: 'end1' was not declared in this scope
   11 |                 cout<<b/2 <<end1;}
      |                             ^~~~
a.cc:14:26: error: 'end1' was not declared in this scope
   14 |                 cout<<b<<end1; }
      |                          ^~~~
Language: C++


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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>A>>B;
      | ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<B<<endl;
      |         ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |         cout<<B<<endl;
      |                  ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<B/2<<"\n";
      |         ^~~~
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<"0"<<endl;
      |         ^~~~
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |         cout<<"0"<<endl;
      |                    ^~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{

      
float age,the_cost,b;
cin>>age;

cin>>b;
the_cost=b;
if(age>=13){
    cout<<<<the_cost<<endl;}
else if(age>=6){
    cout<<the_cost*0.5<<endl;}
else{cout<<"for free"<<endl;}
    return 0;
}


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

#include <bits/stdc++.h>

#define int long long
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define PRINT(V) \
    for (auto v : (V)) cout << v << ' '

int main(){
    int a; cin >> a;
    int b; cin >> b;
    if (b >= 13) return b;
    else if (b >= 6) return b/2;
    return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> A;
      |     ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << yen<<endl;
      |         ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout << yen<<endl;
      |                      ^~~~
a.cc:10:35: error: 'cout' was not declared in this scope
   10 |     else if (A >= 6 && A <= 12) { cout << yen / 2<<endl; }
      |                                   ^~~~
a.cc:10:52: error: 'endl' was not declared in this scope
   10 |     else if (A >= 6 && A <= 12) { cout << yen / 2<<endl; }
      |                                                    ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << 0;
      |         ^~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int x;
    int y;
    cin>>x>>y;
    if (x>=13){
    cout<<y;}
    else if (x>6 && x<=12){
    y=0.5*y;
    cout<<y;
    }
    else if (x<=5){
        cout<<'0';
        }

    return 0;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected primary-expression before '%' token
    6 |   b==%2;
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected primary-expression before '%' token
    6 |   b=%2;
      |     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected expression before '%' token
    4 |         scanf(%d %d,&a,&b);
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
const long long mod=1000000000+7;
const long long INF=-mod;

//マクロ
//型エイリアス
using ll = long long;
using P=pair<long long,long long>;
using vl=vector<long long>;
//ショートカット
#define rep(i,n) for(int i=0;i<n;i++)
#define rep2(i,k,n) for(int i=k;i<n;i++) //半開区間
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(),v.rend()
#define pb push_back
//入力
#define vin(v,N) for(long long i=0;i<N;i++) cin>>v.at(i)
#define lin(n) long long n;cin>>n
#define vlin(v,N) vector<long long>v(N);for(long long i=0;i<N;i++)cin>>v.at(i)

#define max(a,b) max((ll)a,(ll)b)
#define min(a,b) min((ll)a,(ll)b)

//関数
//最大公約数
long long gcd(long long m, long long n){
  long long a=max(m,n);
  long long b=min(m,n);
  long long r=a%b;
  while(r!=0){
    a=b; b=r; r=a%b;
  }
  return b;
}
// 最小公倍数
long long lcd(long long m, long long n){
  return m*n/gcd(m,n);
}
//xのn乗
long long power(long long x, long long N){
  long long ret=1;
  for(long long i=0;i<N;i++)   
    ret*=x;
  return ret;
}
//nCr
long long Comb (long long n, long long r);
//nCr (mod)
long long modC(long long n, long long r) {
    vector<long long> f(n+1),inv(n+1),invf(n+1);
    f[0]=f[1]=1;
    invf[0]=invf[1]=1;
    inv[1]=1;
    for (long long i=2;i<n+1;i++) {
        f[i]=(i*f[i-1])%mod;
        inv[i]=mod-((mod/i)*inv[mod%i])%mod;
        invf[i]=(inv[i]*invf[i-1])%mod;
    }
    long long cmb=f[n]*(invf[r]*invf[n-r]%mod)%mod;
    if (n>=r) return cmb;
    else return 0;
}
//素因数分解(mapで返す)
map<long long,long long> factor(long long p){
  ll p1=p;
  map<long long,long long>ret;
  for(long long i=2;i*i<=p1;i++){
     while(p%i==0){
      ret[i]++;
      p/=i;
    }
  }
  if(p!=1)
  ret[p]++;
  return ret;
}
//素数判定
bool is_prime(long long N){
  for(long long i=2;i*i<=N;i++){
    if(N%i==0)
      return false;
  }
  return true;
}
//最大値更新
void chmax(long long &a,long long b){
  a=max(a,b);
}
//最小値更新
void chmin(long long &a,long long b){
  a=min(a,b);
}

//メイン関数
int main(){
  //doubleの桁数
  cout<<fixed<<setprecision(10);
  
  lin(a);lin(b);
  if(a>=13) cout<<b;
  else if(a<=5) cout<<0:
  else cout<<b/2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:102:24: error: expected ';' before ':' token
  102 |   else if(a<=5) cout<<0:
      |                        ^
      |                        ;
Language: C++

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

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


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

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:5: error: expected primary-expression before 'int'
    5 |     int a, b;
      |     ^~~
a.cc:5:5: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin >> a >> b;
      |     ^~~
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if (a <= 5){
      |     ^~
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |     else if (a <= 12){
      |     ^~~~
a.cc:13:5: error: 'cout' does not name a type
   13 |     cout << b << endl;
      |     ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

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

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

#include <bits/stdc++.h>

#define ll long long
#define ull unsigned long long
#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define REP(a,b) for(int a=0;a<(b);++a)
#define REP1(i,n) for(int i=1;i<=(n);++i)
#define debug(x) cerr<<#x<<": "<<x<<'\n'
#define all(x) (x).begin(),(x).end()
#define SZ(x) ((int)(x).size())
#define pb push_back
#define mp make_pair
#define INF (1<<29)
#define PI 3.14159265358979
using namespace std;
typedef pair<int, int> P;
typedef pair<ll, ll> LP;
typedef pair<int, P> PP;
typedef pair<ll, LP> LPP;

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

template<class T=int>
T in(){T x;cin>>x;return (x);}
template<class T>
void print(T& x){cout<<x<<'\n';}

const int MOD =(int)1e9+7;
const int MAX =510000;
ll fac[MAX],finv[MAX],inv[MAX];
void COMint(){
    fac[0]=fac[1]=1;
    finv[0]=finv[1]=1;
    inv[1]=1;
    for(int i=2;i<MAX;i++){
        fac[i]=fac[i-1]*i%MOD;
        inv[i]=MOD-inv[MOD%i]*(MOD/i)%MOD;
        finv[i]=finv[i-1]*inv[i]%MOD;
    }
}
ll COM(int n,int k){
    if(n<k) return 0;
    if(n<0||k<0)return 0;
    return fac[n]*(finv[k]*finv[n-k]%MOD)%MOD;
}
ll gcd(ll a,ll b){
    if(b==0)return a;
    if(a>b){
        swap(a,b);
    }
    return gcd(a,b%a);
}
ll lcm(ll a,ll b){
    ll g;g=gcd(a,b);
    return a*b/g;
}
bool compare_by_b(pair<int, int> a, pair<int, int> b) {
    if(a.second != b.second){
        return a.second < b.second;
    }else{
        return a.first < b.first;
    }
}

bool compare_by_a(pair<int, int> a, pair<int, int> b) {
    if(a.first != b.first){
        return a.first < b.first;
    }else{
        return a.second < b.second;
    }
}

vector<pair<int,ll>> vec[100000];
ll cost[100000];
void dfs(int now,ll COST){
    cost[now]=COST;
    int next;
    REP(i,vec[now].size()){
        next=vec[now][i].first;
        if(cost[next]<0){
            dfs(next,COST+vec[now][i].second);
        }
    }
}
int counter(int x){
    if(!x)return 0;
    return counter(x>>1)+(x&1);
}
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int A=in();
    int B=in();
    if(A<=5){
        ans=0;
    }else if(A<=12){
        ans=B/2;
    }else{
        ans=B;
    }    
    print(ans);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:96:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   96 |         ans=0;
      |         ^~~
      |         abs
a.cc:98:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   98 |         ans=B/2;
      |         ^~~
      |         abs
a.cc:100:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
  100 |         ans=B;
      |         ^~~
      |         abs
a.cc:102:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
  102 |     print(ans);
      |           ^~~
      |           abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'rerurn' was not declared in this scope
   13 |   rerurn o ;
      |   ^~~~~~
Language: C

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

}

Compiler output:
main.c: In function 'main':
main.c:12:33: error: expected expression before '>' token
   12 |                         if (a = > 13)
      |                                 ^
Language: C++

#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)   FOR(i,0,n)
#define ALL(obj)   (obj).begin(),(obj).end()

#define debug(var)  do{std::cout << __LINE__ << "> " << #var << ": ";view(var);}while(0)
template<typename T> void view(T e){std::cout << e << std::endl;}
template<typename T> void view(const std::vector<T>& v){for(const auto& e : v){ std::cout << e << " "; } std::cout << std::endl;}
template<typename T> void view(const std::vector<std::vector<T> >& vv){ for(const auto& v : vv){ view(v); } }

using namespace std;
using ll = long long;
using vi = vector<int>;
using vl = vector<ll>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;

void Main() {
	int a, b; cin >> a >> b;
	if (a >= 13) {
		cout << b << endl;
		return;
	} else (a >= 6) {
		cout << b / 2 << endl;
		return;
	}
	cout << 0 << endl;
}

int main() {
    cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	Main();
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:23:24: error: expected ';' before '{' token
   23 |         } else (a >= 6) {
      |                        ^~
      |                        ;
Language: C++

// AUTHOR:: MOHAMMAD FAISAL
// BEGINNING WITH THE NAME OF ALMIGHTY GOD ALLAH
#include<bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected primary-expression before ';' token
   15 |     cout<<0<<;
      |              ^
Language: Java

import java.util.*;

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



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

#include<iostream>
using namespace std;
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;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected '}' before 'else'
   10 |     else
      |     ^~~~
a.cc:8:21: note: to match this '{'
    8 |         else if(a>5){
      |                     ^
Language: Java

#include<iostream>
#include<string.h>
#include<math.h>

using namespace std;

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<string.h>
^
Main.java:3: error: illegal character: '#'
#include<math.h>
^
Main.java:9: error: not a statement
	cin >> a >> b;
	         ^
Main.java:11: error: not a statement
		cout << 0 << endl;
		          ^
Main.java:14: error: not a statement
		cout << b / 2 << endl;
		              ^
Main.java:17: error: not a statement
		cout << b << endl;
		          ^
Main.java:7: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
8 errors
Language: Java

public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		try {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = new String(in.readLine());
		String[] input = line.split(" ", 0);
		int age = Integer.parseInt(input[0].trim());
		int price = Integer.parseInt(input[1].trim());
		//System.out.println("入力値は、" + age + "と" + price);
		
			if(age <= 5) {
				System.out.print("100");
			}else if(age <= 12) {
				System.out.print(price / 2);
			}else {
				System.out.print(price);
			}
		} catch (IOException e) {
			System.out.print(e);
		}
	}

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

import java.io.*;

public class questionA {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		try {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = new String(in.readLine());
		String[] input = line.split(" ", 0);
		int age = Integer.parseInt(input[0].trim());
		int price = Integer.parseInt(input[1].trim());
		//System.out.println("入力値は、" + age + "と" + price);
		
			if(age <= 5) {
				System.out.print("100");
			}else if(age <= 12) {
				System.out.print(price / 2);
			}else {
				System.out.print(price);
			}
		} catch (IOException e) {
			System.out.print(e);
		}
	}

}

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

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected primary-expression before '=' token
    9 |   else if(6 <= a && a < = 12) cout << b / 2;
      |                         ^
Language: C++

#include "bits/stdc++.h"
#include "Library/multiple.h"
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (int)(n); i++)
#define repeq(i,n) for(int i = 1; i <= (n); i++)
#define repi(i,s,t) for (int i = (int)(s); i < (int)(t); i++)
#define all(x) x.begin(), x.end()
#define vec(T) vector<T>
using namespace std;
using ull = unsigned long long;
using ll = long long;


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

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

#include <stdio.h>

int main(void){

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

if(A <= 5){
printf(0)
}

if(6 <= A && A <= 12){
printf(B/2)
}

if(13 <= A){
printf(B)
}

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'scanf'
    6 | scanf("%d%d",&A,&B);
      | ^~~~~
a.cc:9:10: error: expected ';' before '}' token
    9 | printf(0)
      |          ^
      |          ;
   10 | }
      | ~         
a.cc:13:8: error: 'B' was not declared in this scope
   13 | printf(B/2)
      |        ^
a.cc:17:8: error: 'B' was not declared in this scope
   17 | printf(B)
      |        ^