criyle/codenet-compile-errors huggingface dataset:
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("%d",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
Language: C++

#include<bits/stdc++.h>
int main(void){
int a,b;
  std::cin>> a >> b;
  if(a>=6&&a<=12){b=b/2;}
  std::elseif(a<6){b=0;}
  std::cout<< b <<std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'elseif' is not a member of 'std'
    6 |   std::elseif(a<6){b=0;}
      |        ^~~~~~
Language: C++

#include<bits/stdc++.h>
int main(void){
int a,b;
  std::cin>> a >> b;
  if(a>=6&&a<=12){b=b/2;}
  elseif(a<6){b=0;}
  std::cout<< b <<std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'elseif' was not declared in this scope
    6 |   elseif(a<6){b=0;}
      |   ^~~~~~
Language: C++

#include<bits/stdc++.h>
int main(void){
int a,b;
  std::cin>> a >> b;
  if(a>=6&&a<=12){b=b/2;}
  elseif(a<6)b=0;
  std::cout<< b <<std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'elseif' was not declared in this scope
    6 |   elseif(a<6)b=0;
      |   ^~~~~~
Language: C++

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

int main() {
  int r,d,x2000;
  cin>>r>>d>>x2000;
  int a=r*x2000-d;
  int b=a*r-d;
  int c=b*r-d;
  int k=c*r-d;
  int e=k*r-d;
  int f-e*r-d;
  int g=f*r-d;
  int h=g*r-d;
  int i=h*r-d;
  int j=i*r-d;
  cout<<a<<endl;
  cout<<b<<endl;
  cout<<c<<endl;
  cout<<k<<endl;
  cout<<e<<endl;
  cout<<f<<endl;
  cout<<g<<endl;
  cout<<h<<endl;
  cout<<i<<endl;
  cout<<j<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected initializer before '-' token
   12 |   int f-e*r-d;
      |        ^
a.cc:13:9: error: 'f' was not declared in this scope
   13 |   int g=f*r-d;
      |         ^
Language: C++

#include <iostream>
#include <vector>
#include <queue>
#include <deque>
#include <math.h>
#include <stdlib.h>
#include <algorithm>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

template<class T> inline bool chmin(T &a, T b) { if(a > b){ a = b; return true; } return false; }
template<class T> inline bool chmax(T &a, T b) { if(a < b){ a = b; return true; } return false; }

//INT_MAX	2,147,483,647 = 2*1.0e9

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

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

  cout << ans << endl;

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: expected primary-expression before '>' token
   22 |   if(A => 13) ans = B;
      |         ^
a.cc:23:14: error: expected primary-expression before '>' token
   23 |   else if(A => 6) ans = 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;
  }if(a<=5){
    cout<<0<<endl;
  }else{
    cout<<b/2<<endl;
}


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

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

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>
#include <string.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:6:10: error: 'a' was not declared in this scope
    6 |     cin>>a>>b;
      |          ^
a.cc:6:13: error: 'b' was not declared in this scope
    6 |     cin>>a>>b;
      |             ^
Language: C++

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

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

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

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

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


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

#include<bits/stdc++>
using namespace std;
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;
  }
  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>
#include <stdio.h>
#include <vector>
#include <functional>
using namespace std;

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

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

import java.util.*;

public class AtCoder_0127_B {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int r = input.nextInt();
        int d = input.nextInt();
        int x = input.nextInt();
        int result = 0;

        for (int i = 0; i < 10; i++) {
            result = (r*x)-d;
            System.out.println(result);
            x = result;

        }
		input.close();
    }

}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |   return;
      |   ^~~~~~
Language: C

include<stdio.h>
int main(){
  int A, B;

  scanf("%d¥n",&A);
  scanf("%d¥n",&B);

  if(A>=13)
    printf("You can ride on a ferris wheel for %d yen!!\n",B);
  else if(A<=12 || A>=6)
    printf("You can ride on a ferris wheel for %d yen!!\n",B/2);
  if(A<=5)
    printf("You can ride on a ferris wheel for nothing!!\n");
}



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

#include<stdio.h>
int main(){
  int A, B;
  
  scanf("%d¥n",&A);
  scanf("%d¥n",&B);
  
  if(A>=13){
    printf("You can ride on a ferris wheel for %d yen!!\n",B);}
  else if(A<=12 || A>=6){
    printf("You can ride on a ferris wheel for %d yen!!\n",B/2);}
  else(A<=5){
    printf("You can ride on a ferris wheel for nothing!!\n");}
}

Compiler output:
main.c: In function 'main':
main.c:12:13: error: expected ';' before '{' token
   12 |   else(A<=5){
      |             ^
      |             ;
Language: C

#include<stdio.h>
int main(){
  int A, B;
  
  scanf("%d¥n",&A);
  scanf("%d¥n",&B);
  
  if(A>=13)
    printf("You can ride on a ferris wheel for %d yen!!\n",B);
  else if(A<=12 || A>=6)
    printf("You can ride on a ferris wheel for %d yen!!\n",B/2);
  else(A<=5)
    printf("You can ride on a ferris wheel for nothing!!\n");
}

Compiler output:
main.c: In function 'main':
main.c:12:13: error: expected ';' before 'printf'
   12 |   else(A<=5)
      |             ^
      |             ;
   13 |     printf("You can ride on a ferris wheel for nothing!!\n");
      |     ~~~~~~
Language: C++

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

Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 |   int main() {
      |   ~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ')' before '~' token
    9 |   }else if (A == 12 ~ 6){
      |            ~       ^~
      |                    )
Language: C++

#include"bits/stdc++.h"
using namespace std;
int main(){
  int x,y;
  string A,B,C;
    char s;
  cin>>x>>y>>s;
  if (s.at(y)==A){
    s.at(y)=a;}
if(s.at(y)==B){
s.at(y)=b;}
if(s.at(y)==C){
s.at(y)=c}
cout<<s<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'at' in 's', which is of non-class type 'char'
    8 |   if (s.at(y)==A){
      |         ^~
a.cc:9:7: error: request for member 'at' in 's', which is of non-class type 'char'
    9 |     s.at(y)=a;}
      |       ^~
a.cc:9:13: error: 'a' was not declared in this scope
    9 |     s.at(y)=a;}
      |             ^
a.cc:10:6: error: request for member 'at' in 's', which is of non-class type 'char'
   10 | if(s.at(y)==B){
      |      ^~
a.cc:11:3: error: request for member 'at' in 's', which is of non-class type 'char'
   11 | s.at(y)=b;}
      |   ^~
a.cc:11:9: error: 'b' was not declared in this scope
   11 | s.at(y)=b;}
      |         ^
a.cc:12:6: error: request for member 'at' in 's', which is of non-class type 'char'
   12 | if(s.at(y)==C){
      |      ^~
a.cc:13:3: error: request for member 'at' in 's', which is of non-class type 'char'
   13 | s.at(y)=c}
      |   ^~
a.cc:13:9: error: 'c' was not declared in this scope
   13 | s.at(y)=c}
      |         ^
Language: C++

#include"bits/stdc++.h"
using namespace std;
int main(){
  int x,y;
    string s;
  cin>>x>>y>>s;
  if (s.at(y)==A){
    s.at(y)=a;}
if(s.at(y)==B){
s.at(y)=b;}
if(s.at(y)==C){
s.at(y)=c}
cout<<s<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'A' was not declared in this scope
    7 |   if (s.at(y)==A){
      |                ^
a.cc:8:13: error: 'a' was not declared in this scope
    8 |     s.at(y)=a;}
      |             ^
a.cc:9:13: error: 'B' was not declared in this scope
    9 | if(s.at(y)==B){
      |             ^
a.cc:10:9: error: 'b' was not declared in this scope
   10 | s.at(y)=b;}
      |         ^
a.cc:11:13: error: 'C' was not declared in this scope
   11 | if(s.at(y)==C){
      |             ^
a.cc:12:9: error: 'c' was not declared in this scope
   12 | s.at(y)=c}
      |         ^
Language: C++

#inculde <iostream>
using namespace std;
int main(){
  int r, D, x;
  cin >> r >> D >> x;
  for(int i=0; i<10; i++){
    int y = r*x-D;
    cout << y << endl;
  	x = y;
  }
 return 0; 
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> r >> D >> x;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculde <iostream>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << y << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout << y << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculde <iostream>
Language: C++

#inculde <iostream>
using namespace std;
int main(){
  int r, D, x;
  cin >> r >> D >> x;
  for(int i=0; i<10; i++){
    int y = r*x-D
    cout << y << endl;
  	x = y;
  }
 return 0; 
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> r >> D >> x;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculde <iostream>
a.cc:8:5: error: expected ',' or ';' before 'cout'
    8 |     cout << y << endl;
      |     ^~~~
Language: C++

#inculde iostream
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde iostream
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculde iostream
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << B << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout << B << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculde iostream
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << B/2 << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |     cout << B/2 << endl;
      |                    ^~~~
a.cc:11:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << 0 << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |     cout << 0 << endl;
      |                  ^~~~
a.cc:14:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ')' at end of input
    8 |   else if(A>=1
      |          ~    ^
      |               )
a.cc:8:15: error: expected statement at end of input
a.cc:8:15: error: expected '}' at end of input
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before '}' token
    7 |     cout<<0}
      |            ^
      |            ;
a.cc:9:14: error: expected ';' before '}' token
    9 |     cout<<B/2}
      |              ^
      |              ;
a.cc:10:15: error: expected ';' before '}' token
   10 |   else{cout<<B}endl;}
      |               ^
      |               ;
a.cc:10:20: error: statement cannot resolve address of overloaded function
   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){
    cout<<0;}
  else if(5<A<14){
    cout<<B/2;}
  else{cout<<B;}endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: statement cannot resolve address of overloaded function
   10 |   else{cout<<B;}endl;}
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_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;
}

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
//const ll mod = 1000000007;

int main() {
    //cout.precision(10);
    cin.tie(0);
    ios::sync_with_stdio(false);
    int A, B;
    cin >> A >> B;
  if(A<=12) B/=2;
  if(B<=5) B=0
    cout << B << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:15: error: expected ';' before 'cout'
   36 |   if(B<=5) B=0
      |               ^
      |               ;
   37 |     cout << B << endl;
      |     ~~~~
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<=12 && A>=6);{
    cout << B/2 << endl;
  }
  else if(A<=5) {
    cout << 0 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if(A<=5) {
      |   ^~~~
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<=12 && A>=6);{
    cout << B/2 << endl;
  }
  else {
    cout << 0 << endl;
  }
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if(A<=5){
      |   ^~~~
Language: Java

import java.util.Scanner;

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

        if (a > 12) {
            System.out.println(b);
        }
        else if (a > 5) {
            System.out.println(b/2);
        }
        else {
            System.out.println(0);
        }

    }
}


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

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

void 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;

    return;
}


Compiler output:
a.cc:7:1: error: '::main' must return 'int'
    7 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |     return;
      |     ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before '{' token
    6 |   else(12>=A&&A>=6){printf("%d",B/2);}
      |                    ^
      |                    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:12: error: 'AandA' undeclared (first use in this function)
    6 |   else(12>=AandA>=6){printf("%d",B/2);}
      |            ^~~~~
main.c:6:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: expected ';' before '{' token
    6 |   else(12>=AandA>=6){printf("%d",B/2);}
      |                     ^
      |                     ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected ';' before '{' token
    6 |   else(12>=A>=6){printf("%d",B/2);}
      |                 ^
      |                 ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected ';' before '{' token
    6 |   else(12>=A>=6){printf("%d",B/2);}
      |                 ^
      |                 ;
main.c:9:3: error: expected declaration or statement at end of input
    9 |   return 0;
      |   ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected expression before '>' token
    5 |   if(A=>13){printf("%d",B);}
      |        ^
main.c:6:11: error: expected expression before '>' token
    6 |   else(12=>A=>6){printf("%d",B/2);}
      |           ^
main.c:6:17: error: expected ';' before '{' token
    6 |   else(12=>A=>6){printf("%d",B/2);}
      |                 ^
      |                 ;
main.c:9:3: error: expected declaration or statement at end of input
    9 |   return 0;
      |   ^~~~~~
Language: C++

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

a;scanf(b){scanf("%d%d",&a,&b);if(a<=12)b/=2;if(a<=5)b=0;printf("%d\n",b);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a;scanf(b){scanf("%d%d",&a,&b);if(a<=12)b/=2;if(a<=5)b=0;printf("%d\n",b);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a;scanf(b){scanf("%d%d",&a,&b);if(a<=12)b/=2;if(a<=5)b=0;printf("%d\n",b);}
      |   ^~~~~
main.c:1:3: warning: conflicting types for built-in function 'scanf'; expected 'int(const char *, ...)' [-Wbuiltin-declaration-mismatch]
main.c:1:1: note: 'scanf' is declared in header '<stdio.h>'
  +++ |+#include <stdio.h>
    1 | a;scanf(b){scanf("%d%d",&a,&b);if(a<=12)b/=2;if(a<=5)b=0;printf("%d\n",b);}
main.c: In function 'scanf':
main.c:1:3: error: type of 'b' defaults to 'int' [-Wimplicit-int]
    1 | a;scanf(b){scanf("%d%d",&a,&b);if(a<=12)b/=2;if(a<=5)b=0;printf("%d\n",b);}
      |   ^~~~~
main.c:1:3: warning: argument 'b' doesn't match built-in prototype
main.c:1:58: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | a;scanf(b){scanf("%d%d",&a,&b);if(a<=12)b/=2;if(a<=5)b=0;printf("%d\n",b);}
      |                                                          ^~~~~~
main.c:1:58: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:58: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:58: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iosteram>
using namespace std;

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

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:45: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   std::cout << (13<=a)? b : (6<=a)? b/2 : 0 << std::endl;
      |                                           ~~^~~~~~~~~~~~
Language: C++

open System

[<EntryPoint>]
let main argv = 
    
    let inputs = stdin.ReadLine().Split(' ') |> Array.map int

    let age = inputs.[0]
    let fee = inputs.[1]

    match age with
    | age when age >= 13             -> printfn "%d" fee
    | age when age >= 6 && age <= 12 -> printfn "%d" (fee/2)
    | _                              -> printfn "%d" 0

    0 // return an integer exit code


Compiler output:
a.cc:1:1: error: 'open' does not name a type
    1 | open System
      | ^~~~
Language: C++

#incldue<iostream>

using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> A >> B;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue<iostream>
a.cc:8:15: error: 'cout' was not declared in this scope
    8 |   if (A > 12) cout << B << endl;
      |               ^~~~
a.cc:8:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |   if (A > 12) cout << B << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue<iostream>
a.cc:9:19: error: 'cout' was not declared in this scope
    9 |   else if (A < 6) cout << 0 << endl;
      |                   ^~~~
a.cc:9:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:32: error: 'endl' was not declared in this scope
    9 |   else if (A < 6) cout << 0 << endl;
      |                                ^~~~
a.cc:9:32: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:10:8: error: 'cout' was not declared in this scope
   10 |   else cout << B/2 << endl;
      |        ^~~~
a.cc:10:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:23: error: 'endl' was not declared in this scope
   10 |   else cout << B/2 << endl;
      |                       ^~~~
a.cc:10:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int N = sc.nextInt();
	    int M = sc.nextInt();
	    
	    if (N<5)
	    	System.out.println(0);
	    else if (N<=12)
	    	System.out.println(M/2);
	    else
	    	System.out.println(M);

	}
  	sc.close();

}


Compiler output:
Main.java:18: error: <identifier> expected
  	sc.close();
  	        ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,x;
  cin>>a>>b>>c;
  foa(int i=0;i<11;i++){
    x=c*a*i-b*i;
    cout<<x<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected primary-expression before 'int'
    6 |   foa(int i=0;i<11;i++){
      |       ^~~
a.cc:6:15: error: 'i' was not declared in this scope
    6 |   foa(int i=0;i<11;i++){
      |               ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int a,b;cin>>a>>b;
      |           ^~~
      |           std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if(a>=13) cout << b << endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if(a>=13) cout << b << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:6:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   else if(a>5) cout << b/2 << endl;
      |                ^~~~
      |                std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else if(a>5) cout << b/2 << endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout << 0 << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else cout << 0 << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b;
      |   ^~~
a.cc:8:5: 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:10:5: error: 'cout' was not declared in this scope
   10 |     cout << b/2 << endl;
      |     ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout << b/2 << endl;
      |                    ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << 0 << endl;
      |     ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |     cout << 0 << endl;
      |                  ^~~~
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before '<' token
    8 |   else if (5 =< a){
      |               ^
main.c:11:19: error: expected ';' before '}' token
   11 |     printf("%d",b)}
      |                   ^
      |                   ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before '<' token
    8 |   else if (5 =< a)
      |               ^
main.c:11:19: error: expected ';' before 'return'
   11 |     printf("%d",b)
      |                   ^
      |                   ;
   12 |    return 0;
      |    ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before '<' token
    8 |   else if (5 =< a)
      |               ^
main.c:11:19: error: expected ';' before 'return'
   11 |     printf("%d",b)
      |                   ^
      |                   ;
   12 |    return 0;
      |    ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected unqualified-id before '>>' token
    5 |         int >> A >> B;
      |             ^~
Language: C++

#include<iostream>
int main(void){
  	int A,B;
	int >> A >> B;
  	if( A > 12 ){
    	cout << B;
    }else if(A >= 6 ){
      	cout << B/2;
    }else{
    	cout << 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: expected unqualified-id before '>>' token
    4 |         int >> A >> B;
      |             ^~
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << B;
      |         ^~~~
      |         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout << B/2;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << 0;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>

using std::cin;
using std::cout;
using std::endl;



int main() {

    int A,B;
    cin >> A >> B;
    cout << (A<=5 ? 0 : A<13 : B/2 : B) << endl;
	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected ')' before ':' token
   16 |     cout << (A<=5 ? 0 : A<13 : B/2 : B) << endl;
      |             ~               ^~
      |                             )
Language: C++

int <iostream>

using namespace std;

int main(){
  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:1:1: error: 'int' is not a template
    1 | int <iostream>
      | ^~~
a.cc:1:6: error: 'iostream' was not declared in this scope
    1 | int <iostream>
      |      ^~~~~~~~
a.cc:3:1: error: expected unqualified-id before 'using'
    3 | using namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> A >> B;
      |   ^~~
a.cc:8:16: error: 'cout' was not declared in this scope
    8 |   if (A >= 13){cout << B << endl;}
      |                ^~~~
a.cc:8:29: error: 'endl' was not declared in this scope
    8 |   if (A >= 13){cout << B << endl;}
      |                             ^~~~
a.cc:9:29: error: 'cout' was not declared in this scope
    9 |   else if (A <13 && A >= 6){cout << B/2 <<endl;}
      |                             ^~~~
a.cc:9:43: error: 'endl' was not declared in this scope
    9 |   else if (A <13 && A >= 6){cout << B/2 <<endl;}
      |                                           ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |   else {cout << 0 << endl;}
      |         ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |   else {cout << 0 << endl;}
      |                      ^~~~
Language: C++

int <iostream>

using namespace std;

int main(){
  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:1:1: error: 'int' is not a template
    1 | int <iostream>
      | ^~~
a.cc:1:6: error: 'iostream' was not declared in this scope
    1 | int <iostream>
      |      ^~~~~~~~
a.cc:3:1: error: expected unqualified-id before 'using'
    3 | using namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> A >> B;
      |   ^~~
a.cc:8:15: error: 'cout' was not declared in this scope
    8 |   if (A >= 13)cout << B << endl;
      |               ^~~~
a.cc:8:28: error: 'endl' was not declared in this scope
    8 |   if (A >= 13)cout << B << endl;
      |                            ^~~~
a.cc:9:28: error: 'cout' was not declared in this scope
    9 |   else if (A <13 && A >= 6)cout << B/2 <<endl;
      |                            ^~~~
a.cc:9:42: error: 'endl' was not declared in this scope
    9 |   else if (A <13 && A >= 6)cout << B/2 <<endl;
      |                                          ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope
   10 |   else cout << 0 << endl;
      |        ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |   else cout << 0 << endl;
      |                     ^~~~
Language: C

#include <stdio.h>

int main()
{
    int A, B;
    
    printf("年齢：");
    scanf("%d", &A);
    
    printf("ねだん：");
    scanf("%d", &B);
    
    if(A <= 5) {
        B = 0;
    } else if(A <= 12) {
        B = B / 2;
    } else {
        B = B;
    }
    
    printf("値段は、%dです。", B);

    return 0;

Compiler output:
main.c: In function 'main':
main.c:23:5: error: expected declaration or statement at end of input
   23 |     return 0;
      |     ^~~~~~
Language: C++

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

class Range{
public:
private:
  int ml[100020];
  int mr[100020];
};

int Select(int l1,int r1,int l2,int r2){ //return ef_range
  if(r1<l2||r2<l1) {
    return 0;
  }else if(l2<=r1&&l1<l2&&r1<r2){
    return r1-l2+1;
  }else if((l1<=l2&&r2<r1)||(l1<l2&&r2<=r1)){
    return r2-l2+1;
  }else if((l2<=l1&&r1<r2)||(l2<l1&&r1<=r2)){
    return r1-l1+1;
  }else if(l1==l2&&r1==r2){
    return r1-l1+1;
  }else if(l1<=r2&&r2<r1&&l2<l1){
    return r2-l1+1;
  }
}

int new_l(int l1,int r1,int l2,int r2){
  if(r1<l2||r2<l1) {
  }else if(l2<=r1&&l1<l2&&r1<r2){
    return l2;
  }else if((l1<=l2&&r2<r1)||(l1<l2&&r2<=r1)){
    return l2;
  }else if((l2<=l1&&r1<r2)||(l2<l1&&r1<=r2)){
    return l1;
  }else if(l1==l2&&r1==r2){
    return l1
  }else if(l1<=r2&&r2<r1&&l2<l1){
    return l1;
  }
}

int new_r(int l1,int r1,int l2,int r2){
  if(r1<l2||r2<l1) {
  }else if(l2<=r1&&l1<l2&&r1<r2){
    return r1;
  }else if((l1<=l2&&r2<r1)||(l1<l2&&r2<=r1)){
    return r1;
  }else if((l2<=l1&&r1<r2)||(l2<l1&&r1<=r2)){
    return r2;
  }else if(l1==l2&&r1==r2){
    return r1
  }else if(l1<=r2&&r2<r1&&l2<l1){
    return r2;
  }
}

int main()
{
  int n,m,i;
  int l[100020];
  int r[100020];
  int num=1,ef_range;

  cin>>n>>m;

  for(i=0;i<m;i++){
    cin>>l[i]>>r[i];
  }

  ef_range = r[0]-l[0]+1;

  for(i=0;i<m-1;i++){
    ef_range=Select(l[i],r[i],l[i+1],r[i+1]);
    if(ef_range==0){
      num=0;
      break;
    }
    l[i+1]=new_l(l[i],r[i],l[i+1],r[i+1]);
    r[i+1]=new_r(l[i],r[i],l[i+1],r[i+1]);
  }

  if(num!=0) num = ef_range;

  cout<<num<<endl;
}


Compiler output:
a.cc: In function 'int new_l(int, int, int, int)':
a.cc:37:14: error: expected ';' before '}' token
   37 |     return l1
      |              ^
      |              ;
   38 |   }else if(l1<=r2&&r2<r1&&l2<l1){
      |   ~           
a.cc: In function 'int new_r(int, int, int, int)':
a.cc:52:14: error: expected ';' before '}' token
   52 |     return r1
      |              ^
      |              ;
   53 |   }else if(l1<=r2&&r2<r1&&l2<l1){
      |   ~           
a.cc: In function 'int Select(int, int, int, int)':
a.cc:26:1: warning: control reaches end of non-void function [-Wreturn-type]
   26 | }
      | ^
a.cc: In function 'int new_l(int, int, int, int)':
a.cc:41:1: warning: control reaches end of non-void function [-Wreturn-type]
   41 | }
      | ^
a.cc: In function 'int new_r(int, int, int, int)':
a.cc:56:1: warning: control reaches end of non-void function [-Wreturn-type]
   56 | }
      | ^
Language: C++

#include <iostream>
#define rep(i,N) for(int i=0;i<N;i++)
using namespace std;

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

	return 0;
}


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

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author dyominov
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        AFerrisWheel solver = new AFerrisWheel();
        solver.solve(1, in, out);
        out.close();
    }

    static class AFerrisWheel {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int a = in.nextInt();
            int b = in.nextInt();
            if (a < 6) {
                out.println(0);
            } else if (a < 13) {
                out.println(b / 2);
            } else {
                out.println(b);
            }
        }

    }

    static class InputReader implements AutoCloseable {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }


Compiler output:
Main.java:65: error: reached end of file while parsing
        }
         ^
1 error
Language: C++

#include<iostream>
using namespace std;

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


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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ')' before 'a'
   10 |     }else if(a >= 6 %5 a <= 12 ){
      |             ~         ^~
      |                       )