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

#include <stdio.h>

int main() {

    int ank1, ank2;
    

    scanf("%d %d", &ank1, &ank2);
    printf("%d\n, ank1*ank2/2);


    return 0;
}

Compiler output:
a.cc:9:12: warning: missing terminating " character
    9 |     printf("%d\n, ank1*ank2/2);
      |            ^
a.cc:9:12: error: missing terminating " character
    9 |     printf("%d\n, ank1*ank2/2);
      |            ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:5: error: expected primary-expression before 'return'
   12 |     return 0;
      |     ^~~~~~
Language: C++

int main(){
	
	int a, b, c, luas;
	
	scanf ("%d %d %d", &a, &b, &c);	
	luas= a*b/2;
	printf ("%d\n",luas);

	
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf ("%d %d %d", &a, &b, &c);
      |         ^~~~~
a.cc:7:9: error: 'printf' was not declared in this scope
    7 |         printf ("%d\n",luas);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:10:18: error: expected '}' at end of input
   10 |         return 0;
      |                  ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
Language: C++

#include<stdio.h>

int main() {
  
   int a, b, Area;

   printf("Enter the values of a and b : \n");
   scanf("%d %d %d", &a, &b, &c);
   Area = (a+b)/2;
   printf("Area of a triangle = %d \n", Area);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: 'c' was not declared in this scope
    8 |    scanf("%d %d %d", &a, &b, &c);
      |                               ^
Language: C++

#include<stdio.h>

int main() {

    int Area;
    int Height;
    int Base;

   scanf("%d %d %d",  &Base, &Height);
   Area= Base*Height/2;
   printf("%d", Area);

  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'return0' was not declared in this scope
   13 |   return0;
      |   ^~~~~~~
Language: C

#include<stdio.h>

int main() {
 	  int tinggi;
 	  int alas ;
 	  int samping;
 	  int bawah = 2 ;
  scanf("%d%d%d", &tinggi, &alas, &bawah);
  
  printf("%d", tinggi*alas/bawah) ;

	
	return 0 ;

Compiler output:
main.c: In function 'main':
main.c:13:9: error: expected declaration or statement at end of input
   13 |         return 0 ;
      |         ^~~~~~
Language: C++

#include <stdio.h>


int main() {
   int a = 5;
   int b = 10;
    printf("%d\n, (a * b) / 2);
    return 0;

}

Compiler output:
a.cc:7:12: warning: missing terminating " character
    7 |     printf("%d\n, (a * b) / 2);
      |            ^
a.cc:7:12: error: missing terminating " character
    7 |     printf("%d\n, (a * b) / 2);
      |            ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'return'
    8 |     return 0;
      |     ^~~~~~
Language: C++

#include <stdio.h>


int main() {
   int a =5;
   int b= 10;
    printf("%d\n, (a * b) / 2);
    return 0;

}

Compiler output:
a.cc:7:12: warning: missing terminating " character
    7 |     printf("%d\n, (a * b) / 2);
      |            ^
a.cc:7:12: error: missing terminating " character
    7 |     printf("%d\n, (a * b) / 2);
      |            ^~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: expected primary-expression before 'return'
    8 |     return 0;
      |     ^~~~~~
Language: C++

int main(){

    int Area;
    int Tinggi;
    int Alas;
    int pembagi= 2;


    scanf("%d", &Alas);
    scanf("%d", &Tinggi);
    scanf("%d", &pembagi);
    Area = Alas*Tinggi/pembagi;
    printf("%d", Area); 



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'scanf' was not declared in this scope
    9 |     scanf("%d", &Alas);
      |     ^~~~~
a.cc:13:5: error: 'printf' was not declared in this scope
   13 |     printf("%d", Area);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

int main(){
	int i, j , k, area;
	scanf("%d %d %d", &i, &j , &k);
	if(i > j && i >> k){
		area = j * k / 2;
	}else if (j > i && j > k){
		area = i * k / 2;
	}else{
		area = i * j /2;
	}
printf("%d", area);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'scanf' was not declared in this scope
    3 |         scanf("%d %d %d", &i, &j , &k);
      |         ^~~~~
a.cc:11:1: error: 'printf' was not declared in this scope
   11 | printf("%d", area);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
Language: C++

#include <stdio.h>

int main (){
	int ab;
	int bc;
	int ca;
	
scanf ("%d %d %d", &ab, &bc, &ca);
printf ("%d", abxbc/2)

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'abxbc' was not declared in this scope
    9 | printf ("%d", abxbc/2)
      |               ^~~~~
Language: C++

#include <stdio.h>

int main (){
	int ab;
	int bc;
	int ca;
	
scanf ("%d %d %d", &ab, &bc, &ca);
printf ("%d", axb/2)

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'axb' was not declared in this scope; did you mean 'ab'?
    9 | printf ("%d", axb/2)
      |               ^~~
      |               ab
Language: C++

#include <stdio.h>

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected ';' before 'return'
    9 | printf ("%d", &ab, &bc, &ca)
      |                             ^
      |                             ;
   10 | 
   11 | return 0;
      | ~~~~~~
Language: C++

#include <stdio.h>

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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: invalid operands of types 'int*' and 'int' to binary 'operator&'
    9 | printf ("%d", &ab &bc &ca)
      |               ~~~ ^~~
      |               |    |
      |               int* int
Language: C

#include<stdio.h>
int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	luas=a*b*0.5;
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'luas' undeclared (first use in this function)
    6 |         luas=a*b*0.5;
      |         ^~~~
main.c:6:9: 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");
	luas=a*b*0.5;
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'luas' undeclared (first use in this function)
    6 |         luas=a*b*0.5;
      |         ^~~~
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'cout'
    8 |         c=0.5*a*b
      |                  ^
      |                  ;
    9 |         cout<<c<<endl;
      |         ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected unqualified-id before ';' token
    5 |   int AB, BC,;
      |              ^
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();
		int ca = sc.nextInt();
		sc.close();
		if(ab >= bc && ab >= ca) {
			System.out.println(bc*ca/2);
		}else if(bc >= ab && bc >= ca) {
			System.out.println(ab*ca/2);
		}else {
			System.out.println(ab*bc/2);
		}
	}



Compiler output:
Main.java:18: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long ;
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:7:23: error: expected ';' before 'cout'
    7 |     cin >> a >> b >> c
      |                       ^
      |                       ;
    8 |     cout << a*b/2 << endl;
      |     ~~~~
Language: C++

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

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


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

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

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

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

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

int main(void) {
  
  int a;
  int b;
  int c;
  
  cin >> a;
  cin >> b;
  cin >> c;
  
  cout << sqrt [ { (a + b + c ) / 2 } * { ( a + b + c ) / 2 - a } * { ( a + b + c ) / 2 - b } * { ( a + b + c ) / 2 - c } ]
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:38: error: expected ']' before '*' token
   15 |   cout << sqrt [ { (a + b + c ) / 2 } * { ( a + b + c ) / 2 - a } * { ( a + b + c ) / 2 - b } * { ( a + b + c ) / 2 - c } ]
      |                                      ^~
      |                                      ]
a.cc:15:16: error: invalid types '<unresolved overloaded function type>[<brace-enclosed initializer list>]' for array subscript
   15 |   cout << sqrt [ { (a + b + c ) / 2 } * { ( a + b + c ) / 2 - a } * { ( a + b + c ) / 2 - b } * { ( a + b + c ) / 2 - c } ]
      |                ^
a.cc:15:41: error: expected primary-expression before '{' token
   15 |   cout << sqrt [ { (a + b + c ) / 2 } * { ( a + b + c ) / 2 - a } * { ( a + b + c ) / 2 - b } * { ( a + b + c ) / 2 - c } ]
      |                                         ^
a.cc:15:69: error: expected primary-expression before '{' token
   15 |   cout << sqrt [ { (a + b + c ) / 2 } * { ( a + b + c ) / 2 - a } * { ( a + b + c ) / 2 - b } * { ( a + b + c ) / 2 - c } ]
      |                                                                     ^
a.cc:15:97: error: expected primary-expression before '{' token
   15 |   cout << sqrt [ { (a + b + c ) / 2 } * { ( a + b + c ) / 2 - a } * { ( a + b + c ) / 2 - b } * { ( a + b + c ) / 2 - c } ]
      |                                                                                                 ^
a.cc:15:123: error: expected primary-expression before ']' token
   15 |   cout << sqrt [ { (a + b + c ) / 2 } * { ( a + b + c ) / 2 - a } * { ( a + b + c ) / 2 - b } * { ( a + b + c ) / 2 - c } ]
      |                                                                                                                           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int f(int n){
	if(n&1)return 3*n+1;
	return n/2;
}

const int N=1e6+6;

int a[N];

int main(){
	int n;
	cin >> n;
	ans=0;
	map<int,int>m;
	a[1]=n;
	m[a[1]]++;
	for(int i=2;i<=N;i++){
		a[i]=f(a[i-1]);
		if(m[a[i]]){
			cout<<i;
			return 0;
		}
		m[a[i]]++;
	}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before '/' token
    6 | cout<<A*B*/2<<endl;
      |           ^
Language: C++

/**
*    created: 23.05.2020 12:58:10
**/
#include <bits/stdc++.h>
#define int long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
using namespace std;

signed main() {

    cin.tie(0);
    ios_base::sync_with_stdio(false);

    vector<int> l(3);
    cin >> l[0] >> l[1] >> l[2];
    sort(l.begin(), l.end());
    cout << l[0] * l[2] * / 2 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: expected primary-expression before '/' token
   18 |     cout << l[0] * l[2] * / 2 << endl;
      |                           ^
Language: C++

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

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


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

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

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

Compiler output:
a.cc:1:10: fatal error: bits/stdc++/h: No such file or directory
    1 | #include <bits/stdc++/h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
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();
		System.out.println(A*B/2);
	}


Compiler output:
Main.java:11: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

use std::io::*;//Not mine.
use std::str::FromStr;
fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("failed to read char") as char) 
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}
fn main(){
    let a:i32 = read();
    let b:i32 = read();
    let c:i32 = read();
    println!("{}",a * b * c / std::cmp::max(a,std::cmp::max(b,c)) / 2);
}

Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;//Not mine.
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:3:1: error: 'fn' does not name a type
    3 | fn read<T: FromStr>() -> T {
      | ^~
a.cc:14:1: error: 'fn' does not name a type
   14 | fn main(){
      | ^~
Language: C++

#include <bits/stdc++.h>
using ll = long long;
using namespace std;
#define rep(i,n) for(int i=0, i##_len=(int)(n); i<i##_len; i++)
#define reps(i,n) for(int i=1 , i##_len=(int)(n);i<=i##_len;i++)
#define rrep(i,n) for(int i=((int)(n)-1);i>=0;i--)
#define rreps(i,n) for(int i=((int)(n));i>0;i--)
#define repi(i,x) for(auto i=(x).begin(),i##_fin=(x).end();i!=i##_fin;i++)
#define all(x) (x).begin(), (x).end()
#define F first
#define S second
#define mp make_pair
#define pb push_back
#define solve(a) ((a)?"Yes":"No")
typedef vector<int> Vi;
typedef vector<Vi> VVi;
typedef pair<int , int> Pi;
typedef vector<Pi> VPi;
typedef vector<long long> V;
typedef vector<V> VV;
typedef pair<long long , long long> P;
typedef vector<P> VP;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1;} return 0;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1;} return 0;}
const long long INFLL = 1LL<<60;
const int INF = 1<<30;
const double PI=acos(-1);
int main(){
	Vi a(3);
	int ans=0;
	cin >>a[0]>>a[1]>>a[2];
	sort(all(a))
	cout<<(a[0]*a[1]/2)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:21: error: expected ';' before 'cout'
   32 |         sort(all(a))
      |                     ^
      |                     ;
   33 |         cout<<(a[0]*a[1]/2)<<endl;
      |         ~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int d = min(a, min(b, c));
  int e = max(a, max(b, c));
  int f = e ** 2 - d ** 2;
  cout << d * f / 2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: invalid type argument of unary '*' (have 'int')
   10 |   int f = e ** 2 - d ** 2;
      |              ^~~
a.cc:10:23: error: invalid type argument of unary '*' (have 'int')
   10 |   int f = e ** 2 - d ** 2;
      |                       ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;
using ll=long long;
#define rep(i, n) for(int i = 0; i < n; i++)
#define rep2(i, a, n) for(int i = (a); i < (n); i++)
#define all(a) (a).begin(), (a).end()

int main(){
  cin.tie(nullptr);ios_base::sync_with_stdio(false);
  int a,b,c;cin>>a>>b>>C;
  cout<<a*b/2<<endl;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before 'cout'
    9 |     else (C > A && C > B)cout << A*B/2 << endl;
      |                          ^~~~
      |                          ;
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int x, y, z;
  	cin >> x >> y >> z;
  	total = x * y / 2;
    cout << total << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'total' was not declared in this scope
    7 |         total = x * y / 2;
      |         ^~~~~
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
    6 |   cin>>|AB|>>|BC|>>|CA|;
      |         ^~
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;

#define _overload3(_1, _2, _3, name, ...) name
#define rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for(int i = int(a); i < int(b); i++)
#define REP(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__)

typedef long long int ll;
typedef unsigned long long int ull;

const int MOD=(int)1e9+7;
const string alp = "abcdefghijklmnopqrstuvwxyz";
const string ALP = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
//int dx[4] = {0,1,0,-1}, dy[4] = {-1,0,1,0};

ll gcd(ll a,ll b){if(b==0)return a;return gcd(b,a%b);}
ll lcm(ll a,ll b){ll g=gcd(a,b);return a/g*b;}
ll digitsum(ll a){ll x=0;while(a>0){x+=a%10;a/=10;}return x;}

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int a,b,c;
    cin>>a>>b>>c;
    s=(a+b+c)/2
    cout<<sqrt(s*(s-a)*(s-b)*(s-c))<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: 's' was not declared in this scope
   26 |     s=(a+b+c)/2
      |     ^
Language: C

#include<stdio.h>

int main(){
  int s;
  scanf("%d", &s);
  int a[1000000];
  int ans;
  int flag = 0; 
  
  int n = 1;
  a[0] = s;
  while(){
    if(n / 2 == 0){
      a[n] = a[n - 1] / 2;
    } else {
      a[n] = 3 * a[n - 1] + 1;
    }
    
    int i;
    for(i = 0; i <= n; i++){
      if(a[n] == a[i]){
        ans = n;
        flag = 1;
      }
    }
    if(flag == 1){
      break();
    }
  printf("%d", ans);
}


Compiler output:
main.c: In function 'main':
main.c:12:9: error: expected expression before ')' token
   12 |   while(){
      |         ^
main.c:27:12: error: expected ';' before '(' token
   27 |       break();
      |            ^
      |            ;
main.c:30:1: error: expected declaration or statement at end of input
   30 | }
      | ^
Language: C

#include<stdio.h>

int main() {
  int ab, bc, ca;
  scanf("%d %d %d", $ab, bc, ca);
  int are = ab * bc / 2;
  printf("%d", are);
}

Compiler output:
main.c: In function 'main':
main.c:5:21: error: '$ab' undeclared (first use in this function); did you mean 'ab'?
    5 |   scanf("%d %d %d", $ab, bc, ca);
      |                     ^~~
      |                     ab
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
 
int main(void){
  double ab;
  double bc;
  double ca;
  scanf("%lf %lf %lf", &ab, &bc, &ca);
  double ans = ab * bc / 2;
  
  printf(ans);

Compiler output:
main.c: In function 'main':
main.c:10:10: error: incompatible type for argument 1 of 'printf'
   10 |   printf(ans);
      |          ^~~
      |          |
      |          double
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'double'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:10:3: error: expected declaration or statement at end of input
   10 |   printf(ans);
      |   ^~~~~~
Language: C++

#include <stdio.h>
 
int main(void){
  double ab;
  double bc;
  double ca;
  scanf("%lf %lf %lf", &ab, &bc, &ca);
  double ans = ab * bc / 2;
  
  printf(ans);

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: cannot convert 'double' to 'const char*'
   10 |   printf(ans);
      |          ^~~
      |          |
      |          double
In file included 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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:10:15: error: expected '}' at end of input
   10 |   printf(ans);
      |               ^
a.cc:3:15: note: to match this '{'
    3 | int main(void){
      |               ^
Language: C

#include <stdio.h>

int main(void){
  double ab;
  double bc;
  double ca;
  scanf("%lf %lf %lf", &ab, &bc, &ca);
  double ans = ab * bc / 2;
  
  printf(ans);

Compiler output:
main.c: In function 'main':
main.c:10:10: error: incompatible type for argument 1 of 'printf'
   10 |   printf(ans);
      |          ^~~
      |          |
      |          double
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'double'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:10:3: error: expected declaration or statement at end of input
   10 |   printf(ans);
      |   ^~~~~~
Language: C

#include

int main() {
  int ab, bc, ca;
  scanf("%d %d %d", $ab, bc, ca);
  int are = ab * bc / 2;
  printf("%d", are);
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d %d %d", $ab, bc, ca);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d %d %d", $ab, bc, ca);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:21: error: '$ab' undeclared (first use in this function); did you mean 'ab'?
    5 |   scanf("%d %d %d", $ab, bc, ca);
      |                     ^~~
      |                     ab
main.c:5:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("%d", are);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include

int main() {
  int ab, bc, ca;
  int area = ab * bc / 2;
  printf("%d", area);
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'printf' was not declared in this scope
    6 |   printf("%d", area);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include
Language: C++

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

int main(){
    int X,Y,Z;
    cin >> X >> Y >> Z;
  Z = X*Y/2;
    cout << Z << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:23: error: expected '}' at end of input
   16 |     cout << Z << endl;
      |                       ^
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C

#include<stdio.h>
int main(void){
  int AB,BC,CA,area;
  scanf("%d%d%d",&AB,&BC,&CD);
  area = AB*BC;
  printf("area");
}

Compiler output:
main.c: In function 'main':
main.c:4:27: error: 'CD' undeclared (first use in this function); did you mean 'CA'?
    4 |   scanf("%d%d%d",&AB,&BC,&CD);
      |                           ^~
      |                           CA
main.c:4:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
    int X,Y,Z;
    cin >> X >> Y >> Z;
  Z = X*Y/2
    cout << Z << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: expected ';' before 'cout'
   15 |   Z = X*Y/2
      |            ^
      |            ;
   16 |     cout << Z << endl;
      |     ~~~~    
a.cc:16:23: error: expected '}' at end of input
   16 |     cout << Z << endl;
      |                       ^
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C++

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

int main(){
    int X,Y,Z;
    cin >> X >> Y >> Z;
    cout << (X*Y)/2 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: expected '}' at end of input
   15 |     cout << (X*Y)/2 << endl;
      |                             ^
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C++

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

int main(){
    char X,Y,Z;
    cin >> X >> Y >> Z;
    cout << X*Y/2 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:27: error: expected '}' at end of input
   15 |     cout << X*Y/2 << endl;
      |                           ^
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C++

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

int main(){
    char X,Y,Z;
    cin >> X >> Y >> Z;
    return X*Y/2
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected ';' before '}' token
   15 |     return X*Y/2
      |                 ^
      |                 ;
   16 | }
      | ~
Language: Java

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

public class Main {
	
	public static void main(String[] args) throws IOException {
		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:12: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for (int i = 0; i< (n); ++i)
const int INF = 1001001001;

/* シンプルに基本操作：ソートによる簡易化手法 */
int main() {
    int A, B, C;
    cin >> A >> B >> C;

    int ans = A * B /2
    cout << ans << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (ll i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,-1,sizeof(x))
const int INF = 1000000001;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'n' was not declared in this scope
   11 |   rep(i, n) cin >> a[i];
      |          ^
a.cc:4:44: note: in definition of macro 'rep'
    4 | #define rep(i, n) for (ll i = 0; i < (int)(n); i++)
      |                                            ^
Language: C++

#include <iostream>

using namespace std;

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

    

    return 0;


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

#include <iostream>

using namespace std;

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

    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'n' was not declared in this scope
   12 |     area = a*n/2;
      |              ^
Language: C

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:27: error: 'ba' undeclared (first use in this function); did you mean 'ca'?
    4 |     scanf("%d %d %d",&ab,&ba,&ca);
      |                           ^~
      |                           ca
main.c:4:27: note: each undeclared identifier is reported only once for each function it appears in
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:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> using namespace std;
      |                     ^~~~~
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout << area << 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:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | cout << area << 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>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;
#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)
using ll = long long;
using P = pair<int,int>;

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

  cout << (a*b)/2 << endl;
  }
  return 0;
}

Compiler output:
a.cc:31:3: error: expected unqualified-id before 'return'
   31 |   return 0;
      |   ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;
#define REP(i,n) for((i)=0;(i)<(int)(n);(i)++)
using ll = long long;
using P = pair<int,int>;

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

  cout << a*b/2 << endl;
  }
  return 0;
}


Compiler output:
a.cc:31:3: error: expected unqualified-id before 'return'
   31 |   return 0;
      |   ^~~~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int O, s, U, P;
	O = a+b+c;
	s = O/2;
	U = s*(s-a)*(s-b)*(s-c), P;
	P = sqrt(U);
	cout << P;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'sqrt' was not declared in this scope
   12 |         P = sqrt(U);
      |             ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int O, s, U, P;
	O = a+b+c;
	s = O/2;
	U = s*(s-a)*(s-b)*(s-c);
	P = double sqrt (double U);
	cout << P;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before 'double'
   12 |         P = double sqrt (double U);
      |             ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int O, s, U, P;
	O = a+b+c;
	s = O/2;
	U = s*(s-a)*(s-b)*(s-c);
	P = double sqrt (double P);
	cout << P;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before 'double'
   12 |         P = double sqrt (double P);
      |             ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int O, s, U, P;
	O = a+b+c;
	s = O/2
	U = s*(s-a)*(s-b)*(s-c);
	P = double sqrt (double P)
	cout << P;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'U'
   10 |         s = O/2
      |                ^
      |                ;
   11 |         U = s*(s-a)*(s-b)*(s-c);
      |         ~       
a.cc:12:13: error: expected primary-expression before 'double'
   12 |         P = double sqrt (double P)
      |             ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int O, s, U, P;
	O = a+b+c;
	s = O/2
	U = s*(s-a)*(s-b)*(s-c);
	P = sqrt(P);
	cout << P;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before 'U'
   10 |         s = O/2
      |                ^
      |                ;
   11 |         U = s*(s-a)*(s-b)*(s-c);
      |         ~       
a.cc:12:13: error: 'sqrt' was not declared in this scope
   12 |         P = sqrt(P);
      |             ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	cin >> a >> b >> c;
	int O;
	O = a + b + c;
	int s;
	s = O/2;
	U = s*(s-a)*(s-b)*(s-c);
	P = sqrt(U);
	cout << P;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'U' was not declared in this scope
   12 |         U = s*(s-a)*(s-b)*(s-c);
      |         ^
a.cc:13:9: error: 'P' was not declared in this scope
   13 |         P = sqrt(U);
      |         ^
a.cc:13:13: error: 'sqrt' was not declared in this scope
   13 |         P = sqrt(U);
      |             ^~~~
Language: C++

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

int main()
{
	float a,b,c,p,s;
	cin >> c >> a >> b;
	cout a*b/2;
}


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

//allマクロ定義
#define all(v) v.begin(),v.end()
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:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> ab >> bc >> ca;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | //allマクロ定義
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << (ab*bc)/2 << endl;
      |   ^~~~
a.cc:8:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |   cout << (ab*bc)/2 << endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | //allマクロ定義
Language: C++

u#include<bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | u#include<bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'u' does not name a type
    1 | u#include<bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b >> c;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << a*b/2;
      |   ^~~~
Language: C++

#include<bits/stdc++>

using namespace std;

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


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

#include<bits/stdc++>

using namespace std;

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected unqualified-id before ',' token
    5 |   int a, ,b, c;
      |          ^
Language: Java

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

Compiler output:
Main.java:5: error: cannot find symbol
    int a = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
Main.java:6: error: cannot find symbol
    int b = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
2 errors
Language: C++

include<bits/stdc++.h>
using namespace std;
int a,b,c,s,min1,max1;
int main()
{
  cin>>a>>b>>c;
  min1=min(min(a,b),c);
  max1=max(max(a,b),c);
  if(min1==a,max1=c)
    ans=min1*b/2;
  if(min1==a,max1=b)
    ans=min1*c/2;
  if(min1==b,max1=a)
    ans=min1*c/2;
  if(min1==b,max1=c)
    ans=min1*a/2;
  if(min1==c,max1=a)
    ans=min1*b/2;
  if(min1==c,max1=b)
    ans=min1*a/2;
  cout<<ans;
  return 0;

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:7:12: error: 'min' was not declared in this scope; did you mean 'min1'?
    7 |   min1=min(min(a,b),c);
      |            ^~~
      |            min1
a.cc:7:8: error: 'min' was not declared in this scope; did you mean 'min1'?
    7 |   min1=min(min(a,b),c);
      |        ^~~
      |        min1
a.cc:8:12: error: 'max' was not declared in this scope; did you mean 'max1'?
    8 |   max1=max(max(a,b),c);
      |            ^~~
      |            max1
a.cc:8:8: error: 'max' was not declared in this scope; did you mean 'max1'?
    8 |   max1=max(max(a,b),c);
      |        ^~~
      |        max1
a.cc:10:5: error: 'ans' was not declared in this scope
   10 |     ans=min1*b/2;
      |     ^~~
a.cc:12:5: error: 'ans' was not declared in this scope
   12 |     ans=min1*c/2;
      |     ^~~
a.cc:14:5: error: 'ans' was not declared in this scope
   14 |     ans=min1*c/2;
      |     ^~~
a.cc:16:5: error: 'ans' was not declared in this scope
   16 |     ans=min1*a/2;
      |     ^~~
a.cc:18:5: error: 'ans' was not declared in this scope
   18 |     ans=min1*b/2;
      |     ^~~
a.cc:20:5: error: 'ans' was not declared in this scope
   20 |     ans=min1*a/2;
      |     ^~~
a.cc:21:3: error: 'cout' was not declared in this scope
   21 |   cout<<ans;
      |   ^~~~
a.cc:21:9: error: 'ans' was not declared in this scope
   21 |   cout<<ans;
      |         ^~~
a.cc:22:12: error: expected '}' at end of input
   22 |   return 0;
      |            ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: Java

#include <bits/stdc++.h>
 
using namespace std;
#define ll long long
#define ld long double
 
int main()
{
    ios_base::sync_with_stdio(0),cin.tie(NULL),cout.tie(NULL);
    int a, b, c;
    cin >> a >> b >> c;
    cout << (int)(a * b / 2.0) << endl;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:4: error: illegal character: '#'
#define ll long long
^
Main.java:4: error: class, interface, enum, or record expected
#define ll long long
        ^
Main.java:5: error: illegal character: '#'
#define ld long double
^
Main.java:10: error: class, interface, enum, or record expected
    int a, b, c;
    ^
Main.java:11: error: class, interface, enum, or record expected
    cin >> a >> b >> c;
    ^
Main.java:12: error: class, interface, enum, or record expected
    cout << (int)(a * b / 2.0) << endl;
    ^
Main.java:13: error: class, interface, enum, or record expected
}
^
9 errors
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 <bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ';' before '}' token
    9 |   cout << s.at(0)*s.at(1)/2
      |                            ^
      |                            ;
   10 | }
      | ~
Language: C++

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

Compiler output:
a.cc:4:1: error: 'igned' does not name a type; did you mean 'signed'?
    4 | igned main()
      | ^~~~~
      | signed
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:7:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout<a*b/2<<endl;
      |        ~~~~~^~~~~~
Language: Java


import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class B {

	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int s = sc.nextInt();
        Set<Integer> set = new HashSet<>();
        set.add(s);
        s = s % 2 == 0 ? s / 2: s * 3 + 1;
        while (!set.contains(s)) {
            set.add(s);
            s = s % 2 == 0 ? s / 2: s * 3 + 1;
        }
        System.out.println(set.size()+1);
	}

}


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

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

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

#include <iostream>
#include <string>
using namespace std;
int main(){
    int t,x;
    cin >> t >> x;
    cout << (a * b) / 2 << endl;
}


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

#include <iostream>
#include <string>
using namespace std;
int main(){
    int t,x;
    cin >> t >> x;
    cout << a * b / 2 << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
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:3:9: error: expected initializer before ']' token
    3 | int a[3]];
      |         ^
a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
    5 |     cin>>a[0]>>a[1]>>a[2];
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
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:3:9: error: expected initializer before ']' token
    3 | int a[3]];
      |         ^
a.cc:5:5: error: expected initializer before 'cin'
    5 |     cin>>a[0]>>a[1]>>a[2];
      |     ^~~
a.cc:6:9: error: expected constructor, destructor, or type conversion before '(' token
    6 |     sort(a,a+3);
      |         ^
a.cc:7:5: error: 'cout' does not name a type
    7 |     cout<<a[0]*a[1]<<endl;
      |     ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^