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

/*

                   _ooOoo_
                  o8888888o
                  88" . "88
                  (| -_- |)
                  O\  =  /O
               ____/`---'\____
             .'  \\|     |//  `.
            /  \\|||  :  |||//  \
           /  _||||| -:- |||||-  \
           |   | \\\  -  /// |   |
           | \_|  ''\---/''  |   |
           \  .-\__  `-`  ___/-. /
         ___`. .'  /--.--\  `. . __
      ."" '<  `.___\_<|>_/___.'  >'"".
     | | :  `- \`.;`\ _ /`;.`/ - ` : | |
     \  \ `-.   \_ __\ /__ _/   .-` /  /
======`-.____`-.___\_____/___.-`____.-'======
                   `=---='
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                    prayer
*/

// g++ -std=c++11 a.cpp
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<unordered_map>
#include<utility>
#include<cmath>
#include<random>
#include<cstring>
#include<queue>
#include<stack>
#include<bitset>
#include<cstdio>
#include<sstream>
#include<iomanip>
#include<assert.h>
#include<typeinfo>
#define loop(i,a,b) for(long long i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
#define FOR(i,a) for(auto i:a)
#define pb push_back
#define all(in) in.begin(),in.end()
#define shosu(x) fixed<<setprecision(x)
#define show1d(v) {rep(_,v.size())cout<<" "<<v[_];cout<<endl;}
#define show2d(v) {rep(__,v.size())show1d(v[__]);}
using namespace std;
//kaewasuretyuui
typedef long long ll;
#define int ll
typedef int Def;
typedef pair<Def,Def> pii;
typedef vector<Def> vi;
typedef vector<vi> vvi;
typedef vector<pii> vp;
typedef vector<vp> vvp;
typedef vector<string> vs;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef pair<Def,pii> pip;
typedef vector<pip>vip;
#define mt make_tuple
typedef tuple<int,int,int,int> tp;
typedef vector<tp> vt;
template<typename A,typename B>bool cmin(A &a,const B &b){return a>b?(a=b,true):false;}
template<typename A,typename B>bool cmax(A &a,const B &b){return a<b?(a=b,true):false;}
const double PI=acos(-1);
const double EPS=1e-9;
Def inf = sizeof(Def) == sizeof(long long) ? 2e18 : 1e9+10;
#define yes cout<<"Yes"<<"\n"
#define no cout<<"No"<<"\n"

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

	int a,b,c;
	cin>>a>>b>>c;
	vi t={a,b,c};
	sort(all(in));
	cout<<in[0]*in[1]/2<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:86:18: error: 'in' was not declared in this scope; did you mean 'yn'?
   86 |         sort(all(in));
      |                  ^~
a.cc:49:17: note: in definition of macro 'all'
   49 | #define all(in) in.begin(),in.end()
      |                 ^~
Language: C++

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


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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <cctype>
#define len length()
#define sz size()
#define rng(i, a, b) for(int i = a; i < b; i++)
#define rep(i, n) rng(i, 0, n)
#define srt(v) sort(v.begin(), v.end())
#define rev(s) reverse(s.begin(), s.end())
#define vi(a, n) vector<int> a(n)
#define vs(a, n) vector<string> a(n)
#define vc(a, n) vector<char> a(n)
#define psb(a) push_back(a)
#define ppb pop_back()
#define erc(S, i) S.erase(S.begin() + i)
#define ers(S, i, j) S.erase(S.begin() + i, S.begin() + j)
#define sp(n) cout << setprecision(n) << fixed
#define fst(s) s.at(0)
#define lst(s) s.at(s.len - 1)
using namespace std;

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

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


public class Main {


    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int[] a = new int[3];
        for (int i = 0; i < 3; i++) {
            a[i] = cin.nextInt();
        }
        Arrays.sort(a);
        System.out.println(a[0] * a[1] / 2);
    }
    

}


Compiler output:
Main.java:6: error: cannot find symbol
        Scanner cin = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
        Scanner cin = new Scanner(System.in);
                          ^
  symbol:   class Scanner
  location: class Main
Main.java:11: error: cannot find symbol
        Arrays.sort(a);
        ^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a*a+b*b==c*c) cout<<a*b/2;
    else if(a*a+c*c=b*b) cout<<a*c/2;
    else cout<<b*c/2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: lvalue required as left operand of assignment
    8 |     else if(a*a+c*c=b*b) cout<<a*c/2;
      |             ~~~^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   13 |   return;
      |   ^~~~~~
Language: C

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

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

#include<iostream>
#include<string>
#include<algorithm>
#include <stdio.h>
using namespace std;
int main {
  int a,b,c;
  cin >>a >> b>> c;
  cout << a*b/2 <<endl;
}

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

include <stdio.h>
using namespace std;


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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <stdio.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<<endl;
      |   ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |   cout << a*b/2<<endl;
      |                  ^~~~
Language: C++

using namespace std;
int main()
{
  int a, b, c;
  cin >> a >> b >> c;
  if (a*a+b*b == c*c)
  {
    cout << a*b/2 << endl;
  }
  else if (a*a+c*c==b*b)
  {
    cout << a*c/2 << endl;
  }
  else
  {
    cout << b*c/2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> a >> b >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << a*b/2 << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << a*b/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 | using namespace std;
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << a*c/2 << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:22: error: 'endl' was not declared in this scope
   12 |     cout << a*c/2 << endl;
      |                      ^~~~
a.cc:12:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << b*c/2 << endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:22: error: 'endl' was not declared in this scope
   16 |     cout << b*c/2 << endl;
      |                      ^~~~
a.cc:16:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>

int main()
{
	int a,b,c;
  	cin >> a >> b >> c;
  
  	printf("%d",a*b/2);
  
  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> a >> b >> c;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include<iostream>
using namespace std;

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


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

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv) {
  if (argc != 3) {
    fprintf(stderr, "[USAGE] %s |AB| |BC| |CA|\n", argv[0]);
  }
  int ab = atoi(argv[1]);
  int bc = atoi(argv[2]);
  // int ca = atoi(argv[3]);
  
  fprintf(stdin, "%d\n", ab * bc / 2);
  
  reutrn 0;
}

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

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

using namespace std;

int main()
{
	int AB, BC, CA, ANS;
    cout << "整数を入力して下さい\n";
	cin >> AB >> BC;
	ANS = AB * BC / 2;
	cout << ANS;
}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;


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

    public void solve(String[] args) {
        MyScanner scanner = new MyScanner();
        int s1 = scanner.nextInt();
      　int s2 = scanner.nextInt();
      　int s3 = scanner.nextInt();
        double d = (s1 + s2 + s3)/2;
      　cout << sqrt((d-s1)*(d-s2)*(d-s2));
    }

    private class MyScanner {
        String[] s;
        int i;
        BufferedReader br;
        String reg = " ";
        MyScanner () {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        public String next() {
            try {
                if (i < s.length) return s[i++];
                String line = br.readLine();
                while (line.equals("")) {line = br.readLine();}
                s = line.split(reg, 0);
                i = 0;return s[i++];
            } catch (Exception e) {e.printStackTrace();}
            return null;
        }
        public int nextInt() {
            try {return Integer.parseInt(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
        public double nextDouble() {
            try {return Double.parseDouble(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
        public long nextLong()  {
            try {return Long.parseLong(next());} catch (Exception e) {e.printStackTrace();}
            return -1;
        }
    }
}

Compiler output:
a.cc:14:7: error: extended character 　 is not valid in an identifier
   14 |       　int s2 = scanner.nextInt();
      |       ^
a.cc:15:7: error: extended character 　 is not valid in an identifier
   15 |       　int s3 = scanner.nextInt();
      |       ^
a.cc:17:7: error: extended character 　 is not valid in an identifier
   17 |       　cout << sqrt((d-s1)*(d-s2)*(d-s2));
      |       ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		 Scanner sc = new Scanner(System.in);
	        int ab = sc.nextInt();
	        int bc = sc.nextInt();
	        int ca = sc.nextInt();
	        int ans = 0;
	        
	        ans = (ab * bc)/2;
	        System.out.println(ans);

	}

}

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: C++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		 Scanner sc = new Scanner(System.in);
	        int ab = sc.nextInt();
	        int bc = sc.nextInt();
	        int ca = sc.nextInt();
	        int ans = 0;
	        
	        ans = (ab * bc)/2;
	        System.out.println(ans);

	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |     cout<(a*b)/2<<endl;
      |          ~~~~~~~^~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
      	//データ取り込み
		Scanner sc = new Scanner(System.in);
		int hen[] = new int[3];
		int hen[0] = sc.nextInt();
		int hen[1] = sc.nextInt();
		int hen[2] = sc.nextInt():
		
		int temp;
        for(int k = 0; k < N; k++){
            for(int l = 0; l< N-k-1; l++){
               if(hen[l] > hen[l + 1]){
                    	temp = hen[l];
                    	hen[l] = hen[l + 1];
                    	hen[l + 1] = temp;
               	}
            }
        }
		System.out.println(hen[0]*hen[1]/2);
		
    }
}

Compiler output:
Main.java:7: error: ']' expected
		int hen[0] = sc.nextInt();
		        ^
Main.java:8: error: ']' expected
		int hen[1] = sc.nextInt();
		        ^
Main.java:9: error: ']' expected
		int hen[2] = sc.nextInt():
		        ^
Main.java:9: error: ';' expected
		int hen[2] = sc.nextInt():
		                         ^
4 errors
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF (2e9)
#define EPS (1e-7)
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
 
int main() {
    int i, l, ans;
    vector<int>arr;
    REP(i, 3) {
        cin >> l;
        arr.push_back(l)
    }
    sort(ALL(arr));
    ans = arr[0] * arr[1] / 2;
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:25: error: expected ';' before '}' token
   16 |         arr.push_back(l)
      |                         ^
      |                         ;
   17 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF (2e9)
#define EPS (1e-7)
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
 
int main() {
    int i, l, ans;
    vector<int>arr;
    REP(i, 3) {
        cin >> l;
        arr.append(l)
    }
    sort(ALL(arr));
    ans = arr[0] * arr[1] / 2;
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'class std::vector<int>' has no member named 'append'
   16 |         arr.append(l)
      |             ^~~~~~
Language: Java

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

Compiler output:
Main.java:9: error: cannot find symbol
      System.out.plintln(c);
                ^
  symbol:   method plintln(int)
  location: variable out of type PrintStream
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    printf("%d\n",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:7:77: error: expected ';' before ')' token
    7 |     printf("%d\n",sqrt((a+b+c)/2*((a+b+c)/2-a)*((a+b+c)/2-b)*((a+b+c)/2-c))));
      |                                                                             ^
      |                                                                             ;
Language: C++

#include<iostream>
#using namespace std;

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #using
    2 | #using namespace std;
      |  ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a,b,c;
      |   ^~~
      |   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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout<<ans<<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:9:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout<<ans<<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 <algorithm>
#include <limits.h>
#include <conio.h>
using namespace std;

#define Rep(i,n) for(int i = 0; i < n; ++i )
#define For(i,s,e) for(int i = s; i < e; ++i )
#define ll long long

long a,b,c;

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

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

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

#include <bits/stdc++.h>
#define N 1000005
#define ll long long int 
#define mp make_pair
#define pb push_back
#define ppb pop_back
#define sp " "
#define endl "\n"
#define fi first
#define se second
#define ii pair<int,int>
#define lli pair<ll,ll>
#define fast cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false)
#define fast2 freopen ("myfile.gir","r",stdin);freopen ("myfile.cik","w",stdout);
#define mod 1000000007
using namespace std;

ll n,ar[N],W,dp[105][1005],w[N];

int main()
{
    fast;
    for(int i=1;i<=3;i++)
        cin>>ar[i];
    sort(ar+1,ar+4);
    sum=ar[1]*ar[2];
    sum/=2;
    cout<<sum;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: 'sum' was not declared in this scope
   26 |     sum=ar[1]*ar[2];
      |     ^~~
Language: Java

package atCoderBC116;

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

public class RightTriangle {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int tri[] = new int[3];
		String str = br.readLine();
		String[] str2 = str.split(" ");
		for (int i=0; i < str2.length;i++){
			tri[i] = Integer.parseInt(str2[i]);
		}
		Arrays.sort(tri);
		int S = tri[0]*tri[1]/2;
		System.out.println(S);
		
	}
}


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

#include <limits.h>
#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>

#define int long long
#define REP(i, n) for (int i = 0, i##_len = (n); i < i##_len; ++i)
#define REPS(i, n) for (int i = 1, i##_len = (n); i <= i##_len; ++i)
#define FOR(i, a, b) for (int i = (a), i##_len = (b); i <= i##_len; ++i)
#define REV(i, a, b) for (int i = (a); i >= (b); --i)
#define CLR(a, b) memset((a), (b), sizeof(a))
#define DUMP(x) cout << #x << " = " << (x) << endl;
#define INF (LLONG_MAX - 1e5)
#define fcout cout << fixed << setprecision(10)

using namespace std;

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr)um

    vector<int> v(3);
    REP(i, 3) cin >> v[i];
    sort(v.begin(), v.end());

    cout << v[0] * v[1] / 2 << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:22: error: expected ';' before 'um'
   39 |     cout.tie(nullptr)um
      |                      ^~
      |                      ;
a.cc:42:22: error: 'v' was not declared in this scope
   42 |     REP(i, 3) cin >> v[i];
      |                      ^
a.cc:43:10: error: 'v' was not declared in this scope
   43 |     sort(v.begin(), v.end());
      |          ^
Language: Java

public class ARightTriangle {

	public static void main(String[] args) {
		int AB = Integer.valueOf(args[0]);
		int BC = Integer.valueOf(args[1]);
		int CA = Integer.valueOf(args[2]);
		int result = (AB * BC) / 2;
		System.out.println(result);
	}

}

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

include<bits/stdc++.h>
#define rep(i,N) for(int i=0;i<(N);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
typedef long long ll;
typedef pair<ll,int> P;
int main(){
    int a,b,c;
    cin>>a>>b>>c;
    cout<<a*b/2<<endl;
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc:9:9: error: 'pair' does not name a type
    9 | typedef pair<ll,int> P;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:12:5: error: 'cin' was not declared in this scope
   12 |     cin>>a>>b>>c;
      |     ^~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<a*b/2<<endl;
      |     ^~~~
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |     cout<<a*b/2<<endl;
      |                  ^~~~
Language: C

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

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

  (a*b)/2 = ans;

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

Compiler output:
main.c: In function 'main':
main.c:10:11: error: lvalue required as left operand of assignment
   10 |   (a*b)/2 = ans;
      |           ^
Language: C

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

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

  (a*b)/2 = ans;

  printf("%d", ans);
}

Compiler output:
main.c: In function 'main':
main.c:10:11: error: lvalue required as left operand of assignment
   10 |   (a*b)/2 = ans;
      |           ^
Language: C++

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

int main()
{
  int a, b, c;
  while ( scanf("%d %d %d", &a, &b, &c) != EOF )
  {
    int least = __min( a, __min( b, c));
    int great = __max( a, __max( b, c));
    int midds = a+b+c-least-great;
    int ans = least*midds/2;
    printf("%d\n", ans);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: '__min' was not declared in this scope; did you mean '__sin'?
    9 |     int least = __min( a, __min( b, c));
      |                           ^~~~~
      |                           __sin
a.cc:9:17: error: '__min' was not declared in this scope; did you mean '__sin'?
    9 |     int least = __min( a, __min( b, c));
      |                 ^~~~~
      |                 __sin
a.cc:10:27: error: '__max' was not declared in this scope
   10 |     int great = __max( a, __max( b, c));
      |                           ^~~~~
a.cc:10:17: error: '__max' was not declared in this scope
   10 |     int great = __max( a, __max( b, c));
      |                 ^~~~~
Language: C++

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

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


Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:7:25:   required from here
    7 |   return a * b * c / max(a, b, c) / 2;
      |                      ~~~^~~~~~~~~
/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 int long long
#define REP(i,n) for(int i = 0; i < (n); ++i)
#define FOR(i,a,b)  for(int i = (a); i <= (b); ++i)
#define ALL(v) (v).begin(),(v).end()

using namespace std;
//constexpr int MOD = 10e9+7;
//constexpr int INF = 1LL << 60;
template <class T> inline bool chmin(T& a, T b){if(a > b){ a = b; return 1;} return 0;}  
template <class T> inline bool chmax(T& a, T b){if(a < b){ a = b; return 1;} return 0;}  
const int dx[] = {0, 1, 0, -1, 1, -1, 1, -1}, dy[] = {1, 0, -1, 0, 1, -1, -1, 1};
//

int calc(int * h ,int n)
{
    REP(i,n)
    {
        if(h[i] <= 0)
        {
            if(i == 0)
            {
                return calc(h+1,n);
            }
            if(i == n-1)
            {
                return calc(h,n-1);
            }
            int *h1=h;
            int * h2 = &h[i+1];
            return calc(h1,i-1) + calc(h2,n-i);
        }
    }
    REP(i,n)
    {
        (h[i])--;
    }
    
    return calc(h,n);

}

signed main (){
   ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
   int N;
   cin >> N;
   int h[N];
   REP(i,N){
       cin >>h[i];
   }

   cout << calc(h,N) << endl;



Compiler output:
a.cc: In function 'int main()':
a.cc:53:30: error: expected '}' at end of input
   53 |    cout << calc(h,N) << endl;
      |                              ^
a.cc:44:15: note: to match this '{'
   44 | signed main (){
      |               ^
Language: C

int main (void) {
  int="AB","BC";
  int S="AB"*"BC"/2;
    return S;
    }


Compiler output:
main.c: In function 'main':
main.c:2:6: error: expected identifier or '(' before '=' token
    2 |   int="AB","BC";
      |      ^
main.c:3:13: error: invalid operands to binary * (have 'char *' and 'char *')
    3 |   int S="AB"*"BC"/2;
      |         ~~~~^
      |         |   |
      |         |   char *
      |         char *
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean takasa = 0;
    boolean teihen = 0;
    boolean syahen = 0;
    takasa = sc.nextInt();
    teihen = sc.nextInt();
    syahen = sc.nextInt();
    syahen = 0.5;
      
    boolean menseki = 0;
    menseki = (teihen * takasa) * syahen;
    int intmenseki = (int)menseki;
    System.out.println(intmenseki);
  }
}

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to boolean
    boolean takasa = 0;
                     ^
Main.java:7: error: incompatible types: int cannot be converted to boolean
    boolean teihen = 0;
                     ^
Main.java:8: error: incompatible types: int cannot be converted to boolean
    boolean syahen = 0;
                     ^
Main.java:9: error: incompatible types: int cannot be converted to boolean
    takasa = sc.nextInt();
                       ^
Main.java:10: error: incompatible types: int cannot be converted to boolean
    teihen = sc.nextInt();
                       ^
Main.java:11: error: incompatible types: int cannot be converted to boolean
    syahen = sc.nextInt();
                       ^
Main.java:12: error: incompatible types: double cannot be converted to boolean
    syahen = 0.5;
             ^
Main.java:14: error: incompatible types: int cannot be converted to boolean
    boolean menseki = 0;
                      ^
Main.java:15: error: bad operand types for binary operator '*'
    menseki = (teihen * takasa) * syahen;
                      ^
  first type:  boolean
  second type: boolean
Main.java:16: error: incompatible types: boolean cannot be converted to int
    int intmenseki = (int)menseki;
                          ^
10 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean takasa = 0;
    boolean teihen = 0;
    boolean syahen = 0;
    takasa = sc.nextInt();
    teihen = sc.nextInt();
    syahen = sc.nextInt();
    syahen = 0.5;
      
    boolean menseki = 0;
    menseki = (teihen * takasa) * syahen;
    int intmenseki = (int)menseki;
    System.out.println(menseki);
  }
}

Compiler output:
Main.java:6: error: incompatible types: int cannot be converted to boolean
    boolean takasa = 0;
                     ^
Main.java:7: error: incompatible types: int cannot be converted to boolean
    boolean teihen = 0;
                     ^
Main.java:8: error: incompatible types: int cannot be converted to boolean
    boolean syahen = 0;
                     ^
Main.java:9: error: incompatible types: int cannot be converted to boolean
    takasa = sc.nextInt();
                       ^
Main.java:10: error: incompatible types: int cannot be converted to boolean
    teihen = sc.nextInt();
                       ^
Main.java:11: error: incompatible types: int cannot be converted to boolean
    syahen = sc.nextInt();
                       ^
Main.java:12: error: incompatible types: double cannot be converted to boolean
    syahen = 0.5;
             ^
Main.java:14: error: incompatible types: int cannot be converted to boolean
    boolean menseki = 0;
                      ^
Main.java:15: error: bad operand types for binary operator '*'
    menseki = (teihen * takasa) * syahen;
                      ^
  first type:  boolean
  second type: boolean
Main.java:16: error: incompatible types: boolean cannot be converted to int
    int intmenseki = (int)menseki;
                          ^
10 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean takasa = 0;
    boolean teihen = 0;
    boolean syahen = 0;
    takasa = sc.nextInt();
    teihen = sc.nextInt();
    syahen = sc.nextInt();
    syahen = 0.5;
      
    boolean menseki = 0;
    menseki = (teihen * takasa) * syahen;
    int intmenseki = int(menseki);
    System.out.println(menseki);
  }
}

Compiler output:
Main.java:16: error: '.class' expected
    int intmenseki = int(menseki);
                        ^
Main.java:16: error: not a statement
    int intmenseki = int(menseki);
                         ^
Main.java:16: error: ';' expected
    int intmenseki = int(menseki);
                                ^
3 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean takasa = 0;
    boolean teihen = 0;
    boolean syahen = 0;
    takasa = sc.nextInt();
    teihen = sc.nextInt();
    syahen = sc.nextInt();
    syahen = 0.5;
      
    boolean menseki = 0;
    menseki = (teihen * takasa) * syahen;
    int intmenseki = int(menseki)
    System.out.println(menseki);
  }
}

Compiler output:
Main.java:16: error: '.class' expected
    int intmenseki = int(menseki)
                        ^
Main.java:16: error: not a statement
    int intmenseki = int(menseki)
                         ^
Main.java:16: error: ';' expected
    int intmenseki = int(menseki)
                                ^
3 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int takasa = 0;
    int teihen = 0;
    boolean syahen = 0;
    takasa = sc.nextInt();
    teihen = sc.nextInt();
    syahen = sc.nextInt();
    syahen = 0.5;
      
    boolean menseki = 0;
    menseki = (teihen * takasa) * syahen;
    System.out.println(menseki);
  }
}

Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to boolean
    boolean syahen = 0;
                     ^
Main.java:11: error: incompatible types: int cannot be converted to boolean
    syahen = sc.nextInt();
                       ^
Main.java:12: error: incompatible types: double cannot be converted to boolean
    syahen = 0.5;
             ^
Main.java:14: error: incompatible types: int cannot be converted to boolean
    boolean menseki = 0;
                      ^
Main.java:15: error: bad operand types for binary operator '*'
    menseki = (teihen * takasa) * syahen;
                                ^
  first type:  int
  second type: boolean
5 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(system.in);
    int takasa = 0;
    int teihen = 0;
    int syahen = 0;
    takasa = sc.nextInt();
    teihen = sc.nextInt();
    syahen = sc.nextInt();
    syahen = 0.5;
      
    int menseki = 0;
    menseki = (teihen * takasa) * syahen;
    System.out.println(menseki);
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner sc = new Scanner(system.in);
                             ^
  symbol:   variable system
  location: class Main
Main.java:12: error: incompatible types: possible lossy conversion from double to int
    syahen = 0.5;
             ^
2 errors
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(system.in);
    int takasa = 0;
    int teihen = 0;
    int syahen = 0;
    takasa = sc.nextInt();
    teihen = sc.nextInt();
    syahen = sc.nextInt();
    syahen = 0.5
      
    int menseki = 0;
    menseki = (teihen * takasa) * syahen
    System.out.println(menseki);
  }
}

Compiler output:
Main.java:12: error: ';' expected
    syahen = 0.5
                ^
Main.java:15: error: ';' expected
    menseki = (teihen * takasa) * syahen
                                        ^
2 errors
Language: C

int main () {
  int=AB,BC;
  int S=AB*BC/2;
    return S;
    }


Compiler output:
main.c: In function 'main':
main.c:2:6: error: expected identifier or '(' before '=' token
    2 |   int=AB,BC;
      |      ^
main.c:3:9: error: 'AB' undeclared (first use in this function)
    3 |   int S=AB*BC/2;
      |         ^~
main.c:3:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:12: error: 'BC' undeclared (first use in this function)
    3 |   int S=AB*BC/2;
      |            ^~
Language: C

main(a,b,c){scanf("%d%d%d",&a,&b,&c)<printf("%d",a*b*c/fmax(a,fmax(b,c))>>1);}

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

int main () {
  int = AB,BC
  int S =AB*BC/2
    return S
    }


Compiler output:
main.c: In function 'main':
main.c:2:7: error: expected identifier or '(' before '=' token
    2 |   int = AB,BC
      |       ^
main.c:5:5: error: expected declaration or statement at end of input
    5 |     }
      |     ^
Language: C

int main () {
  int = AB,BC
  int S =AB*BC/2
    }


Compiler output:
main.c: In function 'main':
main.c:2:7: error: expected identifier or '(' before '=' token
    2 |   int = AB,BC
      |       ^
main.c:4:5: error: expected declaration or statement at end of input
    4 |     }
      |     ^
Language: C

int main () {
  int =∣AB∣,∣BC∣
  int S =∣AB∣*∣BC∣/2
    }

Compiler output:
main.c: In function 'main':
main.c:2:7: error: expected identifier or '(' before '=' token
    2 |   int =∣AB∣,∣BC∣
      |       ^
main.c:2:8: error: stray '\342' in program
    2 |   int =<U+2223>AB<U+2223>,<U+2223>BC<U+2223>
      |        ^~~~~~~~
main.c:2:11: error: stray '\342' in program
    2 |   int =<U+2223>AB<U+2223>,<U+2223>BC<U+2223>
      |                  ^~~~~~~~
main.c:2:13: error: stray '\342' in program
    2 |   int =<U+2223>AB<U+2223>,<U+2223>BC<U+2223>
      |                           ^~~~~~~~
main.c:2:16: error: stray '\342' in program
    2 |   int =<U+2223>AB<U+2223>,<U+2223>BC<U+2223>
      |                                     ^~~~~~~~
main.c:3:10: error: stray '\342' in program
    3 |   int S =<U+2223>AB<U+2223>*<U+2223>BC<U+2223>/2
      |          ^~~~~~~~
main.c:3:13: error: stray '\342' in program
    3 |   int S =<U+2223>AB<U+2223>*<U+2223>BC<U+2223>/2
      |                    ^~~~~~~~
main.c:3:15: error: stray '\342' in program
    3 |   int S =<U+2223>AB<U+2223>*<U+2223>BC<U+2223>/2
      |                             ^~~~~~~~
main.c:3:18: error: stray '\342' in program
    3 |   int S =<U+2223>AB<U+2223>*<U+2223>BC<U+2223>/2
      |                                       ^~~~~~~~
main.c:4:5: error: expected declaration or statement at end of input
    4 |     }
      |     ^
Language: C

#include<stdio.h>
int main(void)
{
int a,b,c,d;
scanf("%d",&a);
do{
  if(a%2=0){
    d=a/2;
  }else
  {
    d=3*a+1;
  }
  a=d;
}while(a==4);
  c=a+3;
  printf("%d",c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: lvalue required as left operand of assignment
    7 |   if(a%2=0){
      |         ^
Language: C

# include<stdio.h>
  int main()
    {
    int a,b,area;
    printf("enter a,b values:");
    sacnf("%d%d",&a,&b);
    area=0.5*a*b;
    printf("area is %d",area);
    return0;
    }

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |     sacnf("%d%d",&a,&b);
      |     ^~~~~
      |     scanf
main.c:9:5: error: 'return0' undeclared (first use in this function)
    9 |     return0;
      |     ^~~~~~~
main.c:9:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

{
int a,b,c;
scanf("%d",&a);
do{
  if(a%2){
    a=a/2;
  }else
  {
    a=3*a+1;
  }
}while(a==4);
  c=a+3;
  printf("%d",c);
}

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

#include <stdio.h>
int main(void)
{
	int n;
	int number[3] = { 0 };
	int i, j, k;

	printf("3つの数字を入力\n");
	for (i = 0; i<3; i++) {
		scanf_s("%d", &n);
		if (i == 0) {
			number[i] = n;
		}
		else {
			for (j = 0; j<i; j++) {
				if (number[j] < n) {
					for (k = 4; k>j; k--) number[k] = number[k - 1];
					number[j] = n;
					break;
				}
			}
			if (j == i) number[j] = n;
		}
	}
	printf("(number[1]*number[2])/2");

	return 0;
}

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

# include<stdio.h>
int main()
  {
   int a,b,area;
   printf("enter a,b values:");
   scanf("%d%d",&a,&b);
    area=0.5*a*b;
    printf("area of right triangle is%d",&area);
  return0;
  }

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

#include<iostream>
using namespace std;

int main(){
int s;
  cin >> s;
  for(int i = 0;i < 100; i++){ 
    cin >> s[i];
  if(s % 2 == 0){
  s = s / 2;
  }
  if(s & 2 == 1){
  s = 3 * s + 1;
  }
  if(s[i] == s[i]){
  cout << i << endl;
  }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid types 'int[int]' for array subscript
    8 |     cin >> s[i];
      |             ^
a.cc:15:7: error: invalid types 'int[int]' for array subscript
   15 |   if(s[i] == s[i]){
      |       ^
a.cc:15:15: error: invalid types 'int[int]' for array subscript
   15 |   if(s[i] == s[i]){
      |               ^
Language: C

# include<stdio.h>
int main()
  {
    int a,b;
    Printf("enter a,b values:");
    scanf("%d%d",&a,&b);
    area=0.5*a*b;
    printf("area of right triangle is %d",area);
    return 0;
  }
 

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |     Printf("enter a,b values:");
      |     ^~~~~~
      |     printf
main.c:7:5: error: 'area' undeclared (first use in this function)
    7 |     area=0.5*a*b;
      |     ^~~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;

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

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

#include <iostream>

using namespace std;

int main() {
    int a[3];
    for (int i = 0; i < 3; ++i) {
        cin >> a[i];
    }

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


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

#include<iostream>
int main(){
int=AB;
int=BC;
int=CA;
std::cin>>AB;
std::cin>>BC;
std::cin>>CA;
std::cout<<AB*BC;
return0;
}








Compiler output:
a.cc: In function 'int main()':
a.cc:3:4: error: expected unqualified-id before '=' token
    3 | int=AB;
      |    ^
a.cc:4:4: error: expected unqualified-id before '=' token
    4 | int=BC;
      |    ^
a.cc:5:4: error: expected unqualified-id before '=' token
    5 | int=CA;
      |    ^
a.cc:6:11: error: 'AB' was not declared in this scope
    6 | std::cin>>AB;
      |           ^~
a.cc:7:11: error: 'BC' was not declared in this scope
    7 | std::cin>>BC;
      |           ^~
a.cc:8:11: error: 'CA' was not declared in this scope
    8 | std::cin>>CA;
      |           ^~
a.cc:10:1: error: 'return0' was not declared in this scope
   10 | return0;
      | ^~~~~~~