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

#include<bits/stdc++.h>
#define ll long long
int main(void)
{
  ll a,b,c;
  cin>>a>>b>>c;
  cout<<(a*b)/2;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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 <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 >
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:
main.c:1:10: fatal error: iostream : No such file or directory
    1 | #include <iostream >
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cassert>
#include <iostream>
#include <string>
#include <stack>
#include <queue>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <bitset>

using namespace std;

int main() {
    std::ios::sync_with_stdio(0); cin.tie(0);
    int a, b, c;
    int ans;
    cin >> a >> b >> c;
    // for(int i=0;i<A;i++){
    //     double z;
    //     string p;
    //     cin >> z;
    //     cin >> p;
    //     if(p=="BTC") {
    //         b += z*380000;
    //     }else if(p=="JPY"){
    //         b += z;
    //     }
    // }
    ans = a*b*c/2/max(a,b,c);
    cout << ans << endl;
}

Compiler output:
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:35:22:   required from here
   35 |     ans = a*b*c/2/max(a,b,c);
      |                   ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i, a, n)  for(int i=a; i<n; i++)
#define per(i, a, n)  for(int i=n-1; i>=a; i--)
#define fill0(n)  setfill('0') << right << setw(n)
#define all(x)  (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define MAX 1e18
using namespace std;
typedef long long ll;

int a,b,c;
int main(){
  std::cin >> a >> b >> c;
  int res = MAX;
  res = Min(res, a*b/2);
  res = min(res, b*c/2);
  res = min(res, c*a/2);
  std::cout << res << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
    8 | #define MAX 1e18
      |             ^~~~
a.cc:15:13: note: in expansion of macro 'MAX'
   15 |   int res = MAX;
      |             ^~~
a.cc:16:9: error: 'Min' was not declared in this scope; did you mean 'sin'?
   16 |   res = Min(res, a*b/2);
      |         ^~~
      |         sin
Language: C++

#include<bits/stdc++.h>

#define rep(i, a, n)  for(int i=a; i<n; i++)
#define per(i, a, n)  for(int i=n-1; i>=a; i--)
#define fill0(n)  setfill('0') << right << setw(n)
#define all(x)  (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define MAX 1e18
using namespace std;
typedef long long ll;

int a,b,c;
int main(){
  std::cin >> a >> b >> c;
  res = MAX;
  res = min(res, a*b/2);
  res = min(res, b*c/2);
  res = min(res, c*a/2);
  std::cout << res << '\n';
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'res' was not declared in this scope; did you mean 'rep'?
   15 |   res = MAX;
      |   ^~~
      |   rep
Language: C++

#include <iostream>
#include <algorithm>
int a[3];
int main{
  cin>>a[0]>>a[1]>>a[2];
  sort(a,a+3);
  cout<<a[0]*a[1]<<endl;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a[0]>>a[1]>>a[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:5:24: error: expected '}' before ';' token
    5 |   cin>>a[0]>>a[1]>>a[2];
      |                        ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:7: error: expected constructor, destructor, or type conversion before '(' token
    6 |   sort(a,a+3);
      |       ^
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout<<a[0]*a[1]<<endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int line[3];
  int x,y;
  for(int i=0; i < 3; ++i){
    cin >> line[i];
  }
  int max_index = max_element(line, line + 3) - line;

  if(max_index == 0){
    x = line[1];
    y = line[2];
  }else if(max_index == 1){
    x = line[0];
    y = line[2];
  }else{
    x = line[0];
    y = line[1];
  }

  cout << x*y/2 << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'max_element' was not declared in this scope
   10 |   int max_index = max_element(line, line + 3) - line;
      |                   ^~~~~~~~~~~
Language: C

#include <stdio.h>

int main(void) 
{
    int ab, bc, ca;
    scanf("%d %d %d", &ab, &bc, &ca);
    printf("%d\n" ab*bc/2);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected ')' before 'ab'
    7 |     printf("%d\n" ab*bc/2);
      |           ~      ^~~
      |                  )
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> AB >> BC >> CA;
      |     ^~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << AB*BC/2 << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << AB*BC/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 <iostream>
using namespace std;

int main(){
  int a=0, b=0;
  cin >> a >> b;
  cout << a*b\2 << endl;
}

Compiler output:
a.cc:7:14: error: stray '\' in program
    7 |   cout << a*b\2 << endl;
      |              ^
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before numeric constant
    7 |   cout << a*b\2 << endl;
      |              ^~
      |              ;
Language: C++

#include<iostream>
using namespace std;
int main(){
  int AB, BC, CA;
cin >>AB >>BC >>CA;
  int S = AB * BC / 2;
    cout <<S <<emdl;
  
    return 0;
}


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

#include<iostream>
using namespace std;
int main(){
  int AB, BC, CA;
cin >>AB >>BC >>CA;
  int S = AB * BC / 2
    cout <<S <<emdl;
  
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected ',' or ';' before 'cout'
    7 |     cout <<S <<emdl;
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int AB, BC, CA;
cin >>AB >>BC >>CA;
  ins S = AB * BC / 2
    cout <<S <<emdl;
  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'ins' was not declared in this scope; did you mean 'int'?
    6 |   ins S = AB * BC / 2
      |   ^~~
      |   int
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();
    
    double area;
    if (ca > ab && ca > bc) {
      area = ab * bc * 0.5;
    } else if (ab > bc & ab > ca) {
      area = bc * ca * 0.5;
    } else {
      area = ab * ca * 0.5;
    }
    
    System.out.println(area);
  }
  
  
  
}


Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
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();
    
    double area = ab * bc * 0.5;
    System.out.println(area);
  }
  
  
  
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:13: error: expected expression before 'int'
    9 |   menseki = int(a * b / 2);
      |             ^~~
Language: C

#include <stdio.h>
int main (void)
{
  int a, b, c;
  int menseki = 0;
  
  scanf("%d %d %d", &a, &b, &c);
  
  menseki = a * b / 2;
  print("%d", menseki);
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |   print("%d", menseki);
      |   ^~~~~
      |   printf
Language: C

#include <stdio.h>
int main (void)
{
  int a, b, c;
  int menseki = 0;
  
  scanf("%d %d %d", &a, &b, &c);
  
  mesnki = a * b /2;
  print("%d", menseki);
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: 'mesnki' undeclared (first use in this function); did you mean 'menseki'?
    9 |   mesnki = a * b /2;
      |   ^~~~~~
      |   menseki
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |   print("%d", menseki);
      |   ^~~~~
      |   printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   print("%d", a*b/2);
      |   ^~~~~
      |   printf
Language: C++

#include<iostream>
using namespace std ;
int main () {
int A , B ,C; cin >> A >> B >> C;

int table[3]={A,B,C};
sort(table,table+3);
cout <<table[0]*table[1]/2  << endl ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 | sort(table,table+3);
      | ^~~~
      | short
Language: C++

#include<iostream>
using namespace std ;
int main () {
int A , B ,C; cin >> A >> B >> C;

int table[3]={A,B,C};
sort(table);
cout <<table[0]*table[1]/2  << endl ;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 | sort(table);
      | ^~~~
      | short
Language: C++

# include < bits / stdc ++. h >
using namespace std ;
int main () {
int A , B ,C; cin >> A >> B >> C;

int table[3]={A,B,C};
sort(table);
cout <<table[0]*table[1]/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 AB,BC,AC,i;
  
  cin>>AB>>BC>>AC;
  
  i=AB*AC/2;
  cout<<i
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected ';' before '}' token
   10 |   cout<<i
      |          ^
      |          ;
   11 | }
      | ~
Language: C++

#include<iostream>
2.2using namespace std;
3.3. 
4.4.int main(){
5.5.  int ab,bc,ac;
6.6.    cin>>ab>>bc>>ac;
7.7.  int area =ab*bc/2;
8.8.    cout <<area<<endl;
9.9.  return0;
10.10.}


Compiler output:
a.cc:3:1: error: too many decimal points in number
    3 | 3.3.
      | ^~~~
a.cc:4:1: error: too many decimal points in number
    4 | 4.4.int main(){
      | ^~~~~~~
a.cc:5:1: error: too many decimal points in number
    5 | 5.5.  int ab,bc,ac;
      | ^~~~
a.cc:6:1: error: too many decimal points in number
    6 | 6.6.    cin>>ab>>bc>>ac;
      | ^~~~
a.cc:7:1: error: too many decimal points in number
    7 | 7.7.  int area =ab*bc/2;
      | ^~~~
a.cc:8:1: error: too many decimal points in number
    8 | 8.8.    cout <<area<<endl;
      | ^~~~
a.cc:9:1: error: too many decimal points in number
    9 | 9.9.  return0;
      | ^~~~
a.cc:10:1: error: too many decimal points in number
   10 | 10.10.}
      | ^~~~~~
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.2using namespace std;
      | ^~~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.3.
      | ^~~~
Language: C++

#include<iostream>
2using namespace std;
3. 
4.int main(){
5.  int ab,bc,ac;
6.    cin>>ab>>bc>>ac;
7.  int area =ab*bc/2
8.    cout <<area<<endl;
9.  return0;
10.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2using namespace std;
      | ^~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.
      | ^~
Language: C++

#include<iostream>
2.using namespace std;
3. 
4.int main(){
5.  int ab,bc,ac;
6.    cin>>ab>>bc>>ac;
7.  int area =ab*bc/2
8.    cout >>area>>endl;
9.  return0;
10.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.using namespace std;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.
      | ^~
Language: C++

#include<iostream>
#include<string>

int main(){
  int ab,bc,ac;
    cin>>ab>>bc>>ac;
  int area =ab*bc/2
    cout >>area>>endl;
  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>ab>>bc>>ac;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: expected ',' or ';' before 'cout'
    8 |     cout >>area>>endl;
      |     ^~~~
a.cc:9:3: error: 'return0' was not declared in this scope
    9 |   return0;
      |   ^~~~~~~
Language: C++

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

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

#inlcude<bits/stdc++.h>
using namespace std;
int main(){
  int a>>b>>c;
  int s=(a+b+c)/2;
  int areae=sqrt(s*(s-a)*(s-b)*(s-c));
  cout<<area<<endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before '>>' token
    4 |   int a>>b>>c;
      |        ^~
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   int s=(a+b+c)/2;
      |          ^
a.cc:5:12: error: 'b' was not declared in this scope
    5 |   int s=(a+b+c)/2;
      |            ^
a.cc:5:14: error: 'c' was not declared in this scope
    5 |   int s=(a+b+c)/2;
      |              ^
a.cc:6:13: error: 'sqrt' was not declared in this scope
    6 |   int areae=sqrt(s*(s-a)*(s-b)*(s-c));
      |             ^~~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<area<<endl;
      |   ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:7:9: error: 'area' was not declared in this scope; did you mean 'areae'?
    7 |   cout<<area<<endl;
      |         ^~~~
      |         areae
a.cc:7:15: error: 'endl' was not declared in this scope
    7 |   cout<<area<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<bits/stdc++.h>
Language: C++

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

int main(){
  int n;
  cin>>n;
  vector<int> h(n);
  for(int i;i<n;i++){
    cin>>h.at(i);
  }
  
  int answer=0;
  int junc=0;
  
for(int j=0;j<max_element(h.begin(),h.end();j++){	  
    for(int i=0;i<n-1;i++){	//連結数をカウント
      if(h.at(i)==0&&h.at(i)>0){
        junc++;
      }
    }
    if(h.at(0)>0){
      junc++;
    }
    
    
    for(int j=0;j<n;j++){
      if(h.at(j)==0){
        continue;	//何もしない
      }else if(h.at(j)>0){
        h.at(j)--;
      }
    }
    answer+=junc;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:44: error: expected ')' before ';' token
   15 | for(int j=0;j<max_element(h.begin(),h.end();j++){
      |                          ~                 ^
      |                                            )
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a[0] >> a[1] >> a[2];
      |   ^~~
a.cc:7:8: error: 'a' was not declared in this scope
    7 |   sort(a, a+3);
      |        ^
Language: Java

import java.io.*;
import java.util.*;
class Main {
	Scanner s = new Scanner(System.in);
  	int a = s.nextInt();
    int b = s.nextInt();
	int c = s.nextInt();
   int res = a * b;
  	System.out.println(res/2);
}


Compiler output:
Main.java:9: error: <identifier> expected
  	System.out.println(res/2);
  	                  ^
Main.java:9: error: <identifier> expected
  	System.out.println(res/2);
  	                      ^
2 errors
Language: Java

import java.io.*;
import java.util.*;
class Main {
	Scanner s = new Scanner(System.in);
  	int a = s.nextInt();
    int b = s.nextInt();
	int c = s.nextInt();
  	System.out.println(((a*b)/2));
}


Compiler output:
Main.java:8: error: <identifier> expected
  	System.out.println(((a*b)/2));
  	                  ^
Main.java:8: error: illegal start of type
  	System.out.println(((a*b)/2));
  	                   ^
2 errors
Language: Java

import java.io*;
import java.util.*;
class Main {
	Scanner s = new Scanner(System.in);
  	int a = s.nextInt();
    int b = s.nextInt();
	int c = s.nextInt();
  	System.out.println(((a*b)/2));
}


Compiler output:
Main.java:1: error: ';' expected
import java.io*;
              ^
Main.java:8: error: <identifier> expected
  	System.out.println(((a*b)/2));
  	                  ^
Main.java:8: error: illegal start of type
  	System.out.println(((a*b)/2));
  	                   ^
3 errors
Language: Java

import java.io*;
import java.util.*;
class Main {
	Scanner s = new Scanner(System.in);
  	int a = s.nextInt();
    int b = s.nextInt();
	int c = s.nextInt();
  	System.out.println((a*b)/2);
}

Compiler output:
Main.java:1: error: ';' expected
import java.io*;
              ^
Main.java:8: error: <identifier> expected
  	System.out.println((a*b)/2);
  	                  ^
Main.java:8: error: illegal start of type
  	System.out.println((a*b)/2);
  	                   ^
3 errors
Language: Java


import java.util.Scanner;

public class ABC117Main {

	public static void main(String[] args) {

		ABC116_A();
		// ABC116_B();
		// ABC116_C();
		// ABC116_D();
	}

	private static void ABC116_A() {
		Scanner scanner = null;
		int lineAB = 0;
		int lineBC = 0;
		int lineCA = 0;

		try {
			scanner = new Scanner(System.in);
			lineAB = scanner.nextInt();
			lineBC = scanner.nextInt();
			lineCA = scanner.nextInt();

			int result = lineAB * lineBC / 2;
			System.out.println(result);

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private static void ABC116_B() {
		Scanner scanner = null;
		String numT = "";
		String numX = "";

		try {
			scanner = new Scanner(System.in);
			numT = scanner.next();
			numX = scanner.next();

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private static void ABC116_C() {
		Scanner scanner = null;
		String numT = "";
		String numX = "";

		try {
			scanner = new Scanner(System.in);
			numT = scanner.next();
			numX = scanner.next();

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}

	private static void ABC116_D() {
		Scanner scanner = null;
		String numT = "";
		String numX = "";

		try {
			scanner = new Scanner(System.in);
			numT = scanner.next();
			numX = scanner.next();

		} finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}
}

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

#include<iostream>
int AB;
int BC;
int CA;
int menseki(int ab, int cb, int ca ){
  int V;
  V=ab*cb/2;
  return V;
}
int main(){
  cin>>AB>>BC>>CA;
  cout<<menseki[AB,BC,CA]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   cin>>AB>>BC>>CA;
      |   ^~~
      |   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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout<<menseki[AB,BC,CA]<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   12 |   cout<<menseki[AB,BC,CA]<<endl;
      |                         ^
a.cc:12:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout<<menseki[AB,BC,CA]<<endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.Arrays;
import java.util.Scanner;
 
public class Main {
    public static void Main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int[] tri;
      tri[0] = scan.nextInt(); 
      tri[1] = scan.nextInt(); 
      tri[2] = scan.nextInt(); 
      
      Arrays.sort(tri);
      System.out.print((tri[0] * tri[1]) /2);
    }
 
}

Compiler output:
Main.java:8: error: variable tri might not have been initialized
      tri[0] = scan.nextInt(); 
      ^
1 error
Language: C++

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

int main ()
{
    int x y z;
    cin >> x >> y;
    cout << x*y/2 << endl;
    return 0;
}












Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected initializer before 'y'
    8 |     int x y z;
      |           ^
a.cc:9:12: error: 'x' was not declared in this scope
    9 |     cin >> x >> y;
      |            ^
a.cc:9:17: error: 'y' was not declared in this scope; did you mean 'yn'?
    9 |     cin >> x >> y;
      |                 ^
      |                 yn
Language: C++

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

int main ()
{
    int x y z;
    cin >> x >> y;
    cout << x*y/2 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected initializer before 'y'
    8 |     int x y z;
      |           ^
a.cc:9:12: error: 'x' was not declared in this scope
    9 |     cin >> x >> y;
      |            ^
a.cc:9:17: error: 'y' was not declared in this scope; did you mean 'yn'?
    9 |     cin >> x >> y;
      |                 ^
      |                 yn
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int AB, BC, AC;
  int S;
  cin >> AB >> BC >> AC;
  if (AB*AB + BC*BC == AC*AC)
  {
    S = 0.5*(AB*BC);
  }
  else
    return False;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'False' was not declared in this scope
   14 |     return False;
      |            ^~~~~
Language: C++

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

template <class T>
bool contain(const std::string &s, const T &v)
{
    return s.find(v) != std::string::npos;
}

int func(int n){
    if(n%2==0){
        return n/2;
    }else{
        return 3*n+1;
    }
}

int a[1000005] = {};

int main()
{
    int s,cnt=0,index=0;
    cin>>s;
    while(cnt!=2){
        if(s==4)cnt++;
        index++;
        // cout<<cnt<<": "<<s<<endl;
        s = func(s);
    }
    cout<<index<<endl;
}
#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
#include <vector>
#include <set>
#include <utility>
#include <cstdio>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n, m) for (int i = n; i >= m; i--)

template <class T>
bool contain(const std::string &s, const T &v)
{
    return s.find(v) != std::string::npos;
}

int func(int n){
    if(n%2==0){
        return n/2;
    }else{
        return 3*n+1;
    }
}

int main()
{
    int s,cnt=0,index=0;
    cin>>s;
    while(cnt!=2){
        index++;
        if(s==4)cnt++;
        // cout<<cnt<<": "<<s<<endl;
        s = func(s);
    }
    cout<<index<<endl;
}

Compiler output:
a.cc:58:6: error: redefinition of 'template<class T> bool contain(const std::string&, const T&)'
   58 | bool contain(const std::string &s, const T &v)
      |      ^~~~~~~
a.cc:16:6: note: 'template<class T> bool contain(const std::string&, const T&)' previously declared here
   16 | bool contain(const std::string &s, const T &v)
      |      ^~~~~~~
a.cc:63:5: error: redefinition of 'int func(int)'
   63 | int func(int n){
      |     ^~~~
a.cc:21:5: note: 'int func(int)' previously defined here
   21 | int func(int n){
      |     ^~~~
a.cc:71:5: error: redefinition of 'int main()'
   71 | int main()
      |     ^~~~
a.cc:31:5: note: 'int main()' previously defined here
   31 | int main()
      |     ^~~~
Language: Java

public static void main(String... args) {
  int height = Integer.parseInt(arg[0]);
  int width = Integer.parseInt(arg[1]);
  
  System.out.println((height * width) / 2); 
}

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

#include <iostream>
using namespace std;
int main()
{
    int a, b, c, S;

    cin >> a;
    cin >> b;
    cin >> c;

    cout << a * b / 2;

    return 0;
}a

Compiler output:
a.cc:14:2: error: 'a' does not name a type
   14 | }a
      |  ^
Language: C++

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

Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a>>b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout<<a*b/2<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout<<a*b/2<<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 <stdio.h>
#include <math.h>
int main(void){
  int a, b, c;
  scanf("%d %d %d",&a,&b,&c);
  return (int)pow(a*a+b*b,0,5);
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: too many arguments to function 'pow'
    6 |   return (int)pow(a*a+b*b,0,5);
      |               ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
  int a, b, c;
  scanf("%d %d %d",&a.&b,&c);
  return (int)pow(a*a+b*b,0,5);
}

Compiler output:
main.c: In function 'main':
main.c:5:23: error: expected identifier before '&' token
    5 |   scanf("%d %d %d",&a.&b,&c);
      |                       ^
main.c:6:15: error: too many arguments to function 'pow'
    6 |   return (int)pow(a*a+b*b,0,5);
      |               ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
Language: C++

#!/usr/bin/env python3
# -*- coding:utf-8 -*-

if __name__=='__main__':
  li = [int(x) for x in input().split()]
  li.sort()
  print(li[0]*li[1]/2)

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:2:3: error: invalid preprocessing directive #-
    2 | # -*- coding:utf-8 -*-
      |   ^
a.cc:4:14: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    4 | if __name__=='__main__':
      |              ^~~~~~~~~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if __name__=='__main__':
      | ^~
Language: C++

import java.util.*;

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(AB*BC);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:11:2: error: expected ';' after class definition
   11 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:18: error: 'sc' was not declared in this scope
    6 |         int AB = sc.nextInt();
      |                  ^~
a.cc:9:9: error: 'System' was not declared in this scope
    9 |         System.out.println(AB*BC);
      |         ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int a,b;
    cin >> a>>b >>c;
    // スペース区切りの整数の入力
    // 文字列の入力
    cout << (a+b)/2  << endl;
    return 0;
  }


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

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

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> side(3);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> side(3);
      |          ^~~
a.cc:7:12: error: 'side' was not declared in this scope
    7 |     cin >> side.at(i);
      |            ^~~~
a.cc:10:8: error: 'side' was not declared in this scope
   10 |   sort(side.begin(), side.end());
      |        ^~~~
a.cc:10:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |   sort(side.begin(), side.end());
      |   ^~~~
      |   short
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<int> side(3);
      |   ^~~~~~
a.cc:4:10: error: expected primary-expression before 'int'
    4 |   vector<int> side(3);
      |          ^~~
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> side.at(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:12: error: 'side' was not declared in this scope
    6 |     cin >> side.at(i);
      |            ^~~~
a.cc:9:8: error: 'side' was not declared in this scope
    9 |   sort(side.begin(), side.end());
      |        ^~~~
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |   sort(side.begin(), side.end());
      |   ^~~~
      |   short
a.cc:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << side.at(1) * side.at(2) << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << side.at(1) * side.at(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: Java

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

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

Compiler output:
Main.java:7: error: <identifier> expected
  public static main void(String[] args){
                    ^
Main.java:7: error: <identifier> expected
  public static main void(String[] args){
                         ^
2 errors
Language: Java



class Main{
public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		// get a integer
		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		
		int total = getAreaTriangle(num1,num2);
		
		System.out.println(total);
	}
	
	public static boolean isMaxNum(int num) {
		return num > 100 ? true : false;
	}
	
	
	public static int getAreaTriangle(int num1,int num2) {
		
		if(isMaxNum(num1) || isMaxNum(num2) ) {
			return 0;
		}
		
		return  (num2 * num1) / 2; 
	}
	
}


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

package Algorithm.Sorting;

import java.util.Scanner;

public class Test2 {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		// get a integer
		int fare1 = sc.nextInt();
		int fare2 = sc.nextInt();
		
		int total = getTotalPrice(fare1,fare2);
		
		System.out.println(total);
	}
	
	public static boolean isMaxFare(int fare) {
		return fare > 100 ? true : false;
	}
	
	public static boolean isOddNumber(int fare) {
		System.out.println(fare % 2 );
		return (fare % 2 ) == 0 ? true : false;
	}
	
	public static int getTotalPrice(int fare1,int fare2) {
		
		if(isMaxFare(fare1) || isMaxFare(fare2)) {
			return 0;
		}
		
		if(!isOddNumber(fare1) || !isOddNumber(fare2)) {
			return 0;
		}
		
		return fare1 + (fare2 / 2); 
	}
	
}


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

#include <iosream>
using namespace std;

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

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

#include<iostream>
using namespace std;
int AB;
int BC;
int CA;
int V;
int main(){
  cin >> AB >> BC >> CA;
  V=AB*BC*2/1
    cout << V << endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before 'cout'
    9 |   V=AB*BC*2/1
      |              ^
      |              ;
   10 |     cout << V << endl;
      |     ~~~~      
a.cc:10:23: error: expected '}' at end of input
   10 |     cout << V << endl;
      |                       ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#include "pch.h"
#include<cstdio>

int main(void) {
	int a, b, c, A, B, C;
	int s;

	scanf("%d %d %d", &a, &b, &c);
	
	s = a * b / 2;

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

	return 0;

}


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

public class Main{
  public static void main(String[] args){
    Scanner sc = new java.util.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:3: error: cannot find symbol
    Scanner sc = new java.util.Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
1 error
Language: C

#include<stdio.h>
int main(void)
{
    int a, b, c, ansl\;

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

    ans = a * b;
    ans = ans / 2;

    printf("%d", ans);

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:22: error: stray '\' in program
    4 |     int a, b, c, ansl\;
      |                      ^
main.c:10:5: error: 'ans' undeclared (first use in this function); did you mean 'ansl'?
   10 |     ans = a * b;
      |     ^~~
      |     ansl
main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;

public class Sample {

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

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

public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int AB,BC;
		AB = sc.nextInt();
		BC = sc.nextInt();
		System.out.println(BC * AB / 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: Java

import java.util.*;
public class Sample {

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

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

<include>
int main(){
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
int i,j;
if(a>=b&&a>=c){
	printf("%d",b*c);
    return 0;
}
if(b>=a&&b>=c){
	printf("%d",a*c);
    return 0;
}
if(c>=a&&c>=b){
	printf("%d",a*b);
    return 0;
}
return 0;
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before '<' token
    1 | <include>
      | ^
Language: C++

using namespace std;
 
#define lli long long int
int main()
{
 	std::ios_base::sync_with_stdio(false);
  	cin.tie(0);
  lli a,b,c;
  cin>>a>>b>>c;
  lli m=max(a,b);
  m=max(c,m);
  lli ans=1;
  ans*=a;
  ans*=b;
  ans*=c;
  ans/=m;
  ans/=2;
  cout<<ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'std::ios_base' has not been declared
    6 |         std::ios_base::sync_with_stdio(false);
      |              ^~~~~~~~
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin.tie(0);
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:10:9: error: 'max' was not declared in this scope
   10 |   lli m=max(a,b);
      |         ^~~
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout<<ans;
      |   ^~~~
a.cc:18:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

#define lli long long int
int main()
{
 	std::ios_base::sync_with_stdio(false);
  	cin.tie(0);
  lli a,b,c;
  cin>>a>>b>>c;
  lli m=max(a,b);
  m=max(c,m);
  lli ans=1;
  ans*=a;
  ans8=b;
  ans*=c;
  ans/=m;
  ans/=2;
  cout<<ans;
  return 0;
}

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

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

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

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

int ab, bc, ca;

int main(void) {

  cin >> ab >> bc >> ca;

  printf_s("%d", ab*bc/2);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   10 |   printf_s("%d", ab*bc/2);
      |   ^~~~~~~~
      |   printf