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

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

int main() {
  int A,P:
  cin >> A >> P;
  cout << (A*3+P)/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: found ':' in nested-name-specifier, expected '::'
    5 |   int A,P:
      |          ^
      |          ::
a.cc:5:9: error: 'P' has not been declared
    5 |   int A,P:
      |         ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> A >> P;
      |       ^~
a.cc:7:16: error: 'P' was not declared in this scope
    7 |   cout << (A*3+P)/2 << endl;
      |                ^
Language: C++

#include<isotream>

using namespace std;

int main(){
  	int A,P;
  	cin >> A >> P;
  cout << (3*A+P)/2;
  
}

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

#include<iostream>

using namespace std;

int main{
  int A,P;
  cin >> A >> P;
  cout << (3*A+P)/2;
}

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int A,P;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> A >> P;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << (3*A+P)/2;
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: Java

mport java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;
 
 
class Triplet<T1, T2, T3> {
 
    public T1 x;
    public T2 y;
    public T3 z;
 
    public Triplet(T1 x, T2 y, T3 z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }
    public String toString() {
        return "(" + x + ", " + y + "," + z + ")";
    }
}
 
 class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n= in.nextInt();
        Triplet<String, Integer, Integer>[] entries = new Triplet[n];
 
        for(int i=0;i<n;i++){
            entries[i] = new Triplet<>(in.next(), in.nextInt(), i+1);
        }
 
        Comparator<Triplet<String, Integer, Integer>> cmpx = Comparator.comparing(v -> v.x);
        Comparator<Triplet<String, Integer, Integer>> cmpy = Comparator.comparing(v->v.y);
        Arrays.sort(entries, cmpx.thenComparing(cmpy.reversed()));
 
        for(int i=0;i<n;i++){
            System.out.println(entries[i].z);
        }
 
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Arrays;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Comparator;
^
Main.java:3: error: class, interface, enum, or record expected
import java.util.Scanner;
^
3 errors
Language: Java

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;
 
class Shop implements Comparable<Shop>{
    String s; int p; int n;
    public Shop(String s, int p, int n){
        this.s = s;
        this.p = p;
        this.n = n;
    }
    @Override
    public int compareTo(Shop m){
        int i = (this.s).compareTo(m.s);
        if(i==0){
            int j = m.p - this.p;
            return j;
        }
        return i;
    }
}
 
public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        ArrayList<Shop> m = new ArrayList<Shop>();
        for(int i=0; i<n; i++){
            String s = sc.next();
            int p = Integer.parseInt(sc.next());
            m.add(new Shop(s,p,i));
        }
        Collections.sort(m);
        for(int i=0;i<n;i++){
            System.out.println(m.get(i).n+1);
        }
        sc.close();
    }
}
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

class Shop implements Comparable<Shop>{
    String s; int p; int n;
    public Shop(String s, int p, int n){
        this.s = s;
        this.p = p;
        this.n = n;
    }
    @Override
    public int compareTo(Shop m){
        int i = (this.s).compareTo(m.s);
        if(i==0){
            int j = m.p - this.p;
            return j;
        }
        return i;
    }
}

public class Main{
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        ArrayList<Shop> m = new ArrayList<Shop>();
        for(int i=0; i<n; i++){
            String s = sc.next();
            int p = Integer.parseInt(sc.next());
            m.add(new Shop(s,p,i));
        }
        Collections.sort(m);
        for(int i=0;i<n;i++){
            System.out.println(m.get(i).n+1);
        }
        sc.close();
    }
}



Compiler output:
Main.java:40: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:41: error: class, interface, enum, or record expected
import java.util.ArrayList;
^
Main.java:42: error: class, interface, enum, or record expected
import java.util.Collections;
^
3 errors
Language: C++

//include
//----------
#include<iostream>
//----------
using namespace std;
int main(){
  int a,p;
  cin>>a>>p;
  p+=3*a;
  p/=2;
  cou<<p<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'cou' was not declared in this scope
   11 |   cou<<p<<endl;
      |   ^~~
Language: C

#include <stdio.h>


int main(void) {

	int A, P, Pie;

	scanf_s("%d	%d", &A, &P);

	Pie = (A * 3 + P) / 2;

	printf("%d\n", Pie);

	return 0;

}

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

//include
//----------
#include<iostream>
//----------
int main(){
  int a,p;
  cin>>a>>p;
  p+=3*a;
  p/=2;
  cou<<p<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>a>>p;
      |   ^~~
      |   std::cin
In file included from a.cc:3:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:3: error: 'cou' was not declared in this scope
   10 |   cou<<p<<endl;
      |   ^~~
a.cc:10:11: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cou<<p<<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)
      |     ^~~~
Language: Java

public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int apple = new java.util.Scanner( System.in).nextInt();
		int kakera = new java.util.Scanner(System.in).nextInt();
		int hoge = (kakera + apple * 3)/2;
		System.out.println(hoge);
	}

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

public class Sample001 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int apple = new java.util.Scanner( System.in).nextInt();
		int kakera = new java.util.Scanner(System.in).nextInt();
		int hoge = (kakera + apple * 3)/2;
		System.out.println(hoge);
	}

}


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

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

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

	total = a*3 + p;
	pie = total / 2;

	cout << pie << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'total' was not declared in this scope
    8 |         total = a*3 + p;
      |         ^~~~~
a.cc:9:9: error: 'pie' was not declared in this scope; did you mean 'pipe'?
    9 |         pie = total / 2;
      |         ^~~
      |         pipe
Language: C++

#include<iostream>
using namespace std;
int main(){
int N,P,A;
  sinc>>N,P;
  A=(3*N+P)/2;
  cout<<A<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'sinc' was not declared in this scope
    5 |   sinc>>N,P;
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int N,P,A;
  sinc>>N,P;
  A=(3*A+P)/2;
  cout<<A<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'sinc' was not declared in this scope
    5 |   sinc>>N,P;
      |   ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
#include <string>
#include <stdio.h>
using namespace std;

int main(){
    int N,M;
    cin >> N >> M;
    
    int k[M];
    int s[M][N];
    int p[M];
    int i2str[10];
    int answer = 0;
    int check = 0;

    int i,j,l;
    for(i = 0; i < M; i++){
        cin >> k[i];
        for(j = 0; j < k[i]; j++){
            cin >> s[i][j];
        }
    }
    for(i = 0; i < M; i++){
        cin >> p[M];
    }
    //i=行、j=列
    for(i = 0; i < pow(2,N); i++){
        bool ok = true;
        for(l = 0; l < 10; l++){
            i2str[l] = i % 2;
            i /= 2;
        }
        for(j = 0; j < k[i]; j++){
            check += i2str[s[i][j] - 1];
            if(check % 2 != p[i]){
               ok = false;
               break();
            }
        }
    answer += ok;
    }
    cout << answer;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:41:21: error: expected ';' before '(' token
   41 |                break();
      |                     ^
      |                     ;
a.cc:41:22: error: expected primary-expression before ')' token
   41 |                break();
      |                      ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'b' was not declared in this scope
    6 |   cout << ((a * 3) + b)/2 << endl;
      |                      ^
Language: Java

import java.util.*;
import java.io.*;

public class Task {
    public static void main(String[] args) {
        Solver s = new Solver();
        s.solve();
    }
}

class Solver {
    Reader in = new Reader();
    Writer out = new Writer();

    void solve() {
        int a = in.nextInt();
        int b = in.nextInt();
        int c = a * 3 + b;
        int d = c / 2;
        out.println(d);
        out.flush();
    }
}

class Reader {
    private StringTokenizer a;
    private BufferedReader b;

    Reader() {
        a = null;
        try {
            b = new BufferedReader (new InputStreamReader (System.in)); // for file IO, replace this with new FileReader ("in.txt")
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public String next () {
        while(a == null || !a.hasMoreTokens()) {
            try {
                a = new StringTokenizer (b.readLine());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return a.nextToken();
    }

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

    public long nextLong () {
        return Long.parseLong(this.next());
    }

    public double nextDouble () {
        return Double.parseDouble(this.next());
    }

    public String nextLine() {
        try {
            return b.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return "";
    }
}

class Writer {
    private PrintWriter a;
    private StringBuffer b;

    Writer() {
        try {
            a = new PrintWriter (System.out); // for file IO, replace this with new FileWriter ("out.txt")
        } catch (Exception e) {
            e.printStackTrace();
        }
        b = new StringBuffer ("");
    }

    public void print(Object s) {
        b.append(s);
    }

    public void println(Object s) {
        b.append(s).append('\n');
    }

    public void flush() {
        a.print(b);
        a.flush();
        a.close();
    }
}

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

#include <stdio.h>
int main()
{
	int A, P,Pa;//PaはAを三等分した後に欠片を足した値
	scanf_s("%d",&A);
	scanf_s("%d",&P);
	Pa = A * 3+P;
	printf("%d", Pa / 2);
	scanf_s("%d",&A);


}

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

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

int main(){
  int a,p;
	cin>>>a>>p;
	cout<< (3*a + p)/2 <<endl;
}

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

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

int main(){
	cin>>>a>>p;
	cout<< (3*a + p)/2 <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected primary-expression before '>' token
    5 |         cin>>>a>>p;
      |              ^
a.cc:5:15: error: 'a' was not declared in this scope
    5 |         cin>>>a>>p;
      |               ^
a.cc:5:18: error: 'p' was not declared in this scope
    5 |         cin>>>a>>p;
      |                  ^
Language: C++

#include <bits/stdc++.h>

int a, p

int main() {
	std::cin >> a >> p;
    int piece = a * 3 + p;
    std::cout << std::floor(piece/2) << std::endl;;

Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int main() {
      | ^~~
Language: Java

import java.io.IOException;
import java.io.*;
import java.util.*;


class Main {

	static class Res implements 
	{
		String name;
		int score;
		int index;
		Res(int i,String x, int g)
		{
			index = i;
			name = x;
			score = g;
		}
			}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
			FastScanner s = new FastScanner();
			int a = s.nextInt();
			
	TreeSet<Res> tree = new TreeSet<>
		((x, y)-> x.name.compareTo(y.name)==0?Integer.compare(y.score, x.score):x.name.compareTo(y.name));	
		
      
      
			for(int i = 0;i<a;i++)
			{
				tree.add( new Res(i+1,s.nextString(), s.nextInt()) );
			}
				
			for(Res res : tree)
				System.out.println(res.index);
			
	}

static   class FastScanner {
		
	    private InputStream mIs;
		private byte[] buf = new byte[1024];
		private int curChar;
		private int numChars;

		public FastScanner() {
			this(System.in);
		}

		public FastScanner(InputStream is) {
			mIs = is;
		}

		public int read() {
			if (numChars == -1)
				throw new InputMismatchException();
			if (curChar >= numChars) {
				curChar = 0;
				try {
					numChars = mIs.read(buf);
				} catch (IOException e) {
					throw new InputMismatchException();
				}
				if (numChars <= 0)
					return -1;
			}
			return buf[curChar++];
		}

		public String nextLine() {
			int c = read();
			while (isSpaceChar(c))
				c = read();
			StringBuilder res = new StringBuilder();
			do {
				res.appendCodePoint(c);
				c = read();
			} while (!isEndOfLine(c));
			return res.toString();
		}

		public String nextString() {
			int c = read();
			while (isSpaceChar(c))
				c = read();
			StringBuilder res = new StringBuilder();
			do {
				res.appendCodePoint(c);
				c = read();
			} while (!isSpaceChar(c));
			return res.toString();
		}

		public long nextLong() {
			int c = read();
			while (isSpaceChar(c))
				c = read();
			int sgn = 1;
			if (c == '-') {
				sgn = -1;
				c = read();
			}
			long res = 0;
			do {
				if (c < '0' || c > '9')
					throw new InputMismatchException();
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isSpaceChar(c));
			return res * sgn;
		}

		public int nextInt() {
			int c = read();
			while (isSpaceChar(c))
				c = read();
			int sgn = 1;
			if (c == '-') {
				sgn = -1;
				c = read();
			}
			int res = 0;
			do {
				if (c < '0' || c > '9')
					throw new InputMismatchException();
				res *= 10;
				res += c - '0';
				c = read();
			} while (!isSpaceChar(c));
			return res * sgn;
		}

		public boolean isSpaceChar(int c) {
			return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
		}

		public boolean isEndOfLine(int c) {
			return c == '\n' || c == '\r' || c == -1;
		
		}	

	}

}


Compiler output:
Main.java:9: error: illegal start of type
	{
	^
1 error
Language: C++

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

int main () {
	int A , P ;
	cin >> A >> P ;
	cout << (3 * A + P ) / 2 << endl ;
	return 0;
}


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

#include<stdio.h>

int main(void){
  int A, P;
  cin >> A >> P;
  cout << (A*3 + P)/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> A >> P;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << (A*3 + P)/2 << endl;
      |   ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |   cout << (A*3 + P)/2 << endl;
      |                          ^~~~
Language: C

#include<stdio.h>
int main(){
  int k,m;
  int p;
  scanf("%d%d",&k,&m);
  p=k*3+m;
  p=/2;
  printf("%d",p);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: expected expression before '/' token
    7 |   p=/2;
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,p;
  cin>>a>>p;
  cout<<(a*3+p)*2<<emdl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'emdl' was not declared in this scope
    7 |   cout<<(a*3+p)*2<<emdl;
      |                    ^~~~
Language: C++

#include <cstdio>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <queue>
#include <map>
#include <set>
#include <stack>
using namespace std;
#define ll long long
#define ull unsigned long long
#define up(i, a, b) for (int i = (a); i <= (b); i++)
#define down(i, a, b) for (int i = (a); i >= (b); i--)
#define mem(x, y) memset(x, (y), sizeof x)
#define ff first
#define ss second
#define mp(x, y) make_pair(x, y)
#define pb(x) push_back(x)
#define sc(a) scanf("%d", &a)
#define scl(a) scanf("%lld", &a)
#define scs(a) scanf("%s", a)
#define pr(a, b) printf("%d%c", a, b)
#define prl(a, b) printf("%lld%c", a, b)
#define PQ priority_queue
#define ld long double
#define all(v) v.begin(), v.end()
#define IOS ios::sync_with_stdio(false), cin.tie(0), cout.tie(0)

typedef pair<int, int> pii;
typedef map<int, int> mii;
typedef vector<int> V;

int c[400010];
struct node {
	int s,t,x;
};
node a[400010];
bool cmp(node a,node b) {
	return a.x<b.x;
}
int ans[400010];
node doo[400010];
inline int read() {
	int x=0;
	char c=getchar();
	for(; isdigit(c); c=getchar()) x=x*10+c-'0';
	return x;
}
int main() {
	int n=read(),q=read();
	up(i,1,n) {
		a[i].s=read();a[i].t=read();a[i].x=read();
	}
	sort(a+1,a+1+n,cmp);
	up(i,1,q) {
		int x=read();
		c[i]=x;
	}

	up(i,1,n) {
		auto l=lower_bound(c+1,c+1+n,a[i].s-a[i].x)-c;
		auto r=lower_bound(c+1,c+1+n,a[i].t-a[i].x)-1;

		doo[i].s=l,doo[i].s=r,doo[i].x=a[i].x;
	}
	int f=1;
	up(i,1,q)
	
	up(i,1,q)
	if(ans[i]==0)pr(-1,'\n');
	else pr(ans[i],'\n');
}

Compiler output:
a.cc: In function 'int main()':
a.cc:68:37: error: invalid conversion from 'int*' to 'int' [-fpermissive]
   68 |                 doo[i].s=l,doo[i].s=r,doo[i].x=a[i].x;
      |                                     ^
      |                                     |
      |                                     int*
Language: C

#include<stdio.h>

int main(void){
    int N;
    int ai;
    int pi;

    


    typedef struct restaurant {
        char name[10];
        int point;
        int bango;
        int kasira;
        int kasira2;
        int kasira3;
        int ans;
    }rest;

    rest R[100];
    rest dummy;

    scanf("%d",&N);

    for(ai=0;ai<N;ai++){
        scanf("%s",R[ai].name);
        scanf("%d",&R[ai].point);
        R[ai].kasira=R[ai].name[0]-'0';
        R[ai].kasira2=R[ai].name[1]-'0';
        R[ai].kasira3=R[ai].name[2]-'0';
        R[ai].bango=ai+1;

    }

    for(ai=0;ai<N;ai++){
        for(pi=ai+1;pi<N;pi++){
            if(R[ai].kasira>R[pi].kasira){
                dummy=R[ai];
                    R[ai]=R[pi];
                    R[pi]=dummy;
            }
        }
    }

    /*for(ai=0;ai<N;ai++){
        printf("%d kasira=%d\n",R[ai].bango,R[ai].kasira);
    }*/

    for(ai=0;ai<N;ai++){
        for(pi=ai+1;pi<N;pi++){
            if(R[ai].kasira==R[pi].kasira){
                if(R[ai].kasira2==R[pi].kasira2){
                    if(R[ai].kasira3>R[pi].kasira3){
                    dummy=R[ai];
                    R[ai]=R[pi];
                    R[pi]=dummy;
                    break}

                    else if(R[ai].point<R[pi].point){
                    dummy=R[ai];
                    R[ai]=R[pi];
                    R[pi]=dummy;}
                    break;

                }
                else if(R[ai].point<R[pi].point){
                    dummy=R[ai];
                    R[ai]=R[pi];
                    R[pi]=dummy;
                    break;
                }
            
            }

        }
    }
    for(ai=0;ai<N;ai++){
        printf("%d\n",R[ai].bango);
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:58:26: error: expected ';' before '}' token
   58 |                     break}
      |                          ^
      |                          ;
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int A,P;
  cin>>A>>P;
  
  int n = 3*A + p;
  
  cout<<n/2<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'p' was not declared in this scope
    9 |   int n = 3*A + p;
      |                 ^
Language: C++

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

int main()
{
  int a,b;
  cin>>a>>b;
  cout<<(a*3+b)/2;
 
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A;
  int P;
  cin >> A >> P;
  int X =3A+P
    int Y = X/2
    cout << Y <<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: unable to find numeric literal operator 'operator""A'
    8 |   int X =3A+P
      |          ^~
Language: C++

#include <iostream>
int main(){
    int a,p;
    std::cin >> a >> p;
    std::cout << (a*3+p)/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     std::cout << (a*3+p)/2 << endl;
      |                               ^~~~
      |                               std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

/*************************
author : coldbeer
2019-05-26 05:46:46 PM IST
*************************/
#include<bits/stdc++.h>
using namespace std;
#define endl "\n"

typedef long long ll;
vector<set<ll>> bulb(11,set<ll>());
vector<ll> sw(10,0);
vector<ll> sub[1<<11];
vector<ll> p(11,0);

ll main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	ll n,m; cin >> n >> m;
	for(ll i = 0;i < n;i++) sw[i] = i + 1;
	for(ll i = 0;i < m;i++){
		ll k; cin >> k;
		for(ll j = 0;j < k;j++){
			ll item;
			cin >> item;
			bulb[i + 1].insert(item);
		}
	}

	for(ll i = 0;i < (1<<n);i++){
		vector<ll> temp;
		for(ll j = 0;j < n;j++){
			if(i & (1 << j))
				temp.push_back(sw[j]);
		}
		if(temp.size())
			sub[i] = temp,temp.clear();
	}

	for(ll i = 0;i < m;i++) cin >> p[i + 1];

	ll ans = 0;
	for(ll i = 0;i < (1 << n);i++){
		if(sub[i].size()){
			vector<ll> cnt(11,0);
			for(ll x : sub[i]){
				for(ll cx = 1;cx < m + 1;cx++){
					if(bulb[cx].count(x)){
						cnt[cx]++;
					}
				}
			}
			ll ctr = 0;
			for(ll z = 1;z < m + 1;z++)
				if((cnt[z] % 2)== p[z]) ctr++;
			if(ctr == m) ans++;
		}
	}
	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc:15:1: error: '::main' must return 'int'
   15 | ll main()
      | ^~
Language: C++

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

int main()
{
  int A,Ｐ;
  cin >> A >> P >> endl;
  int B = 3 * A + P;
  int C = B / 2;
     cout << C << endl;
  
  
    return 0;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'P' was not declared in this scope
    7 |   cin >> A >> P >> endl;
      |               ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int A,Ｐ;
  cin >> A >> P >> endl;
  int B = 3 * A + P;
  int C = B / 2;
     cout << C << endl;
  
  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'P' was not declared in this scope
    6 |   cin >> A >> P >> endl;
      |               ^
Language: C++

#include<iosteam>
using namespace std;

int main()
{
  int A, P;

  cin >> A >> P;

  cout << (3 * A + P) / 2 << endl;
  return 0;
}

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

class apple pie
{
  public static void main(string[]args)
  {
    int numA = 3;
    int numB = 2;
    if 3P = A
      System.out.println(""P"このかけらかてきる");
    if 2A = 3p
      System.out.println(""P"このかけらかてきる");
  }
}

Compiler output:
Main.java:1: error: '{' expected
class apple pie
           ^
Main.java:7: error: '(' expected
    if 3P = A
      ^
Main.java:7: error: ')' expected
    if 3P = A
        ^
Main.java:7: error: ';' expected
    if 3P = A
             ^
Main.java:8: error: ')' or ',' expected
      System.out.println(""P"?????????");
                           ^
Main.java:8: error: ';' expected
      System.out.println(""P"?????????");
                            ^
Main.java:9: error: '(' expected
    if 2A = 3p
      ^
Main.java:9: error: ')' expected
    if 2A = 3p
        ^
Main.java:9: error: ';' expected
    if 2A = 3p
             ^
Main.java:10: error: ';' expected
      System.out.println(""P"?????????");
            ^
Main.java:10: error: ')' or ',' expected
      System.out.println(""P"?????????");
                           ^
Main.java:10: error: ';' expected
      System.out.println(""P"?????????");
                            ^
12 errors
Language: C

#include<stdio.h>

int main(){
  int A, P, I;
  scanf("%d %d", &A, &P);
  I = (3 * A + P) / 2;
  printf("%d\n", I);
  retrun 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'retrun' undeclared (first use in this function)
    8 |   retrun 0;
      |   ^~~~~~
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: expected ';' before numeric constant
    8 |   retrun 0;
      |         ^~
      |         ;
Language: C

#include <stdio.h>

int main(){
  int A,P,Pie,S;
  
  scanf("%d%d",&A,&P);
  if(A >= 0 && P <= 100){
  S = ((A*3) + P) - ((A * 3) + P) % 3);
  Pie = S /3;
  }
     
  printf("%d",Pie);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:38: error: expected ';' before ')' token
    8 |   S = ((A*3) + P) - ((A * 3) + P) % 3);
      |                                      ^
      |                                      ;
main.c:8:38: error: expected statement before ')' token
Language: C

#include<stdio.h>

int main(){
int a,p;
int pi;
scanf("%d %d",&a,&p);


if((a>=0) && (p<=100)){



p = 3a+p;

pi = p/2;

}

printf("&d",pi);

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:5: error: invalid suffix "a" on integer constant
   13 | p = 3a+p;
      |     ^~
Language: Java

import java.util.Scanner;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int A = sc.nextInt();
   int P = sc.nextInt();
   
   int pieces = 3A+P;
 
   int pie = pieces/3;
   
   System.out.println(pie);
   
   
 }
}

Compiler output:
Main.java:8: error: ';' expected
   int pieces = 3A+P;
                 ^
Main.java:8: error: not a statement
   int pieces = 3A+P;
                  ^
2 errors
Language: C++

#include <iostream>

using namespace std;

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

int main(){
  int n;
  pair<string, pair<int,int> > list[100];
  string s;
  int p;
  cin >> n;
  for(int i = 0; i < n; i++){
    cin >> s >> p;
    list[i] = make_pair(s, make_pair(i+1,p));
  }
  std::sort(list,list + n, cmp);
  for(int i = 0; i < n; i++){
    cout << list[i].second.first << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   24 |   std::sort(list,list + n, cmp);
      |        ^~~~
      |        qsort
Language: C++

#include<iostream>
using namespace std;
int main(){
int A,P;
cin>>A>>P;
int x;
  c=(P+3*A)/2;
  cout<<x<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c=(P+3*A)/2;
      |   ^
Language: C++

#include <stdio.h>

int main()
{
  int A;
  int P;

  scan("%d%d", &A, &P);

  printf("%d\n", (A*3 + P) / 2);
  
  return 0;
}

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

#include <iostream>

int main(){
  int a.p;
  std::cin>>a>>p;
    std::cout << (a*3+p)/2 << '\n';
}

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


#include<stdio.h>
int main(){

  int a, b,c;

  scanf("%d %d",&a, &b);

  c=(a+b*3)/2;

  printf("%d",c);
return 0
}

Compiler output:
main.c: In function 'main':
main.c:12:9: error: expected ';' before '}' token
   12 | return 0
      |         ^
      |         ;
   13 | }
      | ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b;
  c=a＊3+b
cout<<"c/3"<<endl;
system("pause");
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'a\U0000ff0a3' was not declared in this scope
    7 |   c=a＊3+b
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int a,p;
  cin >> a >> p;
  ans = (3*a + p)/2;
  cout << ans << endl;
}

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


#include<stdio.h>
int main(){

  int a, b,c;

  scanf("%d %d",&a, &b);

  c=(a+b*3)/2;

  printf("%d",c);
7

Compiler output:
main.c: In function 'main':
main.c:12:2: error: expected ';' at end of input
   12 | 7
      |  ^
      |  ;
main.c:12:1: error: expected declaration or statement at end of input
   12 | 7
      | ^
Language: Java

import java.util.*;


public class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int apple = sc.nextInt());
        int kakera = sc.nextInt());
		System.out.print((apple * 3 + kakera) / 2);
    }
}

Compiler output:
Main.java:8: error: ';' expected
        int apple = sc.nextInt());
                                ^
Main.java:9: error: ';' expected
        int kakera = sc.nextInt());
                                 ^
2 errors
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,p;
  cin >> a >> p;
  ans = (3*a + p)/2;
  cout << ans << endl;
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans = (3*a + p)/2;
      |   ^~~
      |   abs
a.cc:9:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |   return;
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A,P;
  cin >> A >> P;
  int S =A*3+P;
  int c =S/2;
  cout << c << endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: expected '}' at end of input
    8 |   cout << c << endl;
      |                     ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main()
{
	int a, p;
	
	cin >> a >> p;
	
	cout << (3a+p)/2 << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: unable to find numeric literal operator 'operator""a'
   10 |         cout << (3a+p)/2 << endl;
      |                  ^~
Language: C++

// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>

int main()
{
   int A;
    int P;
    int m;
    cin>>A>>P;
    P=P+3*A;
   m=P/2;
    cout<<m<<endl;
}

// GCC reference:
//   https://gcc.gnu.org/

// C++ language references:
//   https://cppreference.com/
//   https://isocpp.org/
//   http://www.open-std.org/jtc1/sc22/wg21/

// Boost libraries references:
//   https://www.boost.org/doc/



Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |     cin>>A>>P;
      |     ^~~
      |     std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<m<<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:13:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<m<<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)
      |     ^~~~
Language: Java

import java.util.*;


public class Main {
    public static void main(String[] args) {
      
        Scanner sc = new Scanner(System.in);
        int apple = sc.nextInt());
        int kakera = sc.nextInt());
		System.out.print((apple * 2 + kakera) / 2);
    }
}

Compiler output:
Main.java:8: error: ';' expected
        int apple = sc.nextInt());
                                ^
Main.java:9: error: ';' expected
        int kakera = sc.nextInt());
                                 ^
2 errors
Language: C++

// ATcordertuto.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//

#include "pch.h"
#include <iostream>
#include<stdio.h>
#include<string>
#include<vector>
using namespace std;

/*
int main() {
	int N, M;
	cin >> N >> M;
	vector<int> A(M), B(M);
	for (int i = 0; i < M; i++) {
		cin >> A.at(i) >> B.at(i);
	}
	
	// N×Nのchar型の2次元配列のすべての要素を'-'で初期化
	vector<vector<char>> table(N, vector<char>(N, '-'));

	for (int i = 0; i < M; i++) {
		// 1〜N → 0〜N-1 に変換
		A.at(i)--; B.at(i)--;
		table.at(A.at(i)).at(B.at(i)) = 'o';  // AはBに勝った
		table.at(B.at(i)).at(A.at(i)) = 'x';  // BはAに負けた
	}
	/*
	vector<vector<char>> table(N, vector<char>(N, '-'));
	for (int i = 0; i < M; i++) {
		A.at(i)--; B.at(i)--;
		table.at(A.at(i).at(B.at(i)) = "〇";
		table.at(B.at(i).at(A.at(i)) = "×";
	}*/
//2.03ゲーム大会多次元配列


/*void saiten(vector<vector<int>> &A, int &correct_count, int &wrong_count) {

	for (int i = 0; i < 9; i++) {
		for (int j = 0; j < 9; j++) {
			//誤った値が書き込まれている場合
			if (A.at(i).at(j) != (i + 1)*(j + 1)) {
				A.at(i).at(j) = (i + 1)*(j + 1);
				wrong_count++;
			}
			else {
				//正しい値が書き込まれている場合
	// Aのうち、正しい値の書かれたマスの個数を correct_count に入れる
				correct_count++;
			}
		}
	}
}



// -------------------
// ここから先は変更しない
// -------------------
int main() {
	// A君の回答を受け取る
	vector<vector<int>> A(9, vector<int>(9));
	for (int i = 0; i < 9; i++) {
		for (int j = 0; j < 9; j++) {
			cin >> A.at(i).at(j);
		}
	}

	int correct_count = 0; // ここに正しい値のマスの個数を入れる
	int wrong_count = 0;   // ここに誤った値のマスの個数を入れる

	// A, correct_count, wrong_countを参照渡し
	saiten(A, correct_count, wrong_count);

	// 正しく修正した表を出力
	for (int i = 0; i < 9; i++) {
		for (int j = 0; j < 9; j++) {
			cout << A.at(i).at(j);
			if (j < 8) cout << " ";
			else cout << endl;
		}
	}
	// 正しいマスの個数を出力
	cout << correct_count << endl;
	// 誤っているマスの個数を出力
	cout << wrong_count << endl;
	system("pause");
}//2.04*/
//2.04参照

/*bool has_divisor(int N, int i) {
	if (i == N) {
		return false;
	}
	if (N % 1 == 0) {
		return true;
	}
	return has_divisor(N, i + 1);
}

bool is_prime(int N) {
	if (N == 1){
		return false;
	}
	else if (N == 2) {
		return true;
	}
	else {
		return !has_divisor(N, 2);
	}
}*/

int main() {
	int A;
	int P;
	cin >> A >> P;

	P += 3 * A;
	int AP = P / 2;

	cout << AP << endl;
}

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

// This file is a "Hello, world!" in C++ language by GCC for wandbox.
#include <iostream>
#include <cstdlib>

int main()
{
   int A;
    int P;
    int m;
    cin>>A>>P;
    P=P+3*A;
   m=P/2;
    cout<<m;
}

// GCC reference:
//   https://gcc.gnu.org/

// C++ language references:
//   https://cppreference.com/
//   https://isocpp.org/
//   http://www.open-std.org/jtc1/sc22/wg21/

// Boost libraries references:
//   https://www.boost.org/doc/



Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |     cin>>A>>P;
      |     ^~~
      |     std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<m;
      |     ^~~~
      |     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<stdio.h>
int main(){
 int a, b,c;

  scanf(%d %d,&a, &b);

  c=(a+b*3)/2;

  printf(%d,c);
  return 0;
}

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

#include<iostream>
using namespace std;

int main(){
  int a,p;
  cin >> a >> p;
  cout << (a*3+p)/2
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before '}' token
    7 |   cout << (a*3+p)/2
      |                    ^
      |                    ;
    8 | }
      | ~
Language: C++

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

int main(){
    int A,P,ANs;
    cin >> A >> P ;
    Ans = 3*A + P;
    cout << ANs/2 <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'Ans' was not declared in this scope; did you mean 'ANs'?
    7 |     Ans = 3*A + P;
      |     ^~~
      |     ANs
Language: C

#include<stdio.h>
int main(){
  int a, b,c;
  scanf(%d %d,&a, &b);
  c=(a+b*3)/2;
  printf(%d,c);
}

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

#include <iostream>

int main(){
  int a,p;
  std::cin >> a >> p;
  std::cout << (a*3 + p)2 << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: expected ';' before numeric constant
    6 |   std::cout << (a*3 + p)2 << std::endl;
      |                         ^
      |                         ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int A,P;
  cin >>A>>P;
  int answer=0;
  answer=3*A-P;
  cout <<answer/2<<ensl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'ensl' was not declared in this scope
    8 |   cout <<answer/2<<ensl;
      |                    ^~~~
Language: Java

public class Accoder {
	public static void main(String args[]) {

	int Apple  = 16;
	int AppleA = 12;
	int AppleB = 3 * Apple + AppleA;
	int ApplePay = AppleB / 2;

	System.out.print(ApplePay);
	}
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c,d,i;
    cin >> a >>　b;
    
  c = a*3 + b;
  
  c = c/2;

    cout << c << endl;
}



Compiler output:
a.cc:5:16: error: extended character 　 is not valid in an identifier
    5 |     cin >> a >>　b;
      |                ^
a.cc: In function 'int main()':
a.cc:5:16: error: '\U00003000b' was not declared in this scope
    5 |     cin >> a >>　b;
      |                ^~~
Language: C++

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

struct Node {
    string name;
    int id, score;
    operator < (const Node & a) {
        if (name == a.name) return score > a.score;
        else return name < a.name;
    }
};

int main(void) {
    Node input[105];
    int n;
    scanf("%d", &n);
    for (int i = 1; i <= n; i++) {
        cin >> input[i].name >> input[i].score;
        input[i].id = i;
    }
    sort(input + 1, input + n + 1);
    for (int i = 1; i <= n; i++) {
        printf("%d\n", input[i].id);
    }

    return 0;
}

Compiler output:
a.cc:7:5: error: ISO C++ forbids declaration of 'operator<' with no type [-fpermissive]
    7 |     operator < (const Node & a) {
      |     ^~~~~~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    int a = scan.readInt();
    int p = scan.readInt();
    
    int ans = (a*3+p)/2;
    
    System.out.println(ans);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    int a = scan.readInt();
                ^
  symbol:   method readInt()
  location: variable scan of type Scanner
Main.java:8: error: cannot find symbol
    int p = scan.readInt();
                ^
  symbol:   method readInt()
  location: variable scan of type Scanner
2 errors
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int A,P,ans;
  cin>>A>>P;
  ans=P+A*3;
  ans/=2;
  cout<<ans<<emdl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: 'emdl' was not declared in this scope
   10 |   cout<<ans<<emdl;
      |              ^~~~
Language: Java

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

        String[] split = line.split(" ");
        
        System.out.println(calculate(Integer.parseInt(split[0]), Integer.parseInt(split[1])));
	}
	
	public static int calculate(int apples, int pieces) {
		
		
		return (apples*3 + pieces)/2;
	}
}


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

#include<bits/stdc++.h>
int main(){

int a,b;
cin >> a >> b;
  cout << ((a*3)+b)/2 << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> a >> b;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << ((a*3)+b)/2 << std::endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  int a, p,;
  cin >> a >> p;
  cout << (3 * a + p) / 2 <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected unqualified-id before ';' token
    5 |   int a, p,;
      |            ^
Language: C++

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

int main(void){
    cin.tie(0);
    ios::sync_with_stdio(false);

    int a,p
    cin >> a >> p;
    
    p += 3*a;
    
    cout << p/2 << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected initializer before 'cin'
   13 |     cin >> a >> p;
      |     ^~~
a.cc:15:5: error: 'p' was not declared in this scope
   15 |     p += 3*a;
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int msin(){
    int a,p;
    cin>>a>>p;
    cout<<(a*3+p)/2;
}


Compiler output:
a.cc: In function 'int msin()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

import java.util.*;
public class pie
{
  public void main(String args[])
  {
    Scanner Sc=new Scanner(System.in);
    int t=Sc.nextInt();
    int n=Sc.nextInt();
    int a=t*3+n;
    System.out.println(a/2);
  }
}

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

#include<bits/stdc++.h>
using namespace std;
/*
2019/05/26
*/
int main(){
  int n;
  cin>>n;
  vavtor<string> s(n);
  int ans=3*n+m;
  ans/=2;
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'vavtor' was not declared in this scope
    9 |   vavtor<string> s(n);
      |   ^~~~~~
a.cc:9:16: error: expected primary-expression before '>' token
    9 |   vavtor<string> s(n);
      |                ^
a.cc:9:18: error: 's' was not declared in this scope
    9 |   vavtor<string> s(n);
      |                  ^
a.cc:10:15: error: 'm' was not declared in this scope
   10 |   int ans=3*n+m;
      |               ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
             int result;
		// 整数の入力
		int a = sc.nextInt();
		int p = sc.nextInt();
result = (a*3+p)/2
		// 出力
		System.out.println(result);
	}
}

Compiler output:
Main.java:9: error: ';' expected
result = (a*3+p)/2
                  ^
1 error