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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      
		if (0<=A&&A<=5){
          int B = 0;
          System.out.print(A);
          System.out.println(B);
        }else if (6<=A && A<=12){
          int B = B/2;
          System.out.print(A);
          System.out.println(B);
        }else if (13<=A && A<=100){
          System.out.print(A);
          System.out.println(B);
        }
		// 出力
		
	}
}

Compiler output:
Main.java:10: error: variable B is already defined in method main(String[])
          int B = 0;
              ^
Main.java:14: error: variable B is already defined in method main(String[])
          int B = B/2;
              ^
2 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();
      
		if (0<=A&&A<=5){
          int B = 0;
          System.out.println(A B);
        }else if (6<=A && A<=12){
          int B = B/2;
          System.out.println(A B);
        }else if (13<=A && A<=100){
          System.out.println(A B);
        }
		// 出力
		
	}
}

Compiler output:
Main.java:11: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:11: error: not a statement
          System.out.println(A B);
                               ^
Main.java:11: error: ';' expected
          System.out.println(A B);
                                ^
Main.java:14: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:14: error: not a statement
          System.out.println(A B);
                               ^
Main.java:14: error: ';' expected
          System.out.println(A B);
                                ^
Main.java:16: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:16: error: not a statement
          System.out.println(A B);
                               ^
Main.java:16: error: ';' expected
          System.out.println(A B);
                                ^
9 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();
      
		if (0<=A&&A<=5){
          int B = 0;
          System.out.println(A B);
        else if (6<=A && A<=12){
           B = B/2;
          System.out.println(A B);
        else if (13<=A && A<=100){
          System.out.println(A B);
        }
		// 出力
		
	}
}

Compiler output:
Main.java:11: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:11: error: not a statement
          System.out.println(A B);
                               ^
Main.java:11: error: ';' expected
          System.out.println(A B);
                                ^
Main.java:14: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:14: error: not a statement
          System.out.println(A B);
                               ^
Main.java:14: error: ';' expected
          System.out.println(A B);
                                ^
Main.java:16: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:16: error: not a statement
          System.out.println(A B);
                               ^
Main.java:16: error: ';' expected
          System.out.println(A B);
                                ^
Main.java:15: error: 'else' without 'if'
        else if (13<=A && A<=100){
        ^
Main.java:12: error: 'else' without 'if'
        else if (6<=A && A<=12){
        ^
Main.java:21: error: reached end of file while parsing
}
 ^
12 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();
      
		if (0<=A&&A<=5){
          int B = 0;
          System.out.println(A B);
        else if (6<=A && A<=12){
          int B = B/2;
          System.out.println(A B);
        else if (13<=A && A<=100){
          System.out.println(A B);
        }
		// 出力
		
	}
}

Compiler output:
Main.java:11: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:11: error: not a statement
          System.out.println(A B);
                               ^
Main.java:11: error: ';' expected
          System.out.println(A B);
                                ^
Main.java:14: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:14: error: not a statement
          System.out.println(A B);
                               ^
Main.java:14: error: ';' expected
          System.out.println(A B);
                                ^
Main.java:16: error: ')' or ',' expected
          System.out.println(A B);
                              ^
Main.java:16: error: not a statement
          System.out.println(A B);
                               ^
Main.java:16: error: ';' expected
          System.out.println(A B);
                                ^
Main.java:15: error: 'else' without 'if'
        else if (13<=A && A<=100){
        ^
Main.java:12: error: 'else' without 'if'
        else if (6<=A && A<=12){
        ^
Main.java:21: error: reached end of file while parsing
}
 ^
12 errors
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
const int MOD = 1000000007;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ';' before 'b'
   12 |   else (a >= 6) b = b/2;
      |                ^~
      |                ;
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else b = 0;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef ll long long;
#define rep(i, n) for(int i=0; i<(int)n; i++)

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

    


Compiler output:
a.cc:4:9: error: 'll' does not name a type
    4 | typedef ll long long;
      |         ^~
Language: Java

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

Compiler output:
Main.java:10: error: cannot find symbol
      System.out.println(B);
                         ^
  symbol:   variable B
  location: class Main
1 error
Language: Java

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

Compiler output:
Main.java:10: error: cannot find symbol
      System.out.println(B);
                         ^
  symbol:   variable B
  location: class Main
Main.java:12: error: cannot find symbol
      System.out.println(B / 2);
                         ^
  symbol:   variable B
  location: class Main
2 errors
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    8 |       printf(B);
      |              ^
      |              |
      |              int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:9:19: error: 'age' was not declared in this scope
    9 |         } else if(age >=6 && age<= 12){
      |                   ^~~
a.cc:10:19: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   10 |           printf(B/2);
      |                  ~^~
      |                   |
      |                   int
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define chmin(x, y) x = min(x, y)
#define chmax(x, y) x = max(x, y)
using namespace std;
typedef long long ll;
ll INF = 1001001001;
int main() {
  int N, M; cin >> N >> M;
  
  ll li=-INF; ll ri=INF;
  rep(i, N) {
    int L, R; cin >> L >> R;
    chmax(li, (ll)L);
    chmin(ri, (ll)R);
}       
  cout << max(ri - li +1, 0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: no matching function for call to 'max(ll, int)'
   17 |   cout << max(ri - li +1, 0) << endl;
      |           ~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:17:14: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   17 |   cout << max(ri - li +1, 0) << endl;
      |           ~~~^~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:17:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   17 |   cout << max(ri - li +1, 0) << endl;
      |           ~~~^~~~~~~~~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'emdl' was not declared in this scope
    8 |     cout << b << emdl;
      |                  ^~~~
Language: C++

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

int main()
{
 int n;
 cin >> n;
 if(n % 2 != 0 ){
     
 }
  }
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected '}' before 'else'
   13 |   else {
      |   ^~~~
a.cc:11:21: note: to match this '{'
   11 |   if (A>=6 && A<=12){
      |                     ^
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

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

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

#include<bits/stdc++.h>
long long x[10000010];
#define rep(i,n) for(int i=0; i<(n); i++)
#define reps(i,n) for(int i=1; i<(n); i++)
#define pii pair<int,int>
#define all(x) (x).begin(), (x).end()
#define int long long
#define setout(n,x) setw(n) << setfill(x)
#define Fixed fixed << setprecision(10)
using namespace std;
signed main(){
 
  cin.tie(0);
  ios::sync_with_stdio(false);

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

  if(a<=5) cout<<0<<'\n';
  else ifj(a<=12) cout<<b/2<<'\n';
  else cout<<b<<'\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: 'ifj' was not declared in this scope
   20 |   else ifj(a<=12) cout<<b/2<<'\n';
      |        ^~~
a.cc:21:3: error: 'else' without a previous 'if'
   21 |   else cout<<b<<'\n';
      |   ^~~~
Language: C++

include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>age>>price;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<price<<endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<price<<endl;
      |                  ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<price/2<<endl;
      |     ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout<<price/2<<endl;
      |                    ^~~~
Language: C

#include<stdio.h>

int main(){
	int a,b;
  	scanf("%d %d",&a,&b);
  switch(a){
    case (a>=13):
      printf("%d",b);
      case (6<=a<=12):
      printf("%d",b/2);
    case (a<=5):
      printf("0");
  }
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: case label does not reduce to an integer constant
    7 |     case (a>=13):
      |     ^~~~
main.c:11:5: error: case label does not reduce to an integer constant
   11 |     case (a<=5):
      |     ^~~~
Language: C

#include<stdio.h>

int main(){
	int a,b;
  	scanf("%d %d",&a,&b);
  switch(a){
    case (a>=13):
      printf("%d",b);
      case (6<=a<=12):
      printf("%d",b/2);
      case (a<=5)
      printf("0");
  }
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: case label does not reduce to an integer constant
    7 |     case (a>=13):
      |     ^~~~
main.c:12:7: error: expected ':' or '...' before 'printf'
   12 |       printf("0");
      |       ^~~~~~
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
#include <ios>     
#include <iomanip> 

using namespace std;
#define inputInt(a) int a; cin >> a; 
#define inputInt2(a,b) int a; int b; cin >> a >> b; 
#define inputInt3(a,b,c) int a; int b; int c; cin >> a >> b >> c;
#define inputLong(a) long a;cin >> a; 
#define inputIntArray(a,N) int a[N];for(int i=0;i<N;i++){cin >> a[i];}
#define inputLongArray(a,N) long a[N];for(int i=0;i<N;i++){cin >> a[i];}
#define inputIntArray2(a,b,N) int a[N]; int b[N]; for(int i=0;i<N;i++){cin >> a[i] >> b[i];}
#define output(answer) cout << answer << endl;
#define fN(i,N)    for(int i=0; i<N; i++)
#define fSE(i,s,e) for(int i=s; i<=e; i++)
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

int main()
{
  //input
  int A, B; cin >> A >> B;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |   ans = 0;
      |   ^~~
      |   abs
Language: C++

using namespace std;
int main(){
  int n,m;//n:カード枚数 m:ゲート数
  cin>>n>>m;
  int s,e,start=0,end=n,count=0;
  while(m!=0){
    cin>>s>>e;
    if(s>start)start=s;
    if(e<end)end=e;
    if(end<start){
      end=0;
      start=1;
      break;
    }
    m--;
  }
  cout<<end-start+1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>n>>m;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout<<end-start+1;
      |   ^~~~
a.cc:17:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>

int main(void)
{
  int A, B;
  std::cin >> A;
  std::cin >> B;
  int ans = (A > 12 ? B : ((A > 5) : B / 2 : 0));
  std::cout << ans << std::endl;
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: expected ')' before ':' token
    8 |   int ans = (A > 12 ? B : ((A > 5) : B / 2 : 0));
      |                           ~       ^~
      |                                   )
a.cc:8:49: error: expected ')' before ';' token
    8 |   int ans = (A > 12 ? B : ((A > 5) : B / 2 : 0));
      |             ~                                   ^
      |                                                 )
Language: C++

#include<iostream>

int main(void)
{
  int A, B;
  std::cin >> A;
  std::cin >> B;
  std::cout << (A > 12 ? B : A > 5 : B / 2 : 0) << std::endl;
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: expected ')' before ':' token
    8 |   std::cout << (A > 12 ? B : A > 5 : B / 2 : 0) << std::endl;
      |                ~                  ^~
      |                                   )
Language: C++

#include<iostream>

int main(void)
{
  int A, B;
  std::cin >> A;
  std::cin >> B;
  std::cout << (A > 12 ? B : (A > 5 : B / 2 : 0)) << std::endl;
  
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected ')' before ':' token
    8 |   std::cout << (A > 12 ? B : (A > 5 : B / 2 : 0)) << std::endl;
      |                              ~     ^~
      |                                    )
a.cc:8:63: error: expected ')' before ';' token
    8 |   std::cout << (A > 12 ? B : (A > 5 : B / 2 : 0)) << std::endl;
      |                ~                                              ^
      |                                                               )
Language: C++

#icnclude<iostream>

int main(void)
{
  int A, B;
  std::cin >> A;
  std::cin >> B;
  std::cout << A > 12 ? B : A > 5 : B / 2 : 0 << std::endl;
  
  return 0;
  
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnclude; did you mean #include?
    1 | #icnclude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' is not a member of 'std'
    6 |   std::cin >> A;
      |        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnclude<iostream>
a.cc:7:8: error: 'cin' is not a member of 'std'
    7 |   std::cin >> B;
      |        ^~~
a.cc:7:8: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:8: error: 'cout' is not a member of 'std'
    8 |   std::cout << A > 12 ? B : A > 5 : B / 2 : 0 << std::endl;
      |        ^~~~
a.cc:8:8: 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 < 5)
    ans = 0;
  else if(a <= 12)
    ans = b>>1;
  else
    ans = b;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |     ans = 0;
      |     ^~~
      |     abs
a.cc:9:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     ans = b>>1;
      |     ^~~
      |     abs
a.cc:11:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     ans = b;
      |     ^~~
      |     abs
a.cc:12:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include"bits/stdc++.h"
#include"math.h"
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std; 
typedef long long ll;

int main(){ 
  int n,m;
  cin >> n >> m;
  vector<ll> a(n);
  
  for(int i=0;i<n;i++)cin >> a[i];
  vector<pair<int,ll>> w(m);
  for(int i=0;i<m;i++){
ll a,b;
    cin >> a >> b;
 w[i].second=a;
w[i].first=b;}
  sort(w.begin(),w.end());
  reverse(w.begin(),w.end());
  sort(a.begin(),a.end());
  
  vector<ll>  d(0);
  while(x=n){
  for(ll i=0;i<m;i++){
    for(ll j=0;j<w[i].second;j++){
    d.push_back(w[i].first);x++;
    }}
  }

  bool endflag=false;
  ll s=0;
  for(ll i=0;i<n;i++){
    if(d[i]>a[i])a[i]=d[i];
    else break;
}
  rep(i,n) s+=a[i];
  cout << s << endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: 'x' was not declared in this scope
   24 |   while(x=n){
      |         ^
Language: C++

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

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




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

#include <iostream>
#include <algorithm>
#include <vector>
#include <functional>
#include <queue>
using namespace std;

#define rep(i,n) for(int i = 0;i < n; i++)

typedef long long ll;

int main(){
    int N,M;
    int A[100000];
    int B[100000];
    int C[100000];
    ll ans;
    priority_queue<int> que;
    
    cin >> N >> M;

    rep(i,N){
        cin >> A[i];
        que.push(A[i]);
        //cout << que.top() << endl;
    }
    rep(i,M){
        cin >> B[i] >> C[i];
        rep(j,B[i]) que.push(C[i]);
    }
    //cout << que.top() << endl;
    rep(i,N){
        ans += que.top();
        que.pop();
    }
    printf("%ll\n")
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:20: error: expected ';' before '}' token
   36 |     printf("%ll\n")
      |                    ^
      |                    ;
   37 | }
      | ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: '\U0000ff15' was not declared in this scope
    8 |     else if(a > ５)
      |                 ^~
Language: C

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

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

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

#define rep(i, b, e) for(i = b; i < e; ++i)
#define ull unsigned long long int

int main() {
    int n, m, i, j;
    cin >> n >> m;
    vector<ull> a(n);
    vector<pair<ull, ull> > cb(m);
    
    rep(i, 0, n) cin >> a[i];
    rep(i, 0, m) {
        cin >> cb[i].second >> cb[i].first;
    }

    sort(a.begin(), a.end());
    sort(cb.begin(), cb.end());

    rep(i, 0, m) {
        bool flg = false;
        rep(j, 0, cb[i].second) if (a[j] < cb[i].first) a[j] = cb[i].first; else {flg = true; break}
        if (flg) break;
        sort(a.begin(), a.end());
    }

    cout << accumulate(a.begin(), a.end(), 0LL) << endl;


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:100: error: expected ';' before '}' token
   28 |         rep(j, 0, cb[i].second) if (a[j] < cb[i].first) a[j] = cb[i].first; else {flg = true; break}
      |                                                                                                    ^
      |                                                                                                    ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int r, D, x; cin >> r >> D >> x; //int入力
  vector<int> V(10);
  for(int i = 0; i < 10; i++){
    if(i == 0){
      V(i) = r*x - D;
    }else{
      V(i)= r*V(i-1) - D;
    }
    printf("%d\n", V(i));
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: no match for call to '(std::vector<int>) (int&)'
    8 |       V(i) = r*x - D;
      |       ~^~~
a.cc:10:8: error: no match for call to '(std::vector<int>) (int&)'
   10 |       V(i)= r*V(i-1) - D;
      |       ~^~~
a.cc:10:16: error: no match for call to '(std::vector<int>) (int)'
   10 |       V(i)= r*V(i-1) - D;
      |               ~^~~~~
a.cc:12:21: error: no match for call to '(std::vector<int>) (int&)'
   12 |     printf("%d\n", V(i));
      |                    ~^~~
Language: C++

#include <cstdio>

int main()
{
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d\n", a <= 5 ? 0 : a <= 12 : b / 2 : b);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ')' before ':' token
    7 |   printf("%d\n", a <= 5 ? 0 : a <= 12 : b / 2 : b);
      |         ~                            ^~
      |                                      )
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)
    cout << B/2;
  } else {
    cout << 0;
  }
}

Compiler output:
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |   } else {
      |     ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#include<vector>
using namespace std;
int main(void){
  cin >> A >> 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:5:10: error: 'A' was not declared in this scope
    5 |   cin >> A >> B;
      |          ^
a.cc:5:15: error: 'B' was not declared in this scope
    5 |   cin >> A >> B;
      |               ^
Language: C++

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

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

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

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    int a,b;
    cin>>a>>b;
    if(a<=12){
    b=b/2;
    if(a<=5){
    b=0;
    cout<<b<<'\n';
    }

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

#include<bits/stdc++.h>
usnig namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    if(a<=12){
    b=b/2;
    if(a<=5){
    b=0;
    cout<<b<<'\n';
}

Compiler output:
a.cc:2:1: error: 'usnig' does not name a type
    2 | usnig namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:5: 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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<b<<'\n';
      |     ^~~~
      |     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:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:6:14: note: to match this '{'
    6 |     if(a<=12){
      |              ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

import java.util.*;

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

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

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

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to Scanner
    Scanner sc = sc.nextInt();
                           ^
1 error
Language: C++

#include <iostream>
#include <iomanip>
// std::cout << std::setprecision(2) << 3.141; // "3.1"
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;

static const int giga = pow(10,9);
// double pi = 3.141592653589793238463;

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

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

  return 0;
}

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

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

#include "../../template-proj/myMente.h"

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

#define MOD 1000000007
#define rp(i,n) for(int i=0;i<(n);i++)
#define up(i,s,e,d) for(int i=(s);i<(e);i+=(d))
#define ot(x) cout<<(x)
#define ote(x) cout<<(x)<<endl

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

Compiler output:
a.cc:4:10: fatal error: ../../template-proj/myMente.h: No such file or directory
    4 | #include "../../template-proj/myMente.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

//c++
#include<iostream>
#include<string>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:4: error: 'elseif' was not declared in this scope
   16 |   }elseif(a >= 6 && a <= 12){
      |    ^~~~~~
a.cc:18:4: error: 'else' without a previous 'if'
   18 |   }else{
      |    ^~~~
Language: C

//c++
#include<iostream>
#include<string>
using namespace std;

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


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

a,b = map(int,input().split())
if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(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<bits/stdc++>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a<=5){
    cout<<0;
  }
  else if(a>=13){
    cout<<b;
  }
  else {
    cout<<b/2;
  }
  return 0;
}

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

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

int main(){
int r, d, x;
cin >> r >> d >> x;

for ( int i = 0;i< 10; i++){
  
   x = r*x- d;
     
    cout << x << endl;
}
  return　0;
}


Compiler output:
a.cc:15:3: error: extended character 　 is not valid in an identifier
   15 |   return　0;
      |   ^
a.cc: In function 'int main()':
a.cc:15:3: error: 'return\U000030000' was not declared in this scope
   15 |   return　0;
      |   ^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

main(){
int r, d, x;
cin >> r >> d >> x;

for ( int i = 0;i< 10; i++){
  
   x = r*x- d;
     
    cout << x << endl;
}
  return　0;
}


Compiler output:
a.cc:14:3: error: extended character 　 is not valid in an identifier
   14 |   return　0;
      |   ^
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:14:3: error: 'return\U000030000' was not declared in this scope
   14 |   return　0;
      |   ^~~~~~~~~
Language: C++

#include <iostream>
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;
//    }
    cout << (a >= 6)((a > 12) ? b : b / 2) << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expression cannot be used as a function
   14 |     cout << (a >= 6)((a > 12) ? b : b / 2) << endl;
      |             ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

main(){
int r, d, x;
cin >> r >> d >> x;

for ( int i = 0;i< 10; i++){
  
   x = r*x- d
     
    cout << x << endl
}
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'cout'
   10 |    x = r*x- d
      |              ^
      |              ;
   11 | 
   12 |     cout << x << endl
      |     ~~~~
Language: C++

#include <iostream>
using namespace std;

int r, d, x;
cin >> r >> d >> x;

for ( int i = 0;i< 10; i++){
  
   x = r*x- d
     
    cout << x << endl
}


Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> r >> d >> x;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for ( int i = 0;i< 10; i++){
      | ^~~
a.cc:7:17: error: 'i' does not name a type
    7 | for ( int i = 0;i< 10; i++){
      |                 ^
a.cc:7:24: error: 'i' does not name a type
    7 | for ( int i = 0;i< 10; i++){
      |                        ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '<' token
    9 |   else if (A =< 13) {
      |               ^
Language: C++

#include <iostream>
using namespace std;

 int main(){
   int A, B;
   int cost;
   
   if(A >= 13){
     cost = B 
    }
  else if( 12>= A >= 6){
    cost = B/2;
    }
   else{
     cost =0;
     }
   
    printf("%d\n",cost)
 }
     


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before '}' token
    9 |      cost = B
      |              ^
      |              ;
   10 |     }
      |     ~         
a.cc:18:24: error: expected ';' before '}' token
   18 |     printf("%d\n",cost)
      |                        ^
      |                        ;
   19 |  }
      |  ~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'return'
    9 |      cost = B
      |              ^
      |              ;
   10 | 
   11 |      return cost;}
      |      ~~~~~~   
a.cc:17:19: error: expected '}' at end of input
   17 |      return cost;}
      |                   ^
a.cc:4:12: note: to match this '{'
    4 |  int main(){
      |            ^
Language: C++

include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'return'
    9 |      cost = B
      |              ^
      |              ;
   10 | 
   11 |      return cost;}
      |      ~~~~~~   
a.cc:17:17: error: expected ';' before '}' token
   17 |      return cost}
      |                 ^
      |                 ;
a.cc:17:18: error: expected '}' at end of input
   17 |      return cost}
      |                  ^
a.cc:4:12: note: to match this '{'
    4 |  int main(){
      |            ^
Language: C++

#include<bits/stdc++.h>

#define ll long long

uisng namespace std;

int main()
{
  int a,b;
  cin >> a >> b;
  
  if(a <= 5) cout << "0\n";
  else if(a > 5 && a <= 12) cout << b/2 << "\n";
  else cout << b << "\n";

}

Compiler output:
a.cc:5:1: error: 'uisng' does not name a type
    5 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   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:12:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   if(a <= 5) cout << "0\n";
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:29: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   else if(a > 5 && a <= 12) cout << b/2 << "\n";
      |                             ^~~~
      |                             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   else cout << b << "\n";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
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 answer =0;
    if(a>=13){
      answer=b;
    }else if(6<=a&&a<=12){
      answer = b/2;
    }else{
      null;
    }
    System.out.println(answer);
  }
}

Compiler output:
Main.java:13: error: not a statement
      null;
      ^
1 error
Language: C++

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

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

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

Compiler output:
Main.java:16: error: reached end of file while parsing
}
 ^
1 error
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;
  return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected '}' before 'else'
   12 |     else{
      |     ^~~~
a.cc:10:23: note: to match this '{'
   10 |   else if(a>=6&&a<=12){
      |                       ^
Language: C++

#include <iostream>

int main(int argc, char *argv[]){
    int A, B;
    std::cin >> A >> B;
    int money;
    if(13<=A){
        money = B;
    }else if(6<=A && A<13){
        money = B>>1;
    }else{
        money = 0;
    }
    std::out << money << std::endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   14 |     std::out << money << std::endl;
      |          ^~~
      |          oct
Language: C++

#include <iostream>
#include <iomanip>
#include <string>
#include <cstdlib>

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 << B*0 << endl;
  }

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected primary-expression before '>' token
   15 |   else if(A =>6 && a =< 12){
      |              ^
a.cc:15:20: error: 'a' was not declared in this scope
   15 |   else if(A =>6 && a =< 12){
      |                    ^
a.cc:15:23: error: expected primary-expression before '<' token
   15 |   else if(A =>6 && a =< 12){
      |                       ^
Language: C++

#include<ioostream>
using namespace std;

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

}

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

#include<ioostream>
using namespace std;

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

}

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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:19: error: expected ')' before 'a'
   10 |   }else if(a<12 &6 a>=6){
      |           ~       ^~
      |                   )
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:18: error: expected ')' before 'a'
   10 |   }elseif(a<12 &6 a>=6){
      |          ~       ^~
      |                  )
a.cc:10:4: error: 'elseif' was not declared in this scope
   10 |   }elseif(a<12 &6 a>=6){
      |    ^~~~~~
a.cc:12:4: error: 'else' without a previous 'if'
   12 |   }else{
      |    ^~~~
a.cc:13:12: error: expected ';' before '}' token
   13 |     ans = 0
      |            ^
      |            ;
   14 |   }
      |   ~
Language: C++

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


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

#include <iostream>
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 cout < b << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     else cout < b << endl;
      |                 ~~^~~~~~~
Language: Java

import java.util.*;

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(6<=A<=12){

	System.out.println(B/2);	

   }


	else if(A<=5){

	System.out.println("0");
 
   }

  }
 }

Compiler output:
Main.java:19: error: bad operand types for binary operator '<='
	else if(6<=A<=12){
	            ^
  first type:  boolean
  second type: int
1 error
Language: C++

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

    return 0;
}


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

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


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