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

#include <iostream>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <algorithm>
const int mod=1e9+7;
using LL=long long;
using std::cout;using std::endl;using std::cin;
using std::vector;using std::string;using std::set;using std::multiset;
using std::pair;using std::map;
using std::min;using std::max;
using std::make_pair;
std::ostream& operator<<(std::ostream& os,std::map<int,int>& obj){for(std::map<int,int>::iterator itr=obj.begin();itr!=obj.end();itr++){os<<itr->first<<"^"<<itr->second<<" ";}return os;}
std::ostream& operator<<(std::ostream& os,std::vector<std::map<int,int>>& obj){for(auto itr=obj.begin();itr!=obj.end();itr++){os<<*itr<<std::endl;}return os;}
std::ostream& operator<<(std::ostream& os,std::vector<int>& obj){for(auto itr=obj.begin();itr!=obj.end();itr++){os<<*itr<<endl;}return os;}

namespace ndifix{
template<class T>void sort(T &v){std::sort(v.begin(),v.end());}
}

int main(){
  int l[3];cin>>l[0]>>l[1]>>l[2];
  ndifix::sort(l);
  cout<<(l[0]*l[1])/2<<endl;
  return 0;
}


Compiler output:
a.cc: In instantiation of 'void ndifix::sort(T&) [with T = int [3]]':
a.cc:24:15:   required from here
   24 |   ndifix::sort(l);
      |   ~~~~~~~~~~~~^~~
a.cc:19:46: error: request for member 'begin' in 'v', which is of non-class type 'int [3]'
   19 | template<class T>void sort(T &v){std::sort(v.begin(),v.end());}
      |                                            ~~^~~~~
a.cc:19:56: error: request for member 'end' in 'v', which is of non-class type 'int [3]'
   19 | template<class T>void sort(T &v){std::sort(v.begin(),v.end());}
      |                                                      ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int AB, BC, CA;
  cin >> AB >> BC >> CA;
  cout << (AB+CA)/2 << endl;
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int AB, BC, CA;
  cin >> AB >> BC >> CA;
  cout << (AB+BC)/2 << endl;
}


Compiler output:
a.cc:12:5: error: redefinition of 'int main()'
   12 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int a = in.nextInt();
    int b = in.nextInt();
    int c = in.nextInt();
    int d
    if (c < a) {
      d = a;
      a = c;
      c = d;
    }
    if (c < b) b = c;
    d = a * b / 2;
    System.out.println(d);
  }
}

Compiler output:
Main.java:9: error: ';' expected
    int d
         ^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
	int n, ans = 0;
	cin >> n;
	vector<int> h(n);
	int score = 0;
	for(auto&& i : h)
	{
		cin >> i;
		if(score < i)
		{
			score = i;
		}
		if(score > i)
		{
			ans += score - i;
			score = i;
		}
	}
	ans += score;
	cout << ans << "\n";
}
  
  
}


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

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

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

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

#include <iostream>
using namespace std;

int main()
{
    int h[200];
  
        int n;
        scanf_s("%d", &n);
        for (int i = 0; i < n; i++)
            scanf_s("%d", &h[i]);
        h[n] = 0;
        int i = 0;
        int ans = 0;
        int min = 0;


        for (i; i < n;) {
            if (h[i] < h[i + 1]) {
                i++;
            }
            else {
                ans += h[i]-min;
                ++i;
                min = h[i];
            }
        }
        cout << ans;

    }



Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: Java

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] h = new int[n];
		for(int i = 0; i < n; i++) {
			h[i] = sc.nextInt();
		}
		Garden garden = new Garden(n,h);
		while(garden.gardenFlag()) {
			garden.watering();
		}
 
		System.out.println(garden.getWaterCount());
		sc.close();
	}
}
public class Garden{
 
	int n;
	int[] f;
	int[] h;
	int waterCount;
 
	Garden(int n, int[] h){
		this.n = n;
		this.h = h;
		f = new int[n];
		waterCount = 0;
	}
	//waterCount取得
	int getWaterCount() {
		return waterCount;
	}
 
	//判別
	boolean gardenFlag() {
		boolean flag = false;
		for(int i = 0; i < n; i++) {
			if(f[i] != h[i]) {
				flag = true;//異なっていたら続行
				break;
			}
		}
		return flag;
	}
 
	//開始地点
	int startPoint() {
		int sp = 0;
		for(int i = 0; i < n; i++) {
			if(f[i] < h[i]) {
				sp = i;
				break;
			}
		}
		return sp;
	}
	//終了地点
	int[] endPoint() {
		int[] point = new int[2];
		point[0] = startPoint();
		point[1] = point[0] + 1;
 
		for(int i = point[0] + 1; i < n; i++) {
			if(f[i] < h[i]) {
				point[1]++;
			}
			if(f[i] == h[i]) {
				break;
			}
		}
		return point;
	}
	//水やり
	void watering() {
		int[] point = endPoint();
		for(int i = point[0]; i < point[1]; i++) {
			f[i]++;
		}
		waterCount++;
		System.out.println();
	}
}

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

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

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

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

#include <iostream >
using namespace std;
int main() {
	int ab, bc, ca;
	cin >> ab >> bc >> ca;
	int area = ab * bc / 2;
	cout << area << endl;
	return 0;
}

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

#include <iostream>

int main(){
  unsigned long long x,y,z;
  cin >> x >> y >> z;
  unsigned result = x*y/2;
  std::cout << result << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> x >> y >> z;
      |   ^~~
      |   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
      |                  ^~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int AB,BC,CA;
  cin>>AB>>BC>>CA;
  
  cout<<AB*BC<<endl;

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

#include <stdio.h>
#include <string.h>
int main(void){
  int x,y,z;
  scanf_s("%d %d %d",&x,&y,&z);
  printf("%d",x*y);
  
}

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

main(a,b,c){scanf("%d%d%d",&a,&b,&c);prnitf("%d",a*b/2);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);prnitf("%d",a*b/2);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'c' defaults to 'int' [-Wimplicit-int]
main.c:1:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);prnitf("%d",a*b/2);}
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);prnitf("%d",a*b/2);}
main.c:1:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);prnitf("%d",a*b/2);}
      |             ^~~~~
main.c:1:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:38: error: implicit declaration of function 'prnitf' [-Wimplicit-function-declaration]
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);prnitf("%d",a*b/2);}
      |                                      ^~~~~~
Language: C

main(a,b){scanf("%d%d",&a,&b);prnitf("%d",a*b/2);}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){scanf("%d%d",&a,&b);prnitf("%d",a*b/2);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);prnitf("%d",a*b/2);}
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){scanf("%d%d",&a,&b);prnitf("%d",a*b/2);}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){scanf("%d%d",&a,&b);prnitf("%d",a*b/2);}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:31: error: implicit declaration of function 'prnitf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);prnitf("%d",a*b/2);}
      |                               ^~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected '}' at end of input
   10 |         return 0;
      |                  ^
a.cc:2:16: note: to match this '{'
    2 | int main(void) {
      |                ^
Language: C++

#include<iostream>
using namespace std;
int main(void)
{int a,b,c;
 cin>>a>>b>>c;
 c=a*b
   c=c/2;
 cout<<c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'c'
    6 |  c=a*b
      |       ^
      |       ;
    7 |    c=c/2;
      |    ~
Language: Java

import java.util.Scanner ;
class Main{
    public static void main(String[] args){
        Scanner scn=new Scanner(System.in);
        int x =scn.nextInt();
        int y =scn.nextInt();
        System.out.println(x*y*/2);
    }
}

Compiler output:
Main.java:7: error: illegal start of expression
        System.out.println(x*y*/2);
                               ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int X, Y;
  cin X >> Y;
  cout << X*Y/2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'X'
    6 |   cin X >> Y;
      |      ^~
      |      ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int |AB|,|BC|,|CA|;
  cin >> |AB| >> |BC| >> |CA|;
  cout << |AB|*|BC|/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '|' token
    5 |   int |AB|,|BC|,|CA|;
      |       ^
a.cc:6:10: error: expected primary-expression before '|' token
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |          ^
a.cc:6:11: error: 'AB' was not declared in this scope
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |           ^~
a.cc:6:15: error: expected primary-expression before '>>' token
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |               ^~
a.cc:6:18: error: expected primary-expression before '|' token
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |                  ^
a.cc:6:19: error: 'BC' was not declared in this scope
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |                   ^~
a.cc:6:23: error: expected primary-expression before '>>' token
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |                       ^~
a.cc:6:26: error: expected primary-expression before '|' token
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |                          ^
a.cc:6:27: error: 'CA' was not declared in this scope
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |                           ^~
a.cc:6:30: error: expected primary-expression before ';' token
    6 |   cin >> |AB| >> |BC| >> |CA|;
      |                              ^
a.cc:7:11: error: expected primary-expression before '|' token
    7 |   cout << |AB|*|BC|/2 << endl;
      |           ^
a.cc:7:16: error: expected primary-expression before '|' token
    7 |   cout << |AB|*|BC|/2 << endl;
      |                ^
a.cc:7:20: error: expected primary-expression before '/' token
    7 |   cout << |AB|*|BC|/2 << endl;
      |                    ^
Language: C

#include <stdio.h>

void main(){
    int a,b,c;
    scanf("%d %d %d" ,&a,&b,&c);
        printf("%d",a*b/2);
        
}

#include <stdio.h>

void main(){
    int a,b,c;
    scanf("%d %d %d" ,&a,&b,&c);
        printf("%d",a*b/2);
        
}



Compiler output:
main.c:12:6: error: redefinition of 'main'
   12 | void main(){
      |      ^~~~
main.c:3:6: note: previous definition of 'main' with type 'void()'
    3 | void main(){
      |      ^~~~
Language: C

#include <stdio.h>

void main(){
    int a,b,c;
    scanf("%d %d %d" ,&a,&b,%c);
        printf("%d",a*b/2);
        
}



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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int ab,bc,ca,answer;
  cin >> ab >> bc;
  answer==ab*bc/2
  cout << answer <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before 'cout'
    6 |   answer==ab*bc/2
      |                  ^
      |                  ;
    7 |   cout << answer <<endl;
      |   ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int |AB|,|BC|,answer;
  cin >> |AB| >> |BC|;
  answer==|AB|*|BC|;
  answer/=2;
  cout << answer <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected unqualified-id before '|' token
    4 |   int |AB|,|BC|,answer;
      |       ^
a.cc:5:10: error: expected primary-expression before '|' token
    5 |   cin >> |AB| >> |BC|;
      |          ^
a.cc:5:11: error: 'AB' was not declared in this scope
    5 |   cin >> |AB| >> |BC|;
      |           ^~
a.cc:5:15: error: expected primary-expression before '>>' token
    5 |   cin >> |AB| >> |BC|;
      |               ^~
a.cc:5:18: error: expected primary-expression before '|' token
    5 |   cin >> |AB| >> |BC|;
      |                  ^
a.cc:5:19: error: 'BC' was not declared in this scope
    5 |   cin >> |AB| >> |BC|;
      |                   ^~
a.cc:5:22: error: expected primary-expression before ';' token
    5 |   cin >> |AB| >> |BC|;
      |                      ^
a.cc:6:3: error: 'answer' was not declared in this scope
    6 |   answer==|AB|*|BC|;
      |   ^~~~~~
a.cc:6:11: error: expected primary-expression before '|' token
    6 |   answer==|AB|*|BC|;
      |           ^
a.cc:6:16: error: expected primary-expression before '|' token
    6 |   answer==|AB|*|BC|;
      |                ^
a.cc:6:20: error: expected primary-expression before ';' token
    6 |   answer==|AB|*|BC|;
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int |AB|,|BC|,answer;
  cin >> |AB| >> |BC|;
  answer==|AB|*|BC|;
  answer/=answer;
  cout << answer <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:7: error: expected unqualified-id before '|' token
    4 |   int |AB|,|BC|,answer;
      |       ^
a.cc:5:10: error: expected primary-expression before '|' token
    5 |   cin >> |AB| >> |BC|;
      |          ^
a.cc:5:11: error: 'AB' was not declared in this scope
    5 |   cin >> |AB| >> |BC|;
      |           ^~
a.cc:5:15: error: expected primary-expression before '>>' token
    5 |   cin >> |AB| >> |BC|;
      |               ^~
a.cc:5:18: error: expected primary-expression before '|' token
    5 |   cin >> |AB| >> |BC|;
      |                  ^
a.cc:5:19: error: 'BC' was not declared in this scope
    5 |   cin >> |AB| >> |BC|;
      |                   ^~
a.cc:5:22: error: expected primary-expression before ';' token
    5 |   cin >> |AB| >> |BC|;
      |                      ^
a.cc:6:3: error: 'answer' was not declared in this scope
    6 |   answer==|AB|*|BC|;
      |   ^~~~~~
a.cc:6:11: error: expected primary-expression before '|' token
    6 |   answer==|AB|*|BC|;
      |           ^
a.cc:6:16: error: expected primary-expression before '|' token
    6 |   answer==|AB|*|BC|;
      |                ^
a.cc:6:20: error: expected primary-expression before ';' token
    6 |   answer==|AB|*|BC|;
      |                    ^
Language: C++

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

int main() {
  
  int |AB|, |BC|, |CA|;
  cin >> |AB| >> |BC| >> |CA|;
  
  cout << |AB| * |BC| / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '|' token
    6 |   int |AB|, |BC|, |CA|;
      |       ^
a.cc:7:10: error: expected primary-expression before '|' token
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |          ^
a.cc:7:11: error: 'AB' was not declared in this scope
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |           ^~
a.cc:7:15: error: expected primary-expression before '>>' token
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |               ^~
a.cc:7:18: error: expected primary-expression before '|' token
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |                  ^
a.cc:7:19: error: 'BC' was not declared in this scope
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |                   ^~
a.cc:7:23: error: expected primary-expression before '>>' token
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |                       ^~
a.cc:7:26: error: expected primary-expression before '|' token
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |                          ^
a.cc:7:27: error: 'CA' was not declared in this scope
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |                           ^~
a.cc:7:30: error: expected primary-expression before ';' token
    7 |   cin >> |AB| >> |BC| >> |CA|;
      |                              ^
a.cc:9:11: error: expected primary-expression before '|' token
    9 |   cout << |AB| * |BC| / 2 << endl;
      |           ^
a.cc:9:18: error: expected primary-expression before '|' token
    9 |   cout << |AB| * |BC| / 2 << endl;
      |                  ^
a.cc:9:23: error: expected primary-expression before '/' token
    9 |   cout << |AB| * |BC| / 2 << endl;
      |                       ^
Language: Java

import java.io.*;
public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] abc = br.readLine().split(“ ”);
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);                                     
        System.out.println(a*b/2);
    }
}


Compiler output:
Main.java:5: error: illegal character: '\u201c'
        String[] abc = br.readLine().split(? ?);
                                           ^
Main.java:5: error: illegal character: '\u201d'
        String[] abc = br.readLine().split(? ?);
                                             ^
2 errors
Language: Java

import java.io.*;
public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
        String[] abc = br.readLine().split(“ ”);
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);                                     
        System.out.println(a*b/2);
    }
}


Compiler output:
Main.java:4: error: ')' or ',' expected
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
                                                                               ^
Main.java:5: error: illegal character: '\u201c'
        String[] abc = br.readLine().split(? ?);
                                           ^
Main.java:5: error: illegal character: '\u201d'
        String[] abc = br.readLine().split(? ?);
                                             ^
3 errors
Language: Java

import java.io.*;
public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
        String[] abc = br.read().split(“ ”);
        int a = Integer.parseInt(abc[0]);
        int b = Integer.parseInt(abc[1]);                                     
        System.out.println(a*b/2);
    }
}


Compiler output:
Main.java:4: error: ')' or ',' expected
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in);
                                                                               ^
Main.java:5: error: illegal character: '\u201c'
        String[] abc = br.read().split(? ?);
                                       ^
Main.java:5: error: illegal character: '\u201d'
        String[] abc = br.read().split(? ?);
                                         ^
3 errors
Language: C++

#include <bits/stdc++.h>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
    int ab,bc,ca;
    cin >> ab >> bc >> ca;
    vector<int> t(3)={ab,bc,ca};
    sort(t.begin(),t.end());
    cout << (t[0]*t[1])/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected ',' or ';' before '=' token
   11 |     vector<int> t(3)={ab,bc,ca};
      |                     ^
Language: Java

import math
a, b, c = map(int, input().split())
s = (a+b+c)/2
print(int(math.sqrt((s*(s-a)*(s-b)*(s-c)))))

Compiler output:
Main.java:1: error: '.' expected
import math
           ^
Main.java:2: error: ';' expected
a, b, c = map(int, input().split())
 ^
2 errors
Language: C

#include <stdio.h>

int main(void)
{
    int ab, bc, ca;
    scanf("%d%d%d", &ab, &bc, &ca);

    pritnf("%d\n", ab * bc / 2);
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 	int a,b,c;
  	cin >> a >> b >> c >> ;
  cout << (1/2)*min(a,min(b,c))*min(a,max(b,c)) << endl;
}

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharp_20190501
{
    class Program
    {
        public static int AreaMethod(int AB, int BC)
        {
            int Area = AB * BC / 2;
            return Area;
        }

        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            int AB = int.Parse(input[0]);
            int BC = int.Parse(input[1]);
            int CA = int.Parse(input[2]);

            Console.WriteLine(AreaMethod(AB, BC));
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:15: error: expected ':' before 'static'
   11 |         public static int AreaMethod(int AB, int BC)
      |               ^~~~~~~
      |               :
a.cc:17:26: error: 'string' has not been declared
   17 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:17:35: error: expected ',' or '...' before 'args'
   17 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:26:6: error: expected ';' after class definition
   26 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void CSharp_20190501::Program::Main(int*)':
a.cc:19:13: error: 'string' was not declared in this scope
   19 |             string[] input = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:19:20: error: expected primary-expression before ']' token
   19 |             string[] input = Console.ReadLine().Split(' ');
      |                    ^
a.cc:20:22: error: expected primary-expression before 'int'
   20 |             int AB = int.Parse(input[0]);
      |                      ^~~
a.cc:21:22: error: expected primary-expression before 'int'
   21 |             int BC = int.Parse(input[1]);
      |                      ^~~
a.cc:22:22: error: expected primary-expression before 'int'
   22 |             int CA = int.Parse(input[2]);
      |                      ^~~
a.cc:24:13: error: 'Console' was not declared in this scope
   24 |             Console.WriteLine(AreaMethod(AB, BC));
      |             ^~~~~~~
Language: C++

# coding: utf-8
ab, bc, ca = map(int, input().split())
s = ab * bc / 2
print(s)


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:1: error: 'ab' does not name a type
    2 | ab, bc, ca = map(int, input().split())
      | ^~
Language: Java

package main

import (
	"bufio"
	"fmt"
	"math"
	"os"
	"strconv"
)

func main() {
	AB := nextInt()
	BC := nextInt()
	//CA := nextInt()

	fmt.Println(AB * BC / 2)
}

// https://atcoder.jp/contests/abc125/submissions/5181045
func pow(a, b int) int {
	return int(math.Pow(float64(a), float64(b)))
}

func lcm(a, b int) int {
	return a * b / gcd(a, b)
}

func gcd(a, b int) int {
	if a < b {
		a, b = b, a
	}
	for b != 0 {
		a, b = b, a%b
	}
	return a
}

func max(a ...int) int {
	r := a[0]
	for i := 0; i < len(a); i++ {
		if r < a[i] {
			r = a[i]
		}
	}
	return r
}

func min(a ...int) int {
	r := a[0]
	for i := 0; i < len(a); i++ {
		if r > a[i] {
			r = a[i]
		}
	}
	return r
}

func sum(a []int) (r int) {
	for i := range a {
		r += a[i]
	}
	return r
}

func abs(a int) int {
	if a < 0 {
		return -a
	}
	return a
}

var nextReader func() []byte

func init() {
	nextReader = newScanner()
}

func newScanner() func() []byte {
	r := bufio.NewScanner(os.Stdin)
	r.Buffer(make([]byte, 1024), int(1e+11))
	r.Split(bufio.ScanWords)
	return func() []byte {
		r.Scan()
		return r.Bytes()
	}
}

func nextBytes() []byte {
	return nextReader()
}

func nextString() string {
	return string(nextReader())
}

func nextInt64() int64 {
	v, _ := strconv.ParseInt(string(nextReader()), 10, 64)
	return v
}

func nextInt() int {
	v, _ := strconv.Atoi(string(nextReader()))
	return v
}

func nextInts(n int) []int {
	r := make([]int, n)
	for i := 0; i < n; i++ {
		r[i] = nextInt()
	}
	return r
}

func nextFloat64() float64 {
	f, _ := strconv.ParseFloat(string(nextReader()), 64)
	return f
}


Compiler output:
Main.java:1: error: ';' expected
package main
            ^
Main.java:3: error: <identifier> expected
import (
      ^
Main.java:40: error: class, interface, enum, or record expected
	for i := 0; i < len(a); i++ {
	            ^
Main.java:40: error: class, interface, enum, or record expected
	for i := 0; i < len(a); i++ {
	                        ^
Main.java:50: error: class, interface, enum, or record expected
	for i := 0; i < len(a); i++ {
	            ^
Main.java:50: error: class, interface, enum, or record expected
	for i := 0; i < len(a); i++ {
	                        ^
Main.java:108: error: class, interface, enum, or record expected
	for i := 0; i < n; i++ {
	            ^
Main.java:108: error: class, interface, enum, or record expected
	for i := 0; i < n; i++ {
	                   ^
8 errors
Language: C++

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

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

Compiler output:
a.cc:10:5: error: expected unqualified-id before 'return'
   10 |     return 0;
      |     ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
		System.out.println((a*b)/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>
using namespace std;

int main(){
  int a<<b<<c;
  cin>>a>>b>>c;
  cout<<a*b/2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '<<' token
    5 |   int a<<b<<c;
      |        ^~
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |           ^
a.cc:6:14: error: 'c' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |              ^
Language: C++

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

int main() {
  vector<int> vec(3);
  
  for(int i=0; i<3; i++){
    cin >> vec.at(i);
  }
  
  sort(vec.begin(), vec.end())
    
  cout << vec.at(1) * vec.at(2) / 2 << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: expected ';' before 'cout'
   11 |   sort(vec.begin(), vec.end())
      |                               ^
      |                               ;
   12 | 
   13 |   cout << vec.at(1) * vec.at(2) / 2 << endl;
      |   ~~~~
Language: C++

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

int main() {
  vector<int> vec(3);
  
  for(int i=0; i<3; i++){
    cin >> vec.at(i);
  }
  
  sort(vec.begin(), ved.end())
    
  cout << vec.at(1) * vec.at(2) / 2 << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: 'ved' was not declared in this scope; did you mean 'vec'?
   11 |   sort(vec.begin(), ved.end())
      |                     ^~~
      |                     vec
Language: C

#include<stdio.h>
int main(){
  int ab,bc,ca;
  scanf("%d%d%d",&ab,&bc,&ca);
  printf("%d",ab*bc/2);
  retunr 0;
}

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

#inclide<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<a*b/2;}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a>>b>>c;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide<iostream>
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout<<a*b/2;}
      | ^~~~
a.cc:6:1: 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;

int main() {
  int a,b,c;
  cin >> a>>b>>c;
  int ans;
  max1 = max(max(a,b),max(b,c));
  if(max1==a)
    ans = b*c;
  else if(max1==b)
    ans = a*c;
  else
    ans = b*c;
  cout << ans<<endl;
 
}




Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'max1' was not declared in this scope
    8 |   max1 = max(max(a,b),max(b,c));
      |   ^~~~
Language: C++

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

int main() {
  int a,b,c;
  cin >> a >> b >> c;
  int ans;
  ans = a*b/2
  cout << text << ans << d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'cout'
    8 |   ans = a*b/2
      |              ^
      |              ;
    9 |   cout << text << ans << d << endl;
      |   ~~~~
Language: C++

#include<cstdio>
#iostream<iostream>

using namespace std;

int main(void){
  int AB,BC,CA;
  
  cin>>AB>>BC>>CA;
  
  cout<<(AB*BC)/2<<endl;
  
  return 0;


}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #iostream
    2 | #iostream<iostream>
      |  ^~~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin>>AB>>BC>>CA;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | #iostream<iostream>
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout<<(AB*BC)/2<<endl;
      |   ^~~~
a.cc:11:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |   cout<<(AB*BC)/2<<endl;
      |                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | #iostream<iostream>
Language: C++

#include<cstdio>
#iostream<iostream>

using namespace std;

int main(void){
  int AB,BC,CA;
  
  cin>>AB>>BC>>CA;
  
  cout<<AB*BC/2<<endl;
  
  return 0;


}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #iostream
    2 | #iostream<iostream>
      |  ^~~~~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin>>AB>>BC>>CA;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | #iostream<iostream>
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout<<AB*BC/2<<endl;
      |   ^~~~
a.cc:11:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |   cout<<AB*BC/2<<endl;
      |                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<cstdio>
  +++ |+#include <ostream>
    2 | #iostream<iostream>
Language: C++

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

int main(){
  int A,B,C
  cin >> A >> B >>C;
  cout<< A*B << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> A >> B >>C;
      |   ^~~
Language: C++

#include <stdio.h>

int
main(int atgc, string *argv[])
{
  int c, a, b;
  scanf("%d%d%d", &c, &a, &b);
  printf("%d", c * a);
  return 0;
}


Compiler output:
a.cc:4:16: error: 'string' has not been declared
    4 | main(int atgc, string *argv[])
      |                ^~~~~~
a.cc:4:1: warning: second argument of 'int main(int, int**)' should be 'char **' [-Wmain]
    4 | main(int atgc, string *argv[])
      | ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int a,b,c;
  cin >> a;
  cin >> b;
  cin >> c;
  cout << cbrt(a*b*c)/2<<endl;
  
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: 'cbrt' was not declared in this scope
   14 |   cout << cbrt(a*b*c)/2<<endl;
      |           ^~~~
Language: C++

#include<iostream>
int main(){
  int a,b,c;
  std::cin >> a >> b >> c;
  std::cout << a*b/2 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   std::cout << a*b/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++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before '}' token
   10 |         cout << a*c/2
      |                      ^
      |                      ;
   11 |     } else {
      |     ~
Language: C++

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

int main()
{
  if(a<c&&b<c){
    cout<< a*b/2 <<endl;
  } else if (a<b&&c<b) {
    cout<< a*c/2 <<endl;
  } else {
    cout<< b*c/2 <<endl;
  }
}

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

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

int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  cout<< sqrt((a+b+c)*(a+b-c)*(a-b+c)*(-a+b+c))/4 <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'sqrt' was not declared in this scope
    9 |   cout<< sqrt((a+b+c)*(a+b-c)*(a-b+c)*(-a+b+c))/4 <<endl;
      |          ^~~~
Language: C++

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

int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  cout<< √((a+b+c)*(a+b-c)*(a-b+c)*(-a+b+c))/4 <<endl;
}

Compiler output:
a.cc:9:10: error: extended character √ is not valid in an identifier
    9 |   cout<< √((a+b+c)*(a+b-c)*(a-b+c)*(-a+b+c))/4 <<endl;
      |          ^
a.cc: In function 'int main()':
a.cc:9:10: error: '\U0000221a' was not declared in this scope
    9 |   cout<< √((a+b+c)*(a+b-c)*(a-b+c)*(-a+b+c))/4 <<endl;
      |          ^
Language: Java

public class main {
	public static void main(String[] args){
	  int ab = 3;
      int bc = 4;
      int x = ab * bc /2;
      System.out.println(x);
	}
}

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

public class keisan {
	public static void main(String[] args){
	  int ab = 3;
      int bc = 4;
      int x = ab * bc /2;
      System.out.println(x);
	}
}

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

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

int main() {
  int |AB|,|BC|,|CA|;
  cin>>|AB|>>|BC|;
  cout<<|AB|*|BC|/2<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '|' token
    5 |   int |AB|,|BC|,|CA|;
      |       ^
a.cc:6:8: error: expected primary-expression before '|' token
    6 |   cin>>|AB|>>|BC|;
      |        ^
a.cc:6:9: error: 'AB' was not declared in this scope
    6 |   cin>>|AB|>>|BC|;
      |         ^~
a.cc:6:12: error: expected primary-expression before '>>' token
    6 |   cin>>|AB|>>|BC|;
      |            ^~
a.cc:6:14: error: expected primary-expression before '|' token
    6 |   cin>>|AB|>>|BC|;
      |              ^
a.cc:6:15: error: 'BC' was not declared in this scope
    6 |   cin>>|AB|>>|BC|;
      |               ^~
a.cc:6:18: error: expected primary-expression before ';' token
    6 |   cin>>|AB|>>|BC|;
      |                  ^
a.cc:7:9: error: expected primary-expression before '|' token
    7 |   cout<<|AB|*|BC|/2<<endl;
      |         ^
a.cc:7:14: error: expected primary-expression before '|' token
    7 |   cout<<|AB|*|BC|/2<<endl;
      |              ^
a.cc:7:18: error: expected primary-expression before '/' token
    7 |   cout<<|AB|*|BC|/2<<endl;
      |                  ^
Language: C++

#include <algorithm>
#include <queue>
#include <iostream>
#include <string>
#include <set>
#include <map>
#define REP(i,n) for(ll i = 0; i < (ll)n; i++)
#define INF 1000000000000000
using namespace std;
typedef long long ll;
typedef double db;
typedef string str;
typedef pair<ll,ll> p;

int main(){
    ll N,K;cin>>N>>K;
    vector<ll> max_d(N,0);//種類iごとのおいしさdの最大
    vector<p> sushi;
    REP(i,N){
        ll t,d;cin>>t>>d;//dは美味しさ,tはネタ
        t--;//0 origin
        sushi.push_back(p(d,t));
        max_d[t] = max(max_d[t],d);
    }
    sort(sushi.begin(),sushi.end(),greater<p>());
    priority_queue <p,vector<p>,greater<p>> prq_s;//昇順にする popするときに最小のものとなる
    vector<ll> type_cnt(N,0);//type iの数
    ll types = 0;
    ll sum = 0;

    //初期集合の作成
    REP(i,K){
        if(type_cnt[sushi[i].second]==0 and  max_d[sushi[i].second]==sushi[i].first){
            //こいつらはpopされない
            //二個目ほんとに必要？
            types++;
            type_cnt[sushi[i].second]++;
        }else{
            prq_s.push(sushi[i]);
        }
        sum += sushi[i].first;
    }
    ll ans = types * types + sum;

    //dの最大値が大きい順に種類を追加していく
    vector<p> waiting;
    REP(i,N){
        if(max_d[i]!=0){
            waiting.push_back(p(max_d[i],i));
        }
    }
    sort(waiting.begin(),waiting.end(),greater<p>());


Compiler output:
a.cc: In function 'int main()':
a.cc:52:54: error: expected '}' at end of input
   52 |     sort(waiting.begin(),waiting.end(),greater<p>());
      |                                                      ^
a.cc:15:11: note: to match this '{'
   15 | int main(){
      |           ^
Language: Java

import java.util.*;

public class A {
    void a(){};
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println(s.nextInt()*s.nextInt()/2);
    }
}

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

class A {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println(s.nextInt()*s.nextInt()/2);
    }
}


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

import java.util.*;


class A {
    Scanner s = new Scanner(System.in);
    public static void main(String[] args) {
        System.out.println(s.nextInt()*s.nextInt()/2);
    }
}

Compiler output:
Main.java:7: error: non-static variable s cannot be referenced from a static context
        System.out.println(s.nextInt()*s.nextInt()/2);
                           ^
Main.java:7: error: non-static variable s cannot be referenced from a static context
        System.out.println(s.nextInt()*s.nextInt()/2);
                                       ^
2 errors
Language: Java

class App {
    static Scanner s = new Scanner(System.in);
    public static void main(String[] args) {
        System.out.println(s.nextInt()*s.nextInt()/2);
    }
}

Compiler output:
Main.java:2: error: cannot find symbol
    static Scanner s = new Scanner(System.in);
           ^
  symbol:   class Scanner
  location: class App
Main.java:2: error: cannot find symbol
    static Scanner s = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class App
2 errors
Language: Java

import java.util.Scanner;


public class A {
    static Scanner s = new Scanner(System.in);
    public static void main(String[] args) {
        System.out.println(s.nextInt()*s.nextInt() / 2);
    }
}


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

#include <bits/stdc++.h>
#include <iomanip>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  if(c*c == a*a + b*b){
    int S = a*b/2;
  }
  if(b*b == a*a + c*c){
    int S = a*c/2;
  }
  if(a*a == b*b + c*c){
    int S = b*c/2;
  }
     cout << S << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: 'S' was not declared in this scope
   16 |      cout << S << endl;
      |              ^
Language: C++

#include <bits/stdc++.h>
#include <iomanip>
using namespace std;
int main(){
  int a,b,c;
  cin a >> b >> c;
  if(c*c == a*a + b*b){
    int S = a*b/2;
  }
  if(b*b == a*a + c*c){
    int S = a*c/2;
  }
  if(a*a == b*b + c*c0{
    int S = b*c/2;
  }
     cout << S << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a >> b >> c;
      |      ^~
      |      ;
a.cc:13:21: error: 'c0' was not declared in this scope; did you mean 'c'?
   13 |   if(a*a == b*b + c*c0{
      |                     ^~
      |                     c
a.cc:16:14: error: 'S' was not declared in this scope
   16 |      cout << S << endl;
      |              ^
a.cc:16:23: error: expected ')' before ';' token
   16 |      cout << S << endl;
      |                       ^
      |                       )
a.cc:13:5: note: to match this '('
   13 |   if(a*a == b*b + c*c0{
      |     ^
Language: C++

#include <iostream>
using namespace std;

int main(){
　double a,b,c;
  cin >>a>>b >>c;
  cout <<a*b/2<<endl;
}

Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　double a,b,c;
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000double' was not declared in this scope; did you mean 'double'?
    5 | 　double a,b,c;
      | ^~~~~~~~
      | double
a.cc:6:9: error: 'a' was not declared in this scope
    6 |   cin >>a>>b >>c;
      |         ^
a.cc:6:12: error: 'b' was not declared in this scope
    6 |   cin >>a>>b >>c;
      |            ^
a.cc:6:16: error: 'c' was not declared in this scope
    6 |   cin >>a>>b >>c;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define pf push_front
typedef long long ll;
typedef complex<double> P;
#define mp make_pair
#define fi first
#define se second
typedef pair<int,int> pint;
#define All(s) s.begin(),s.end()
#define rAll(s) s.rbegin(),s.rend()
#define REP(i,a,b) for(int i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

int main()
{
	int s;
	cin>>s;
	int count=0;
	if(s==1|2|4)
		cout<<4<<endla;

	else{
	while(true){


		if(s%2==0)
			s=s/2;
		else
			s=s*3+1;
		count+=1;

		if(s==4)
			break;


	}

	cout<<count+4<<endl;}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:26: error: 'endla' was not declared in this scope
   22 |                 cout<<4<<endla;
      |                          ^~~~~
Language: C++

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

int main() {
  int a,b,c,
 ;
  cin >> a >> b >> c;
  cout << a*b/2 << endl;
}

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

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(void)
{   
    int ab,bc,ca,mm;
    cin>>ab>>bc>>ca;
    mm=1/2*ab*bc;
    cout<<mm;
    retrun 0;
    


    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'retrun' was not declared in this scope
   11 |     retrun 0;
      |     ^~~~~~