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

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

long long n;
long long s[100005];

long long trial(long long a, long long b) {
    // cout << "trial: " << a << " " << b << endl;
    long long curr = 0;
    bool exists[n-1];
    memset(exists, 1, sizeof exists);
    long long phase = 0;
    long long score = 0;
    while (curr != n-1) {
        if (!exists[curr]) return long long_MIN;
        score += s[curr];
        exists[curr] = false;
        if (phase % 2 == 0) {
            curr += a;
        }
        else {
            curr -= b;
        }
        phase++;
    }
    return score;
}

long long test(long long x) {
    // return optimal with a-b = x
    // cout << "test: " << x << endl;
    long long st_a = x + 1;
    long long best = 0;
    for (long long i=st_a; i<=n-1; i++) {
        long long res = trial(i, i-x);
        best = max(best, res);
        // cout << " :: got " << res << endl;
    } 
    return best;
}

int main() {

    cin >> n;
    for (long long i=0; i<n; i++) {
        cin >> s[i];
    }
    long long jump = n-1;
    long long best = 0;
    for (long long i=1; i<n; i++) {
        if ((n-1) % i == 0) {
            best = max(best, test(i));
        }
    }
    cout << best << endl;


}

Compiler output:
a.cc: In function 'long long int trial(long long int, long long int)':
a.cc:15:35: error: expected primary-expression before 'long'
   15 |         if (!exists[curr]) return long long_MIN;
      |                                   ^~~~
a.cc:15:34: error: expected ';' before 'long'
   15 |         if (!exists[curr]) return long long_MIN;
      |                                  ^~~~~
      |                                  ;
Language: C++

a_s = []
b = 0
q = int(input())
def binary_search(arr, low, high, x): 
    # Check base case 
    if high >= low: 
        mid = (high + low) // 2
        # If element is present at the middle itself 
        if arr[mid] == x: 
            return mid 
        # If element is smaller than mid, then it can only 
        # be present in left subarray 
        elif arr[mid] > x: 
            return binary_search(arr, low, mid - 1, x) 
        # Else the element can only be present in right subarray 
        else: 
            return binary_search(arr, mid + 1, high, x) 
    else: 
        # Element is not present in the array 
        return low

last_2 = -1
last_2_in = None
for i in range(q):
    # print(a_s)
    s = [int(i) for i in input().split()]
    if len(s )!= 1:
        a = s[1]
        b += s[2]
        l_0 = len(a_s)
        nearest_el = binary_search(a_s, 0, len(a_s) - 1, a)
        a_s = a_s[:nearest_el] + [a] + a_s[nearest_el:]
        if len(a_s) == l_0: a_s.append(a)
    else:
        if len(a_s) == last_2:
            print(*last_2_in)
        else:
            x = a_s[max(len(a_s)//2-1, 0)]
            y = b
            for j in range(len(a_s)):
                y += abs(x-a_s[j])
            print(x, y)
            last_2 = len(a_s)
            last_2_in = (x, y)



Compiler output:
a.cc:5:7: error: invalid preprocessing directive #Check
    5 |     # Check base case
      |       ^~~~~
a.cc:8:11: error: invalid preprocessing directive #If; did you mean #if?
    8 |         # If element is present at the middle itself
      |           ^~
      |           if
a.cc:11:11: error: invalid preprocessing directive #If; did you mean #if?
   11 |         # If element is smaller than mid, then it can only
      |           ^~
      |           if
a.cc:12:11: error: invalid preprocessing directive #be
   12 |         # be present in left subarray
      |           ^~
a.cc:15:11: error: invalid preprocessing directive #Else; did you mean #else?
   15 |         # Else the element can only be present in right subarray
      |           ^~~~
      |           else
a.cc:19:11: error: invalid preprocessing directive #Element
   19 |         # Element is not present in the array
      |           ^~~~~~~
a.cc:25:7: error: invalid preprocessing directive #print
   25 |     # print(a_s)
      |       ^~~~~
a.cc:1:1: error: 'a_s' does not name a type
    1 | a_s = []
      | ^~~
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 cout<<0; 
	return 0;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b;
      |     ^~~
a.cc:5:18: error: 'cout' was not declared in this scope
    5 |     if (a >= 13) cout << b << endl;
      |                  ^~~~
a.cc:5:31: error: 'endl' was not declared in this scope
    5 |     if (a >= 13) cout << b << endl;
      |                               ^~~~
a.cc:6:33: error: 'cout' was not declared in this scope
    6 |     else if (6 <= a && a <= 12) cout << b / 2 << endl;
      |                                 ^~~~
a.cc:6:50: error: 'endl' was not declared in this scope
    6 |     else if (6 <= a && a <= 12) cout << b / 2 << endl;
      |                                                  ^~~~
a.cc:7:10: error: 'cout' was not declared in this scope
    7 |     else cout << 0 << endl;
      |          ^~~~
a.cc:7:23: error: 'endl' was not declared in this scope
    7 |     else cout << 0 << endl;
      |                       ^~~~
Language: C

#include<stdio.h>

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

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

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

	

Compiler output:
a.cc:11:17: error: extended character 　 is not valid in an identifier
   11 |                 b　= 0;
      |                 ^
a.cc: In function 'int main()':
a.cc:11:17: error: 'b\U00003000' was not declared in this scope
   11 |                 b　= 0;
      |                 ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |         scanf("%d"&a);
      |               ~~~~^~
      |               |    |
      |               |    int
      |               const char [3]
a.cc:6:19: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    6 |         scanf("%d"&b);
      |               ~~~~^~
      |               |    |
      |               |    int
      |               const char [3]
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    5 |         scanf("%b"&a);
      |               ~~~~^~
      |               |    |
      |               |    int
      |               const char [3]
a.cc:6:19: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
    6 |         scanf("%d"&b);
      |               ~~~~^~
      |               |    |
      |               |    int
      |               const char [3]
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
    long long x,y;
    cin >> x >> y;
    if(a < 6){
        cout << 0;
    }else if(a < 13){
        cout << a/2;
    }else{
        cout <<a;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'a' was not declared in this scope
    8 |     if(a < 6){
      |        ^
Language: C++

#include <bits/stdc++.h>

typedef __int64 ll;
#define FOR(i,a,b) for(ll i=a;i<ll(b);i++)
#define REP(i,n) FOR(i,0,n)

#define MOD 10e9+7

using namespace std;

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


Compiler output:
a.cc:3:9: error: '__int64' does not name a type; did you mean '__int64_t'?
    3 | typedef __int64 ll;
      |         ^~~~~~~
      |         __int64_t
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.BigInteger;
import java.util.*;
 
public class Main {
 
    void solve() throws IOException {
        int A = ni();
        int B = ni();
        if(A>=13) out.println(B);
        else if(A>=6) out.println(B/2);
        else put.println(0);
    }

    final int mod = 1000000007;
    final BigInteger MOD = BigInteger.valueOf(mod);
    int upperBound(ArrayList<Long> list, Long target){
        int i = Collections.binarySearch(list, target, new UpperBoundComparator<Long>());
        return ~i;
    }
    class UpperBoundComparator<T extends Comparable<? super T>> implements Comparator<T>{
        public int compare(T x, T y){
            return (x.compareTo(y) > 0) ? 1 : -1;
        }
    }
    int lowerBound(ArrayList<Long> list, Long target){
        int i = Collections.binarySearch(list, target, new LowerBoundComparator<Long>());
        return ~i;
    }
    class LowerBoundComparator<T extends Comparable<? super T>> implements Comparator<T>{
        public int compare(T x, T y){
            return (x.compareTo(y) >= 0) ? 1 : -1;
        }
    }
    int mul(int x, int y){
        int val = (int)((x * 1L * y) % mod);
        return val>=0 ? val : val+mod;
    }
    int add(int x, int y) {
        x += y;
        if(x < 0) x += mod;
        if(x>=mod) x -= mod;
        return x;
    }
    int sub(int x, int y){
        x = add(x,mod-y);
        if(x < 0) x += mod;
        if(x>=mod) x -= mod;
        return x;
    }
    String ns() throws IOException {
        while (!tok.hasMoreTokens()) {
            tok = new StringTokenizer(in.readLine(), " ");
        }
        return tok.nextToken();
    }
 
    int ni() throws IOException {
        return Integer.parseInt(ns());
    }
 
    long nl() throws IOException {
        return Long.parseLong(ns());
    }
 
    double nd() throws IOException {
        return Double.parseDouble(ns());
    }
 
    String[] nsa(int n) throws IOException {
        String[] res = new String[n];
        for (int i = 0; i < n; i++) {
            res[i] = ns();
        }
        return res;
    }
 
    int[] nia(int n) throws IOException {
        int[] res = new int[n];
        for (int i = 0; i < n; i++) {
            res[i] = ni();
        }
        return res;
    }
 
    long[] nla(int n) throws IOException {
        long[] res = new long[n];
        for (int i = 0; i < n; i++) {
            res[i] = nl();
        }
        return res;
    }
 
    static BufferedReader in;
    static PrintWriter out;
    static StringTokenizer tok;
 
    public static void main(String[] args) throws IOException {
        in = new BufferedReader(new InputStreamReader(System.in));
        out = new PrintWriter(System.out);
        tok = new StringTokenizer("");
        Main main = new Main();
        main.solve();
        out.close();
    }
}

Compiler output:
Main.java:15: error: cannot find symbol
        else put.println(0);
             ^
  symbol:   variable put
  location: class Main
1 error
Language: C++

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

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

#include<iostream>
#include<cmath>
#include<string>
using namespace std;
int old,k;
int main(){
	cin>>old>>k;
	if(old<6){
		cout<<0;
	}
	else if(old<13){
		cout<<k/2;	
	}
	else(
		cout<<k;
	)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ')' before ';' token
   15 |                 cout<<k;
      |                        ^
      |                        )
a.cc:14:13: note: to match this '('
   14 |         else(
      |             ^
a.cc:16:9: error: expected primary-expression before ')' token
   16 |         )
      |         ^
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(n>=6&&n<=12)
    cout<<(b/2)<<endl;
  else if(a<=5)
    cout<<0<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'n' was not declared in this scope
    8 |   else if(n>=6&&n<=12)
      |           ^
Language: Java

#include <bits/stdc++.h>

using namespace std;

int main() {

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


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:8: error: not a statement
    cin>>a>>b;
          ^
Main.java:9: error: not a statement
    if(a==13)cout<<b<<endl;
                    ^
Main.java:10: error: not a statement
    else if(a<=5)cout<<0<<endl;
                        ^
Main.java:11: error: not a statement
    else cout<<b/2;
             ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
7 errors
Language: C++

a, b = [int(i) for i in input().split()]
if a >= 13: print(b)
elif a >= 6: print(b // 2)
else: print(0)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = [int(i) for i in input().split()]
      | ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapece'
    2 | using namesapece std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> A >> B;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << B << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << B << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << 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:10:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << 0 << endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << 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:12:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     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)
      |     ^~~~
Language: C++

#include<iostream> 

int main() {
	int A,B;
  	cin >> A >> B;
  	B =  A >= 13? B : (A >= 6? (B/2) : 0 );
  	cout << B;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> A >> B;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << B;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define  ft  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define  ll  long long
#define  pi  pair<int,int>
#define  pb  push_back
#define  F   first
#define  S   second
#define  B   begin()
#define  E   end()
const int N=2e5+3;
//string s,p;
//vector<int>v;
//map<int,int>mp;

int main()
{
    ft
    int t,i,j,n,m,l,r;
    cin>>n>>m;
    if(n>12)
    {
        cout<<m<<"\n;
    }
    else if(n>5)
    {
        cout<<m/2<<"\n";
    }
    else
    {
        cout<<"0\n";
    }
    return 0;
}



Compiler output:
a.cc:23:18: warning: missing terminating " character
   23 |         cout<<m<<"\n;
      |                  ^
a.cc:23:18: error: missing terminating " character
   23 |         cout<<m<<"\n;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:24:5: error: expected primary-expression before '}' token
   24 |     }
      |     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected primary-expression before '>' token
    6 |   if(a=>13){
      |        ^
a.cc:8:15: error: expected primary-expression before '>' token
    8 |   }else if(12=>a=>6){
      |               ^
a.cc:8:18: error: expected primary-expression before '>' token
    8 |   }else if(12=>a=>6){
      |                  ^
Language: C++

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

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

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

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

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

int main() {
  int a, b;
  cin >> a >> b;
  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:12:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     ans = b;
      |     ^~~
      |     abs
a.cc:14:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |     ans = b / 2;
      |     ^~~
      |     abs
a.cc:16:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |     ans = 0;
      |     ^~~
      |     abs
a.cc:17:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |   cout << ans << endl;
      |           ^~~
      |           abs
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 cout << b << endl;
  return 0;
}


Compiler output:
main.c: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>int main() {int A, B; cin >> A >> B;cout << (A >= 13 ? B : (A <= 5 ? 0 : B / 2)) << endl;}

Compiler output:
a.cc:1:29: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>int main() {int A, B; cin >> A >> B;cout << (A >= 13 ? B : (A <= 5 ? 0 : B / 2)) << endl;}
      |                             ^~~~
a.cc:1:10: fatal error: bits/stdc++.h>in: No such file or directory
    1 | #include <bits/stdc++.h>int main() {int A, B; cin >> A >> B;cout << (A >= 13 ? B : (A <= 5 ? 0 : B / 2)) << endl;}
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#define int long long
#define  FastIO ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
int32_t main()
{
    FastIO
    int n,m,b,c;
    cin>>n>>m;
    int a[n];
    for(int i=0;i<n;++i)
    cin>>a[i];
    vector<pair<int,int>>v(m);
    for(int i=0;i<m;++i)
    {
        cin>>b>>c;
        v.push_back(make_pair(c,b));
    }
    sort(a,a+n);
    sort(v.rbegin(),v.rend());
    int cnt=0,s=0,p=0;
    for(auto x:v)
    {
        int c=x.first;
        int b=x.second;
        cnt=0;
        for(int j=p;j<n;++j)
        {
            if(a[j]>=c||cnt>=b)
            break;
            if(a[j]<c&&cnt<b)
            {
                a[j]=c;
            }
            ++p;
            ++cnt;
        }
    }
    int ans=0;
    for(int i=0;i<n;++i)
    {
        ans+=a[i];
    }
    cout<<ans;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:2:13: error: expected ';' before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:8:5: note: in expansion of macro 'int'
    8 |     int n,m,b,c;
      |     ^~~
a.cc:9:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |     cin>>n>>m;
      |          ^
      |          yn
a.cc:9:13: error: 'm' was not declared in this scope; did you mean 'tm'?
    9 |     cin>>n>>m;
      |             ^
      |             tm
a.cc:12:10: error: 'a' was not declared in this scope
   12 |     cin>>a[i];
      |          ^
a.cc:16:14: error: 'b' was not declared in this scope
   16 |         cin>>b>>c;
      |              ^
a.cc:16:17: error: 'c' was not declared in this scope
   16 |         cin>>b>>c;
      |                 ^
a.cc:19:10: error: 'a' was not declared in this scope
   19 |     sort(a,a+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>12){
   cout << B << endl;
 else{
   cout << B/2 << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' before 'else'
   12 |  else{
      |  ^~~~
a.cc:10:15: note: to match this '{'
   10 |  else if(A>12){
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'A' was not declared in this scope
    7 |  if(A<6){
      |     ^
a.cc:11:12: error: 'B' was not declared in this scope
   11 |    cout << B << endl;
      |            ^
a.cc:12:2: error: expected '}' before 'else'
   12 |  else{
      |  ^~~~
a.cc:10:15: note: to match this '{'
   10 |  else if(A>12){
      |               ^
a.cc:13:12: error: 'B' was not declared in this scope
   13 |    cout << B/2 << endl;
      |            ^
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] lines = line.split(" ");

		int A = Integer.parseInt(lines[0]);
		int B = Integer.parseInt(lines[1]);

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

}

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

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


Compiler output:
a.cc:8:14: error: stray '\' in program
    8 |     cout<<x<<\n<<endl;
      |              ^
a.cc: In function 'int main()':
a.cc:8:15: error: 'n' was not declared in this scope
    8 |     cout<<x<<\n<<endl;
      |               ^
Language: C++

include <bits/stdc++.h>
#define REP(i,n) for (int i = 0; i <(n); ++i)
#define ALL(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int,int>;


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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:6:11: error: 'pair' does not name a type
    6 | using P = pair<int,int>;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope
   11 |   cin << a << b;
      |   ^~~
a.cc:12:15: error: 'cout' was not declared in this scope
   12 |   if(a >= 13) cout << b << endl;
      |               ^~~~
a.cc:12:28: error: 'endl' was not declared in this scope
   12 |   if(a >= 13) cout << b << endl;
      |                            ^~~~
a.cc:13:18: error: 'cout' was not declared in this scope
   13 |   else if(a < 5) cout << 0 << endl;
      |                  ^~~~
a.cc:13:31: error: 'endl' was not declared in this scope
   13 |   else if(a < 5) cout << 0 << endl;
      |                               ^~~~
a.cc:14:8: error: 'cout' was not declared in this scope
   14 |   else cout << b/2 << endl;
      |        ^~~~
a.cc:14:23: error: 'endl' was not declared in this scope
   14 |   else cout << b/2 << endl;
      |                       ^~~~
Language: C++

using namespace std;
int main(){
  int A;
  int B;
  cin>>A;
  cin>>B;
if (B%2 == 0)
    {
      if (A >= 13)
      {
        cout<< B;
      }
      else if(A <= 12 && A >= 6)
      {
        cout<< B/2;
      }
      else 
      {
        cout<<0;
      } 
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | using namespace std;
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<< B;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout<< B/2;
      |         ^~~~
a.cc:15:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout<<0;
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i,n) for(int i=0;i<(n);i++)
#define repa(i,a,n) for(int i=(a);i<(n);i++)
#define rrep(i,n) for(int i=n-1;i>=0;i--)
#define rrepa(i,a,n) for(int i=n-1;i>=(a);i--)
#define all(a) (a).begin(),(a).end()
#define MOD 1000000007
#define cmax(a,b) a=max(a,b)
#define cmin(a,b) a=min(a,b)
#define vc vector

typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef pair<int,int> pi;
typedef pair<ll,ll> pl;

int main(){

    int a,b;
    cin>>a>>b;
  	b/=2;
  	int ans=0;
    if(a>=6)ans+=b;
  	if(a>=13)ans+=b;
  
    ccout<<ans<<"\n";

    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:5: error: 'ccout' was not declared in this scope
   34 |     ccout<<ans<<"\n";
      |     ^~~~~
Language: Java

if(A<=5)
System.out.println(" free of cost ");
if(A>=13)
  System.out.println(" Your cost is "+B);
if(A>=6&&A<=12)
  System.out.println(" Your cost is "+B/2);

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
if(A<=5)
^
Main.java:3: error: class, interface, enum, or record expected
if(A>=13)
^
Main.java:5: error: class, interface, enum, or record expected
if(A>=6&&A<=12)
^
3 errors
Language: Java

import java.lang.*;
import java.io.*;
class Main
{
public static void main(String[]args)throws IOException
{
  int A,B;
InputStreamReader isr=new InputStreamReader(System.in);
BufferedRedaer br=new BufferedReader(isr);
System.out.print(" enter your age ");
A=Integer.parseInt(br.readLine());
System.out.print(" enter the cost b which is an even no ");
B=Integer.parseInt(br.readLine());
if(A<=5)
System.out.println(" free of cost ");
if(A>=13)
  System.out.println(" Your cost is "+B);
if(A>=6&&A<=12)
  System.out.println(" Your cost is "+B/2);
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
BufferedRedaer br=new BufferedReader(isr);
^
  symbol:   class BufferedRedaer
  location: class Main
1 error
Language: Java

import java.lang.*;
import java.io.*;
class ruhani
{
public static void main(String[]args)throws IOException
{
  int A,B;
InputStreamReader isr=new InputStreamReader(System.in);
BufferedRedaer br=new BufferedReader(isr);
System.out.print(" enter your age ");
A=Integer.parseInt(br.readLine());
System.out.print(" enter the cost b which is an even no ");
B=Integer.parseInt(br.readLine());
if(A<=5)
System.out.println(" free of cost ");
if(A>=13)
  System.out.println(" Your cost is "+B)
if(A>=6&&A<=12)
  System.out.println(" Your cost is "+B/2)
  }
}
  

Compiler output:
Main.java:17: error: ';' expected
  System.out.println(" Your cost is "+B)
                                        ^
Main.java:19: error: ';' expected
  System.out.println(" Your cost is "+B/2)
                                          ^
2 errors
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    8 |   if (A >= 13) puts(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/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:9:26: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    9 |   else if (A >= 6) puts(B/2);
      |                         ~^~
      |                          |
      |                          int
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C++

#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using ll = long long;
using namespace std;

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

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

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

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


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

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


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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A B;
  scanf("%d %d", &A, &B);
  
  if(A >= 13){
    printf("%d", B)
  }
  if(6 <= A && A <= 12){
    printf("%d", B/2)
  }
  else{
    printf("%d", 0)
  }
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'B'
    5 |   int A B;
      |         ^
a.cc:6:19: error: 'A' was not declared in this scope
    6 |   scanf("%d %d", &A, &B);
      |                   ^
a.cc:6:23: error: 'B' was not declared in this scope
    6 |   scanf("%d %d", &A, &B);
      |                       ^
a.cc:15:20: error: expected ';' before '}' token
   15 |     printf("%d", 0)
      |                    ^
      |                    ;
   16 |   }
      |   ~
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 << (1/2)*B << endl;
   }
}

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

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

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

Compiler output:
a.cc:4:1: error: 'main' does not name a type
    4 | main int{
      | ^~~~
Language: C++

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

    return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: expected ';' before '}' token
   18 |     return 0
      |             ^
      |             ;
   19 | }
      | ~            
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {   int B=100;
      | ^
Language: C++

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

    return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: expected ';' before '}' token
   18 |     return 0
      |             ^
      |             ;
   19 | }
      | ~
Language: C++

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

    return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'a' was not declared in this scope
   11 |     else if (age>=6&&a<=12){
      |                      ^
a.cc:18:13: error: expected ';' before '}' token
   18 |     return 0
      |             ^
      |             ;
   19 | }
      | ~
Language: C++

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'a' was not declared in this scope
   10 |     else if (age>=6&&a<=12){
      |                      ^
Language: C++

#include <iostream>

using namespace std;
int cost(int A,int B){
 if(A>=13){
   return B;
 }
else if(A>=6&&A<=12){
    return B/2;
}
else if(A<=5){
    return 0;
}
}


int main()
{
int a,b;
cin>>a>>b;
cout<<cost(a,b)<<endl<<"Takahashi is"<<" "<<a<<" "<<"and the cost is"<<" "<<b;
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:22:14: error: expected '}' at end of input
   22 |     return 0;
      |              ^
a.cc:18:1: note: to match this '{'
   18 | {
      | ^
a.cc: In function 'int cost(int, int)':
a.cc:14:1: warning: control reaches end of non-void function [-Wreturn-type]
   14 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'rideCose' was not declared in this scope; did you mean 'rideCost'?
    9 |     if(6<=A<=12)rideCose=B/2;
      |                 ^~~~~~~~
      |                 rideCost
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before 'cout'
    7 |         else ( 6 <= A ) cout << B / 2 << endl;
      |                        ^~~~~
      |                        ;
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout << "0" << endl;
      |         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:9: error: expected identifier or '(' before ';' token
    3 | int 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();
        
        if (a =< 5) {
            System.out.println(0);
            return;
        } else if (a >= 13) {
            System.out.println(b);
        } else {
            System.out.println(b / 2);
        }

        
    }
}

Compiler output:
Main.java:12: error: illegal start of type
        if (a =< 5) {
                 ^
Main.java:12: error: ';' expected
        if (a =< 5) {
                  ^
Main.java:15: error: 'else' without 'if'
        } else if (a >= 13) {
          ^
3 errors
Language: C++

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

int main(){
  int N, M;
  cin>>N>>M;
  priority_queue<int> gateL;
  priority_queue<int, vector<int>, greater<int>> gateR;
  for(int i=0; i<M; i++){
    int L,R;
    cin>>L>>R;
    gateL.push(L);
    gateR.push(R);
  }
  int min=gateL.top(); //Lで最大
  int max=gateR.top(); //Rで最少
  if(L>=R) cout<<0<<endl;
  else cout<<max-min+1<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:6: error: 'L' was not declared in this scope
   17 |   if(L>=R) cout<<0<<endl;
      |      ^
a.cc:17:9: error: 'R' was not declared in this scope
   17 |   if(L>=R) cout<<0<<endl;
      |         ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'a' was not declared in this scope
    8 |   if(a>12)  cout<<m<<endl;
      |      ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'cot' was not declared in this scope; did you mean 'cos'?
    7 |   if (a > 12) cot << b << endl;
      |               ^~~
      |               cos
Language: C++

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

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

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

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

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

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

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

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

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

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

/*

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

  pow(a,b)=aのb乗

  */

int main(void) {

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:116:17: error: expected '(' before '{' token
  116 |         else if {
      |                 ^
      |                 (
a.cc:121:9: error: 'else' without a previous 'if'
  121 |         else {
      |         ^~~~