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

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

int main() {
    int ab,bc,ca;
    cin >> ab >> bc >> ca;
    int maxl = max(ab,max(bc,ca));
    if(maxl == ab){
        cout << bc*ca/2;
    } else if(max == bc){
        cout << ab*ca/2;
    } else {
        cout << ab*bc/2;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator=='
   10 |     } else if(max == bc){
      |               ~~~~^~~~~
Language: C++

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

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


Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:14:   required from here
    7 |   cout << min(a*b/2,b*c/2,a*c/2) << endl;
      |           ~~~^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

	cout << min(a*b/2, b*c/2, a*c/2) << endl;
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:8:13:   required from here
    8 |         cout << min(a*b/2, b*c/2, a*c/2) << endl;
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C

#include<stdio.h>

int main(void)
{
  int count1,count2,s,n,i,f1,fa1,f2,fa2,m;
  scanf("%d",&s);
  f1=s;
  f2=s;
  m=0;
  for(count1=1;count1<=1000000;count1++){
    if(count1%2==0){
      fa1=f1/2;
    }else{
      fa1=3*f1+1;
    }
    f1=fa1;
    for(count2=1;count2<=count1;count2++){
      if(count2%2==0){
        fa2=f2/2;
      }else{
        fa2=3*f2+1;
      }
      if(fa1==fa2){
        m=count2;
        break;
      }
    }
  }
  if(m!=0){
      break;
  }
  printf("%d\n",m);
  
  return 0;
}
  


Compiler output:
main.c: In function 'main':
main.c:30:7: error: break statement not within loop or switch
   30 |       break;
      |       ^~~~~
Language: C++



#include<bits/stdc++.h>
using namespace std;
#define inf INT_MAX
#define INF LLONG_MAX
#define ll long long
#define ull unsigned long long
#define M (int)(1e9+7)
#define P pair<int,int>
#define FOR(i,m,n) for(int i=(int)m;i<(int)n;i++)
#define RFOR(i,m,n) for(int i=(int)m;i>=(int)n;i--)
#define rep(i,n) FOR(i,0,n)
#define rrep(i,n) RFOR(i,n,0)
#define all(a) a.begin(),a.end()
const int vx[4] = {0,1,0,-1};
const int vy[4] = {1,0,-1,0};
#define F first
#define S second
#define PB push_back
#define EB emplace_back
#define int ll
#define vi vector<int>
#define IP pair<int,P>
#define PI pair<P,int>
#define PP pair<P,P>
#define Yes(f){cout<<(f?"Yes":"No")<<endl;}
#define YES(f){cout<<(f?"YES":"NO")<<endl;}
int Madd(int x,int y) {return (x+y)%M;}
int Msub(int x,int y) {return (x-y+M)%M;}
int Mmul(int x,int y) {return (x*y)%M;}


signed main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout<<fixed<<setprecision(20);

  vi a(3);
  rep(i,3){
    cin>>a[i];
  }
  sort(all(a));

  cout<<a*b/2<<endl;


}

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

#include<iostream>
#include<cmath>
using namespace std;
typesef long long ll;


signed main(){
  ll a,b,c;
  cin>>a>>b>>c;
  ll h = pow((a+b+c)*(a-b+c)*(a+b-c)*(c+b-a)/16,0.5)/2;
  cout << h;
  return 0;
}
  

Compiler output:
a.cc:4:1: error: 'typesef' does not name a type; did you mean 'typedef'?
    4 | typesef long long ll;
      | ^~~~~~~
      | typedef
a.cc: In function 'int main()':
a.cc:8:3: error: 'll' was not declared in this scope
    8 |   ll a,b,c;
      |   ^~
a.cc:9:8: error: 'a' was not declared in this scope
    9 |   cin>>a>>b>>c;
      |        ^
a.cc:9:11: error: 'b' was not declared in this scope
    9 |   cin>>a>>b>>c;
      |           ^
a.cc:9:14: error: 'c' was not declared in this scope
    9 |   cin>>a>>b>>c;
      |              ^
a.cc:10:5: error: expected ';' before 'h'
   10 |   ll h = pow((a+b+c)*(a-b+c)*(a+b-c)*(c+b-a)/16,0.5)/2;
      |     ^~
      |     ;
a.cc:11:11: error: 'h' was not declared in this scope
   11 |   cout << h;
      |           ^
Language: C++

#include<iostream>
#include<cmath.h>
using namespace std;
typesef long long ll;


signed main(){
  ll a,b,c;
  cin>>a>>b>>c;
  ll h = pow((a+b+c)*(a-b+c)*(a+b-c)*(c+b-a)/16,0.5)/2;
  cout << h;
  return 0;
}
  

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

public class Main {
    public static void main(String args[]) {
      
      Scanner sc = new Scanner(System.in);
      
      int a,b,c;
      
      int sum = 0;
      
      a = sc.nextInt();
      b = sc.nextInt();
      c = sc.nextInt();
      
      sum = a * b / 2;
      
      System.out.print(sum);
      
    }
}

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

import java.util.*;
public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

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

      System.out.println(a*b/2);
  }


Compiler output:
Main.java:11: error: reached end of file while parsing
  }
   ^
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:21: error: expected primary-expression before '>' token
    7 |     cin >> a >> b >>> c;
      |                     ^
Language: C++

#include <iostream>
#include <vector>
#include <limits.h>
#include <algorithm>
#include <string>
#include <math.h>
#include <limits.h>
#include <queue>
#include <map>
#include <set>
#include <iomanip>
#include <bitset>
#include <cassert>
#include <random>
#include <functional>
#include <stack>
#include <iomanip>
#include <cassert>
using namespace std;
long long MOD = 1e9 + 7;

int A, B, C;
int main() {
	cin >> A >> B >> C;
	cout << min(A * B / 2, B * C / 2, C * A / 2) << endl;
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:25:13:   required from here
   25 |         cout << min(A * B / 2, B * C / 2, C * A / 2) << endl;
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(void){
  int a,b,c;
  vector<int> v;
  v = {a,b,c};
  sort(v.begin(),v.end()};
  cout << a * b / 2;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ')' before '}' token
    9 |   sort(v.begin(),v.end()};
      |       ~                 ^
      |                         )
a.cc: At global scope:
a.cc:10:3: error: 'cout' does not name a type
   10 |   cout << a * b / 2;
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
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:9: error: expected initializer before '>>' token
    5 |   int a >> b >> c;
      |         ^~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |               ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef long long ll;
const int INF=1001001001;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  int ans=a*b/2
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'cout'
   10 |   cout<<ans<<endl;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef long long ll;
const int INF=1001001001;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  ans=a*b/2
  cout<<ans<<endl;
  return 0;
}

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

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


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

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


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

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

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

  vector<int> vec = {a,b,c};
    sort(vec.begin(), vec.end());
    cout << (vec.at(0))*((vec.at(1))/2 << endl;
  }

  




Compiler output:
a.cc: In function 'int main()':
a.cc:10:40: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout << (vec.at(0))*((vec.at(1))/2 << endl;
      |                          ~~~~~~~~~~~~~~^~~~~~~
a.cc:10:47: error: expected ')' before ';' token
   10 |     cout << (vec.at(0))*((vec.at(1))/2 << endl;
      |                         ~                     ^
      |                                               )
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:6: error: 'a' was not declared in this scope
    4 | cin>>a>>b>>c;
      |      ^
a.cc:4:9: error: 'b' was not declared in this scope
    4 | cin>>a>>b>>c;
      |         ^
a.cc:4:12: error: 'c' was not declared in this scope
    4 | cin>>a>>b>>c;
      |            ^
Language: C++

    import java.util.Scanner;
    class Main{
    public static void main (String[] args){
    Scanner scanner =new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();
    int d = scanner.nextInt();
    if(a+b>c+d)
    System.out.println("Left");
    else if(a+b<c+d)
    System.out.println("Right");
    else
    System.out.println("Balanced");
    scanner.close();
    }
    }

Compiler output:
a.cc:1:5: error: 'import' does not name a type
    1 |     import java.util.Scanner;
      |     ^~~~~~
a.cc:1:5: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:11: error: expected ':' before 'static'
    3 |     public static void main (String[] args){
      |           ^~~~~~~
      |           :
a.cc:3:30: error: 'String' has not been declared
    3 |     public static void main (String[] args){
      |                              ^~~~~~
a.cc:3:39: error: expected ',' or '...' before 'args'
    3 |     public static void main (String[] args){
      |                                       ^~~~
a.cc:17:6: error: expected ';' after class definition
   17 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:4:5: error: 'Scanner' was not declared in this scope
    4 |     Scanner scanner =new Scanner(System.in);
      |     ^~~~~~~
a.cc:5:13: error: 'scanner' was not declared in this scope
    5 |     int a = scanner.nextInt();
      |             ^~~~~~~
a.cc:10:5: error: 'System' was not declared in this scope
   10 |     System.out.println("Left");
      |     ^~~~~~
a.cc:12:5: error: 'System' was not declared in this scope
   12 |     System.out.println("Right");
      |     ^~~~~~
a.cc:14:5: error: 'System' was not declared in this scope
   14 |     System.out.println("Balanced");
      |     ^~~~~~
Language: C

#include<stdio.h>
int main()
{
    int ab,bc,ca,area;
    scanf("%d%d%d",&ab,&bc,&ca);
    area=.5*ba*ab;
    printf("%d\nThis triangle has an area of%d.\n",area,area);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'ba' undeclared (first use in this function); did you mean 'ca'?
    6 |     area=.5*ba*ab;
      |             ^~
      |             ca
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

include <stdio.h>
int main() {
  int A,B,C;
  scanf("%d" "%d" "%d",&A,&B,&C);
  printf("%d\n",A*B/2);

  return 0;
}


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

#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
using namespace std;

ll inf=9223372036854775806;

int main()
{
	/freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
	ios_base::sync_with_stdio(false); cin.tie(0);
	int a,b,c;
	cin>>a>>b>>c;
	cout<<a*b/2;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected primary-expression before '/' token
   10 |         /freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
      |         ^
Language: C++


#include <iostream>
#include <string>
#include <vector>
#include <random>
#include <algorithm>

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

using std::vector;
using std::string;

void main() {

	int N;
	cin >> N;
	//int H[100];
	vector<int> H;
	for (int i = 0; i < N; i++) {
		int h;
		cin >> h;
		H.push_back(h);
	}


	int cnt = 0;
	while (true) {
		
		for (int i = 0; i < N; i++) {
			cerr << H[i] << " ";
		}
		cerr << endl;

		int i0=-1;
		bool flag = false;
		for (int i = 0; i < N; ++i) {
			if (H[i] > 0) {
				flag = true;
				H[i]--;
			}
			else if(flag==true && H[i] == 0){
				break;
			}
		}
		if (flag == false) {
			break;
		}
		cnt++;
	}
	cout << cnt << endl;

}

Compiler output:
a.cc:16:1: error: '::main' must return 'int'
   16 | void main() {
      | ^~~~
Language: Java

import java.util.Scanner;

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

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

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

int main() {
  double A; double B; double C;
  cin>>A>>B>>C;
  if(max(max(A,B),C)==A){
    cout<<B*C/2<<endl;
  }
    else if(max(max(A,B),C)==B){
      cout<<A*C/2<<endl;
    }
    else if(max(max(A,B),C)==C){
      cout<<A*B/2<<endl;
    }

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

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

int main() {
  int A; int B; int C;
  cin>>A>>B>>C;
  if(max(max(A,B),C)==A){
    cout<<B*C/2<<endl;
    else if(max(max(A,B),C)==B){
      cout<<A*C/2<<endl;
    }
    else if(max(max(A,B),C)==C){
      cout<<A*B/2<<endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before 'else'
    9 |     else if(max(max(A,B),C)==B){
      |     ^~~~
a.cc:7:25: note: to match this '{'
    7 |   if(max(max(A,B),C)==A){
      |                         ^
a.cc:14:6: error: expected '}' at end of input
   14 |     }
      |      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main (){
   double a, b, c, d;
   cin >> a >> b >> c;
   d = (a * b *(sqrt(1-((a*a + b*b - c*c)/(2*a*b))*((a*a + b*b - c*c)/(2*a*b)))))/2
   cout << d << endl;
   return 0;
}

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

using System;

namespace AtCoder
{
    public class ABC116_A
    {
        public static void Main(string[] args)
        {
            int a, b;
            string[] str = Console.ReadLine().Split(' ');
            a = int.Parse(str[0]);
            b = int.Parse(str[1]);
            Console.WriteLine(a * b / 2);
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:5: error: expected unqualified-id before 'public'
    5 |     public class ABC116_A
      |     ^~~~~~
Language: C++

using System;

namespace AtCoder
{
    public class ABC116_A
    {
        public static void Main(string[] args)
        {
            int a, b, c;
            string[] str = Console.ReadLine().Split(' ');
            a = int.Parse(str[0]);
            b = int.Parse(str[1]);
            Console.WriteLine(a * b / 2);
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:5:5: error: expected unqualified-id before 'public'
    5 |     public class ABC116_A
      |     ^~~~~~
Language: C++

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

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

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

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

#include<iostream>

int main(){
 	int n, ans=0;
  	cin >> n;
 	while(n!=2 && n!= 4 &&  n!=1){
     	ans++;
		if(n%2==1){
          	n*=3;n++;
        }
  		else{
          	n/=2;
        }
    }
  	std::cout << ans + 3;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> n;
      |         ^~~
      |         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>
int main(){
	int a,b;cin >> a >> b;cout << a*b/2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |         int a,b;cin >> a >> b;cout << a*b/2;
      |                 ^~~
      |                 std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:3:31: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    3 |         int a,b;cin >> a >> b;cout << a*b/2;
      |                               ^~~~
      |                               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 <vector>
using namespace std;

int main(void) {
	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:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> a >> b >> c;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <vector>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << (a * b) / 2 << endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:32: error: 'endl' was not declared in this scope
    7 |         cout << (a * b) / 2 << endl;
      |                                ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <vector>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

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

int main() {
  vector<int> v(3), a(3);
  cin >> v.at(0);
  cin >> v.at(1);
  cin >> v.at(2);
  a = sort(v.begin(), v.end());
  cout << a.at(1) * a.at(2) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'void')
    9 |   a = sort(v.begin(), v.end());
      |                              ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'void' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'void' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'void' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'void')
    9 |   v = sort(v.begin(), v.end());
      |                              ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'void' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'void' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'void' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: Java

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


Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:5: error: class, interface, enum, or record expected
    scanf("%d %d %d",&a,&b,&c);
    ^
Main.java:6: error: class, interface, enum, or record expected
    if(c*c==(a*a)+(b*b))
    ^
Main.java:9: error: class, interface, enum, or record expected
    }
    ^
5 errors
Language: C++

int coll[1000000];

int num = 0;


int collatz(int i){
    
       num = num+1;
    
        int n = 0;
    
        if (i%2 == 0){
        
           n = i/2;
        
        }else{
            
           n = 3*i+1;
        
        }
   

    for(int j = 0; j < 10000; ++j) {
        
        if (coll[j] == n){
          
             return num+1;
            
            
       }
        
   }
    
    
    
    
    coll[num] = n;
    
  
    
    return collatz(n);
}

int main(int argc, const char * argv[]) {
    
    int a;
    cin >> a;
    
    int t = collatz(a);
    
    cout << t << endl;

    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:47:5: error: 'cin' was not declared in this scope
   47 |     cin >> a;
      |     ^~~
a.cc:51:5: error: 'cout' was not declared in this scope
   51 |     cout << t << endl;
      |     ^~~~
a.cc:51:18: error: 'endl' was not declared in this scope
   51 |     cout << t << endl;
      |                  ^~~~
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main(){
int a, b, c;
float s, t;
int u;
cin >> a >> b >> c;
s = (a + b + c)/2;
t = s * (s-a) * (s-b) * (s-c);
u = sqrt(t);
printf (u);
 
  
return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 | printf (u);
      |         ^
      |         |
      |         int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){

  int a , b, c;
  cin >> a >> b >> c;
  int S;
  float t;
  t = (a + b + c)/2;
  S = (t* (t-a) * (t-b) * (t-c))** 0.5
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:34: error: invalid type argument of unary '*' (have 'double')
   10 |   S = (t* (t-a) * (t-b) * (t-c))** 0.5
      |                                  ^~~~~
Language: Java

import java.util.*;
import java.lang.*;

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

Compiler output:
Main.java:10: error: cannot find symbol
        result = (int)(a*b/2);
        ^
  symbol:   variable result
  location: class Main
Main.java:11: error: cannot find symbol
        System.out.println(result);
                           ^
  symbol:   variable result
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>

int main(void){
std::vector<int> len(3);
  for(int i=0;i<3;i++){
  std::cin>> len(i);
  }
  std::cout<< len(0)*len(1) <<std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: no match for call to '(std::vector<int>) (int&)'
    6 |   std::cin>> len(i);
      |              ~~~^~~
a.cc:8:18: error: no match for call to '(std::vector<int>) (int)'
    8 |   std::cout<< len(0)*len(1) <<std::endl;
      |               ~~~^~~
a.cc:8:25: error: no match for call to '(std::vector<int>) (int)'
    8 |   std::cout<< len(0)*len(1) <<std::endl;
      |                      ~~~^~~
Language: C++

#include<bits/stdc++.h>

int main(void){
vector<int> len(3);
  for(int i=0;i<3;i++){
  cin>> len(i);
  }
  cout<< len(0)*len(1) <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'vector' was not declared in this scope
    4 | vector<int> len(3);
      | ^~~~~~
a.cc:4:1: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:4:8: error: expected primary-expression before 'int'
    4 | vector<int> len(3);
      |        ^~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>> len(i);
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:9: error: 'len' was not declared in this scope
    6 |   cin>> len(i);
      |         ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<< len(0)*len(1) <<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:10: error: 'len' was not declared in this scope
    8 |   cout<< len(0)*len(1) <<endl;
      |          ^~~
a.cc:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<< len(0)*len(1) <<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<vector>
int main(void){
vector<int> len(3);
  for(int i=0;i<3;i++){
  cin>> len(i);
  }
  cout<< len(0)*len(1) <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'vector' was not declared in this scope
    4 | vector<int> len(3);
      | ^~~~~~
a.cc:4:1: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:4:8: error: expected primary-expression before 'int'
    4 | vector<int> len(3);
      |        ^~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>> len(i);
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:9: error: 'len' was not declared in this scope; did you mean 'mblen'?
    6 |   cin>> len(i);
      |         ^~~
      |         mblen
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<< len(0)*len(1) <<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:10: error: 'len' was not declared in this scope; did you mean 'mblen'?
    8 |   cout<< len(0)*len(1) <<endl;
      |          ^~~
      |          mblen
a.cc:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<< len(0)*len(1) <<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: C++

#include<iostream>
int main(void){
vector<int> len(3);
  for(int i=0;i<3;i++){
  cin>> len(i);
  }
  cout<< len(0)*len(1) <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'vector' was not declared in this scope
    3 | vector<int> len(3);
      | ^~~~~~
a.cc:3:8: error: expected primary-expression before 'int'
    3 | vector<int> len(3);
      |        ^~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>> len(i);
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:9: error: 'len' was not declared in this scope; did you mean 'mblen'?
    5 |   cin>> len(i);
      |         ^~~
      |         mblen
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<< len(0)*len(1) <<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:10: error: 'len' was not declared in this scope; did you mean 'mblen'?
    7 |   cout<< len(0)*len(1) <<endl;
      |          ^~~
      |          mblen
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<< len(0)*len(1) <<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: C

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

    int re = a*(.5*b);

    cout<<re<<endl;



    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
  int c[3];
  cin>>c[0]>>c[1]>>c[2];
  sort(c.begin(),c.end())
  cout<<c[0]*c[1]/2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: request for member 'begin' in 'c', which is of non-class type 'int [3]'
    7 |   sort(c.begin(),c.end())
      |          ^~~~~
a.cc:7:20: error: request for member 'end' in 'c', which is of non-class type 'int [3]'
    7 |   sort(c.begin(),c.end())
      |                    ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected primary-expression before ';' token
    8 |   cout << AB * BC / 2*;
      |                       ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:33: error: expected expression before ')' token
   15 |         printf("%d\n", (a * b) /);
      |                                 ^
Language: Java

import java.util.*;
import java.lang.reflect.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a  = sc.nextInt();
        int b  = sc.nextInt();
        System.out.prntln(a * b /2);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        System.out.prntln(a * b /2);
                  ^
  symbol:   method prntln(int)
  location: variable out of type PrintStream
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'S' was not declared in this scope
    6 | S = A*B;
      | ^
Language: C++

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

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){int a,b;std::cin >> a >> b;cout << a*b/2 << endl;}
      | ^~~~
a.cc: In function 'int main()':
a.cc:2:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    2 | main(){int a,b;std::cin >> a >> b;cout << a*b/2 << endl;}
      |                                   ^~~~
      |                                   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:2:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | main(){int a,b;std::cin >> a >> b;cout << a*b/2 << 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: C++

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

int main()
{
	int a[3];
	for(int i=0;i<3;i++)
	{
		cin>>a[i];
	 } 
	 sort(a,a+3);
	 cout<<a[0]*a[1]/2<<endl;
	return 0;
 }

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

x, y, z = gets.chop.split.map(&:to_i)
num = [x,y,z]
num.sort
puts num[0]*num[1]/2



Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x, y, z = gets.chop.split.map(&:to_i)
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll a,b,c;cin>>a>>b>>c;
      |   ^~
a.cc:5:17: error: 'a' was not declared in this scope
    5 |   ll a,b,c;cin>>a>>b>>c;
      |                 ^
a.cc:5:20: error: 'b' was not declared in this scope
    5 |   ll a,b,c;cin>>a>>b>>c;
      |                    ^
a.cc:5:23: error: 'c' was not declared in this scope
    5 |   ll a,b,c;cin>>a>>b>>c;
      |                       ^
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
      int ab = sc.nextInt();
      int bc = sc.nextInt();
      int ca = sc.nextInt();
      System.out.println(a*b/2);
      sc.close();
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      System.out.println(a*b/2);
                         ^
  symbol:   variable a
  location: class Main
Main.java:8: error: cannot find symbol
      System.out.println(a*b/2);
                           ^
  symbol:   variable b
  location: class Main
2 errors
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:8: error: expected primary-expression before '|' token
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |        ^
a.cc:6:9: error: 'ab' was not declared in this scope; did you mean 'abs'?
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |         ^~
      |         abs
a.cc:6:12: error: expected primary-expression before '>>' token
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |            ^~
a.cc:6:14: error: expected primary-expression before '|' token
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |              ^
a.cc:6:15: error: 'bc' was not declared in this scope
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |               ^~
a.cc:6:18: error: expected primary-expression before '>>' token
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |                  ^~
a.cc:6:20: error: expected primary-expression before '|' token
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |                    ^
a.cc:6:21: error: 'ca' was not declared in this scope
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |                     ^~
a.cc:6:24: error: expected primary-expression before ';' token
    6 |   cin>>|ab|>>|bc|>>|ca|;
      |                        ^
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 <bits/stdc++.h>
using namespace std;

int main(){
  int a,b,c;
  cin >>a>>b>>c;
  int l = max((max(a,b),c);
  int s = min(mix(a,c),b));
  cout << (a+b+c - l - s * s) / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: warning: ignoring return value of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
    7 |   int l = max((max(a,b),c);
      |                ~~~^~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: declared here
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:7:27: error: expected ')' before ';' token
    7 |   int l = max((max(a,b),c);
      |              ~            ^
      |                           )
a.cc:8:15: error: 'mix' was not declared in this scope
    8 |   int s = min(mix(a,c),b));
      |               ^~~
Language: C++

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

int main(){
  int a,b,c;
  cin >>a>>b>>c;
  cout << (a+b+c - max((max(a,b),c) - min(mix(a,c),b)) * min(min(a,b),c) / 2 << endl;
           }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: warning: ignoring return value of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', declared with attribute 'nodiscard' [-Wunused-result]
    7 |   cout << (a+b+c - max((max(a,b),c) - min(mix(a,c),b)) * min(min(a,b),c) / 2 << endl;
      |                         ~~~^~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: declared here
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:7:43: error: 'mix' was not declared in this scope
    7 |   cout << (a+b+c - max((max(a,b),c) - min(mix(a,c),b)) * min(min(a,b),c) / 2 << endl;
      |                                           ^~~
a.cc:7:85: error: expected ')' before ';' token
    7 |   cout << (a+b+c - max((max(a,b),c) - min(mix(a,c),b)) * min(min(a,b),c) / 2 << endl;
      |           ~                                                                         ^
      |                                                                                     )
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 b = sc.nextInt();
		int c = sc.nextInt();

	int a1=a*b;
	int a2=a*c;
	int a3=b*c;
	System.out.println(Math.min(a1,Math,min(a2,a3)));

	}}

Compiler output:
Main.java:14: error: cannot find symbol
	System.out.println(Math.min(a1,Math,min(a2,a3)));
	                               ^
  symbol:   variable Math
  location: class Main
Main.java:14: error: cannot find symbol
	System.out.println(Math.min(a1,Math,min(a2,a3)));
	                                    ^
  symbol:   method min(int,int)
  location: class Main
2 errors