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

#include <iostream>

using namespace std;

int main(){
 int a.b.h;
  cin << a << b << h << endl;
  cout << (a+b)h/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '.' token
    6 |  int a.b.h;
      |       ^
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin << a << b << h << endl;
      |          ^
a.cc:7:15: error: 'b' was not declared in this scope
    7 |   cin << a << b << h << endl;
      |               ^
a.cc:7:20: error: 'h' was not declared in this scope
    7 |   cin << a << b << h << endl;
      |                    ^
Language: C++

#include <iostream>

using namespace std;

int main(){
 int a.b.h;
  cout << (a+b)h/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '.' token
    6 |  int a.b.h;
      |       ^
a.cc:7:12: error: 'a' was not declared in this scope
    7 |   cout << (a+b)h/2 << endl;
      |            ^
a.cc:7:14: error: 'b' was not declared in this scope
    7 |   cout << (a+b)h/2 << endl;
      |              ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '.' token
    6 |  int a.b.h;
      |       ^
a.cc:7:11: error: 'a' was not declared in this scope
    7 |   cin >>  a,b,h;
      |           ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |   cin >>  a,b,h;
      |             ^
a.cc:7:15: error: 'h' was not declared in this scope
    7 |   cin >>  a,b,h;
      |               ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '.' token
    6 |  int a.b.h;
      |       ^
a.cc:7:11: error: 'a' was not declared in this scope
    7 |   cin >>  a,b,h;
      |           ^
a.cc:7:13: error: 'b' was not declared in this scope
    7 |   cin >>  a,b,h;
      |             ^
a.cc:7:15: error: 'h' was not declared in this scope
    7 |   cin >>  a,b,h;
      |               ^
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'c' was not declared in this scope
    9 |   cin >> c;
      |          ^
a.cc:10:16: error: expected ';' before 'h'
   10 |   cout << (a+b)h/2 << endl;
      |                ^
      |                ;
Language: C++

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

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

#include <iostream>
using namespace std;

int cal(int a,int b,int h){
	int d ;
  d = (a + b)*h/2;
    return d;
}

int main(){
  int a,b,h;
  
  cin >> a;
  cin >> b;
  cin >> h;
  
  cout << cal(a,b,h);
  return 0;

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

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ';' before '}' token
    7 |   cout << (a+b)*h/2
      |                    ^
      |                    ;
    8 | 
    9 | }
      | ~
Language: Java

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

}


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

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

int main(){
  int A,B,H;
  cin >> A >> B >> H;
  cout << h*(A+B)/2 << endl;
}

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

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

Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++>h>
      |                       ^
a.cc:1:9: fatal error: bits/stdc++>: No such file or directory
    1 | #include<bits/stdc++>h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C

a,b,h=int(input.split())
print((a+b)*h/2)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a,b,h=int(input.split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a,b,h=int(input.split())
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'h' [-Wimplicit-int]
    1 | a,b,h=int(input.split())
      |     ^
main.c:1:7: error: expected expression before 'int'
    1 | a,b,h=int(input.split())
      |       ^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define all(v) v.begin(), v.end()
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(void){
  int a, b, h;
  cin >> a >> b >> h;

  ans = (a + b) * h / 2;
  cout << ans << endl;
}


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

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

using namespace std;
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; //処理早くするためのおまじない
int main(){

string Sa,Sb,Sc;
cin>>Sa>>Sb>>Sc;

string next;
next.push_back(a[0]);

	while(true)
	{
		if(next=="a")
		{
			if(Sa.empty())
			{
				cout<<"A"<<endl;
				break;
			}
			next=*Sa.begin();
			Sa.erase(Sa.begin());
	 	}
	 	if(next=="b")
	 	{
			if(Sb.empty())
			{
				cout<<"B"<<endl;
				break;
			}
		next=*Sb.begin();
		Sb.erase(Sb.begin());
	 	}
	 	if(next=="c")
	 	{
			if(Sa.empty())
			{
				cout<<"C"<<endl;
				break;
			}
		next=*Sc.begin();
		Sc.erase(Sc.begin());
	 	}
	}
	return 0;
}


#include <bits/stdc++.h>
using namespace std;
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
int main()
{
    string A, B, C;
    cin >> A >> B >> C;
    
    string next;
    next.push_back( A[ 0 ] );
    
    int a{}, b{}, c{};
    while( true )
    {
        if( next == "a" )
        {
            if( A.empty() )
            {
                cout << "A" << endl;
                break;
            }
            next = *A.begin();
            A.erase( A.begin() );
            a++;
        }
        if( next == "b" )
        {
            if( B.empty() )
            {
                cout << "B" << endl;
                break;
            }
            next = *B.begin();
            B.erase( B.begin() );
            b++;
        }
        if( next == "c" )
        {
            if( C.empty() )
            {
                cout << "C" << endl;
                break;
            }
            next = *C.begin();
            C.erase( C.begin() );
            c++;
        }
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'a' was not declared in this scope; did you mean 'Sa'?
   12 | next.push_back(a[0]);
      |                ^
      |                Sa
a.cc: At global scope:
a.cc:53:8: error: redefinition of 'struct cww'
   53 | struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
      |        ^~~
a.cc:5:8: note: previous definition of 'struct cww'
    5 | struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; //処理早くするためのおまじない
      |        ^~~
a.cc:53:59: error: conflicting declaration 'int star'
   53 | struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
      |                                                           ^~~~
a.cc:5:59: note: previous declaration as 'cww star'
    5 | struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star; //処理早くするためのおまじない
      |                                                           ^~~~
a.cc:54:5: error: redefinition of 'int main()'
   54 | int main()
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main(){
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:53: error: 'h' was not declared in this scope
    5 |     int a, b, c; cin >> a >> b >> c; cout << (a+b)*(h/2) << endl;
      |                                                     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    8 | int main() {
      |         ^~
a.cc:8:9: note: remove parentheses to default-initialize a variable
    8 | int main() {
      |         ^~
      |         --
a.cc:8:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:8:12: error: a function-definition is not allowed here before '{' token
    8 | int main() {
      |            ^
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    8 | int main() {
      |         ^~
a.cc:8:9: note: remove parentheses to default-initialize a variable
    8 | int main() {
      |         ^~
      |         --
a.cc:8:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:8:12: error: a function-definition is not allowed here before '{' token
    8 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>

 using namespace std;

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

cout<<(a+b)*h/2<<endl;

  return  
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:2: error: expected primary-expression before '}' token
   13 |  }
      |  ^
a.cc:12:9: error: expected ';' before '}' token
   12 |   return
      |         ^
      |         ;
   13 |  }
      |  ~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b,h,area;
  cin>>a>>b>>h;
  area=0.5*(a+b)*h;
  cout<<area<<endl;
  retrurn 0;
}

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

#include<iostream>
using namespace std;

int a,b,h,sum;//KはくまでX円でNはくする

int main(){

	cin>>a>>b>>h;
	sum= (a+b)*h/2;
	cout<<sum<<endl;
	return o;

	}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'o' was not declared in this scope
   11 |         return o;
      |                ^
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>a>>b>>h;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue<bits/stdc++.h>
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<(a+b)*h/2;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include <stdio.h>

int main(void){
  int a, b, h;
  scanf("%d\n %d\n %d\n", &a, &b, &h);
  if (1<=a<=100 && 1<=b<=100 && 1<=h<=100){
    printf("%d\n", (a+b)*h/2);
  }else {
    printf("%s\n", "Invalid!")
  }
}
  

Compiler output:
main.c: In function 'main':
main.c:9:31: error: expected ';' before '}' token
    9 |     printf("%s\n", "Invalid!")
      |                               ^
      |                               ;
   10 |   }
      |   ~
Language: C++

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

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

#include<iostream>
using namespace std;
int main(){
int n,k,x,y;
  cin >> a >> b >>h;
cout << (a+b)*h/2 <<endl;  
}

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

#include<iostream>
using namespace std;
int main()
{
  float a,b
    int h;
  int area,area1;
  cin>>a;
  cin>>b;
  cin>>h;
  area1=(int)(a+b)/2;
  area=area1*h;
  cout<<area;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'int'
    6 |     int h;
      |     ^~~
a.cc:9:8: error: 'b' was not declared in this scope
    9 |   cin>>b;
      |        ^
a.cc:10:8: error: 'h' was not declared in this scope
   10 |   cin>>h;
      |        ^
Language: C

include<stdio.h>
int main(void)
{
    int a;    //上底
    int b;    //下底
    int h;    //高さ
    int ans;  //答えを格納する変数
    printf("a:");
    scanf("%d",&a);
    printf("b:");
    scanf("%d",&b);
    printf("h:");
    scanf("%d",&h);
    ans=(a+b)*h/2;
    return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '>>' token
    6 |   cin >> a >> b >> h;
      |       ^~
Language: C

int a,b,h
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&h);
print("%d",(a+b)*h/2;

Compiler output:
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    2 | scanf("%d",&a);
      | ^~~~~
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d",&b);
      |       ^~~~
main.c:3:12: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d",&b);
      |            ^
main.c:4:7: error: expected declaration specifiers or '...' before string constant
    4 | scanf("%d",&h);
      |       ^~~~
main.c:4:12: error: expected declaration specifiers or '...' before '&' token
    4 | scanf("%d",&h);
      |            ^
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | print("%d",(a+b)*h/2;
      |       ^~~~
main.c:5:12: error: expected declaration specifiers or '...' before '(' token
    5 | print("%d",(a+b)*h/2;
      |            ^
main.c:5:12: error: expected declaration specifiers or '...' at end of input
Language: C

include <stdio.h>
int main(void)
{
  int a,b,h;
  printf("a:")  scanf("%d",&a);
  printf("b:")  scanf("%d",&b);
  printf("h:")  scanf("%d",&h);
  
  printf("(a+b)*h/2");
  
  return 0;
}

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

#include bits/stdc++.h
int main()
{
  int a,b,h;
  int areah
  cin>>a;
  cin>>b;
  cin>>h;
  area=0.5*h*(b+a);
  cout<<area<<endl;
  return 0;
}


Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include bits/stdc++.h
      |          ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin>>a;
      |   ^~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>b;
      |   ^~~
a.cc:9:3: error: 'area' was not declared in this scope
    9 |   area=0.5*h*(b+a);
      |   ^~~~
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<area<<endl;
      |   ^~~~
a.cc:10:15: error: 'endl' was not declared in this scope
   10 |   cout<<area<<endl;
      |               ^~~~
Language: C++

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

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

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

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

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
   int a, b, h;

   cin >> a >> b >> h;
   
   int ans = { ( a + b ) * h }/ 2;
   
   cout << ans << endl;
    
}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:31: error: expected ',' or ';' before '/' token
    9 |    int ans = { ( a + b ) * h }/ 2;
      |                               ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a, b, H;
    
    cin >> a >> b >> H;

    int n = a + b;
    
    int o = n * h;

    int ans = o / 2;
    
    cout << ans << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'h' was not declared in this scope
   11 |     int o = n * h;
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
   int a, h, b;
   
   cin >> a >> h >> b;
   
   int ans a + b * h / 2;
   
   cout << ans << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected initializer before 'a'
    9 |    int ans a + b * h / 2;
      |            ^
a.cc:11:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |    cout << ans << endl;
      |            ^~~
      |            abs
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a, b, H;
    
    cin >> a >> b >> H;
    
    int ans = ((a + b) * h) / 2);
    
    cout << ans << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: 'h' was not declared in this scope
    9 |     int ans = ((a + b) * h) / 2);
      |                          ^
Language: C++

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

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

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

#include <bits/stdc++.h>
#define INF 2e9
#define MOD 1000000007
#define MOD9 998244353
#define intMAX 51000;
#define PI 3.14159265359
using namespace std;
typedef long long llong;
// typedef long double ldouble;

using Graph = vector<vector<int>>;

// int ctoi(const char c){
//   if('0' <= c && c <= '9') return (c-'0');
//   return -1;
// }

// int gcd(int a, int b){
//   int ma = max(a,b);
//   int mi = min(a,b);
//   if(mi == 0) return ma;

//   return gcd(mi, ma%mi);
// }

// llong POW(llong a, llong b){
//   if(b == 0) return 1;
//   else{
//     if(b%2 == 0) return POW(a * a % MOD, b / 2) % MOD;
//     else return a * POW(a * a % MOD, b / 2) % MOD;
//   }
// }

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

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    
    int a, b, h;
    
    cin >> a >> b >> h;
    
    int ans =( a + b ) * h; /2
    
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected primary-expression before '/' token
   10 |     int ans =( a + b ) * h; /2
      |                             ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a, b, h, ret;
  cin >> a;
  cin >> b;
  cin >> h;
  ret = (a + b) * h / 2
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before 'return'
    9 |   ret = (a + b) * h / 2
      |                        ^
      |                        ;
   10 |   return 0;
      |   ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected '}' at end of input
    8 |   cout<<(a+b)*h/2;
      |                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

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

Compiler output:
Main.java:21: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

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

Compiler output:
Main.java:15: error: ';' expected
    h = scan.nextInt);
                    ^
Main.java:21: error: reached end of file while parsing
  }
   ^
2 errors
Language: Java

import java.util.Scanner;
 
public class Main {
  static public void main(String[] args)
  {
    Scanner scan = new Scanner(System.in);
    
    int a;
    int b;
    int h;
    int s;
    
    a = scan.nextLine();
    b = scan.nextLine();
    h = scan.nextLine();
    
    s = (a+b) / h;
    
    System.out.println(s);
    
  }
}

Compiler output:
Main.java:13: error: incompatible types: String cannot be converted to int
    a = scan.nextLine();
                     ^
Main.java:14: error: incompatible types: String cannot be converted to int
    b = scan.nextLine();
                     ^
Main.java:15: error: incompatible types: String cannot be converted to int
    h = scan.nextLine();
                     ^
3 errors
Language: Java

import java.util.Scanner;

public class Main {
  static public void main(String[] args)
  {
    Scanner scan = new Scanner(System.in);
    
    int a;
    int b;
    int h;
    int s;
    
    a = scan.nextLine();
    b = scan.nextLine();
    h = scan.nextLine();
    
    s = (a+b) / h;
    
    System.out.println(s);
    
  }

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

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

int main(int argc, char const *argv[]) {
  /* code */
  int a,b,h,answer;
  std::cin >> a >> b >> h;

  answer = (a+b)/2*h
  cout << answer << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:21: error: expected ';' before 'cout'
    9 |   answer = (a+b)/2*h
      |                     ^
      |                     ;
   10 |   cout << answer << '\n';
      |   ~~~~
Language: C++

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

int main(int argc, char const *argv[]) {
  /* code */
  int a,b,h,answer;
  std::cin >> a >> b >> h;

  answer = (a+b)/2*h
  std::cout << answer << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:21: error: expected ';' before 'std'
    9 |   answer = (a+b)/2*h
      |                     ^
      |                     ;
   10 |   std::cout << answer << '\n';
      |   ~~~
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner();
    // 整数の入力
    int a = sc.nextInt();
    int b = sc.nextInt();
    int h = sc.nextInt();
    //出力
    System.out.println((a + b) * h / 2);
  }
}

Compiler output:
Main.java:4: error: no suitable constructor found for Scanner(no arguments)
    Scanner sc = new Scanner();
                 ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: C++

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

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


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

#include<stdio.h>

int main(void)
{
  int a,b,h;
  
  printf("%d"(a + b) * h / 2);
  return 0;

Compiler output:
main.c: In function 'main':
main.c:7:10: error: called object is not a function or function pointer
    7 |   printf("%d"(a + b) * h / 2);
      |          ^~~~
main.c:8:3: error: expected declaration or statement at end of input
    8 |   return 0;
      |   ^~~~~~
Language: C++

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

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

}

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

//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
#define rep(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
#define debug(v)          \
    cout << #v << ":";    \
    for (auto x : v)      \
    {                     \
        cout << x << ' '; \
    }                     \
    cout << endl;
template <class T>
bool chmax(T &a, const T &b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
bool chmin(T &a, const T &b)
{
    if (b < a)
    {
        a = b;
        return 1;
    }
    return 0;
}
//cout<<fixed<<setprecision(15);有効数字15桁
//-std=c++14
//-std=gnu++17
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b,c,k;
    cin>>a>>b>>c;
    cout<<(a+b)*h/2<<"\n";
}


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

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

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

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


#include <stdio.h>

double Area(int a, int b, 

                    int h) 
{ 

    return ((a+ b) / 2) * h; 
} 

  
/

int main() 
{ 

    int a=3 , b= 4,  

                   h=2;

    double area = Area(base1, base2,  

                              height); 

    printf("Area is: %.%d", area); 

    return 0; 
} 

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

#include<stdio.h>
double Area(int a, int b, int h) 
{ 

    return ((a+b) / 2) * h; 
} 

int main() 
{ 

    int a=3, b= 4, h = 6; 

    double area = Area(a,b,h);          

    cout << "Area is: " << area; 

    return 0; 
} 

Compiler output:
main.c: In function 'main':
main.c:15:5: error: 'cout' undeclared (first use in this function)
   15 |     cout << "Area is: " << area;
      |     ^~~~
main.c:15:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: warning: missing terminating ' character
    5 | scanf('%d%d%d"&a,&b,&h);
      |       ^
main.c:5:7: error: missing terminating ' character
    5 | scanf('%d%d%d"&a,&b,&h);
      |       ^~~~~~~~~~~~~~~~~~
main.c:6:10: error: expected ')' before ';' token
    6 | x=(a+b)/2;
      |          ^
      |          )
main.c:5:6: note: to match this '('
    5 | scanf('%d%d%d"&a,&b,&h);
      |      ^
main.c:6:2: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    6 | x=(a+b)/2;
      | ~^~~~~~~~
      |  |
      |  int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:10: error: expected ';' before '}' token
    9 | return 0;
      |          ^
      |          ;
   10 | }
      | ~
Language: C

#include<stdio.h>
int main()
{
   int a,b,h,area;
   scanf("%d %d %d",&a,&b,&h);
   area= ((a+b)×h/2);
   Printf("area is=%d\n",area);
   return 0;
} 

Compiler output:
main.c: In function 'main':
main.c:6:16: error: stray '\303' in program
    6 |    area= ((a+b)<U+00D7>h/2);
      |                ^~~~~~~~
main.c:6:16: error: expected ')' before 'h'
    6 |    area= ((a+b)×h/2);
      |          ~     ^~
      |                )
main.c:7:4: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |    Printf("area is=%d\n",area);
      |    ^~~~~~
      |    printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: 'h' undeclared (first use in this function)
    6 |     d=((a+b)*h)/2;
      |              ^
main.c:6:14: 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,c;
  cin>>a;
  cin>>b;
  cin>>c;
  cout<<(a+b)*c/2
}

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

#include <iostream>

using namespace std;

int main() {
    int a, b, h;
    cin >> a;
    cin >> b;
    cin >> h;
    int ans;
    ans = (a + b) * h / 2;
    cout << ans << endl:
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ';' before ':' token
   12 |     cout << ans << endl:
      |                        ^
      |                        ;
Language: Java

import java.io.*;

public class Daikei {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int a = Integer.parseInt(reader.readLine());
			int b = Integer.parseInt(reader.readLine());
			int h = Integer.parseInt(reader.readLine());
			System.out.println((a + b) * h / 2);
		} catch(IOException e) {
			System.out.println(e);
		}
		
		
	}

}


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

public class Main {
	public static void main(String[] args) {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			int a = Integer.parseInt(reader.readLine());
			int b = Integer.parseInt(reader.readLine());
			int h = Integer.parseInt(reader.readLine());
			System.out.println((a + b) * h / 2);
		} catch(IOException e) {
			System.out.println(e);
		}
		
		
	}

}

Compiler output:
Main.java:3: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		                                               ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:9: error: cannot find symbol
		} catch(IOException e) {
		        ^
  symbol:   class IOException
  location: class Main
4 errors
Language: C++

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

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

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

#include <bits/stdc++.h>

using namespace std;

int main() {

	long a, b, c;
	cin >> a >> b >> c;

	cout << (a + b)*h / 2 << endl;
}

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

#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <regex>
#define REP(i,n) for(int i = 0; i < n; i++)
#define FOR(i,j,n) for(int i = j; i < n; i++)
#define RFOR(i,j,n) for(int i = j-1; i >= n; i--)
#define PREC(n) fixed << setprecision(n)
#define print_array(v) REP(__k, v.size()) { cout << v[__k]; if(__k != v.size()-1) cout << " "; else cout << endl; }
#define YesorNo(a) printf(a?"Yes\n":"No\n")
#define _LIBCPP_DEBUG 0
using namespace std;
int64_t MOD = 1000000007;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a, b, h;
  cin >> a >> b >> hr;
  int ans = (a + b) * h / 2;
  cout << ans << endl;
  return 0;
}
//templete by private_yusuke

Compiler output:
a.cc: In function 'int main()':
a.cc:64:20: error: 'hr' was not declared in this scope; did you mean 'h'?
   64 |   cin >> a >> b >> hr;
      |                    ^~
      |                    h
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int)'
    8 |  cout (a+b)*h/2;
      |  ~~~~~^~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int)'
    8 |  cout (a+b)*h/2
      |  ~~~~~^~~~~
Language: C++

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

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


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

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0), cout.tie(0);
    
    int a, b, h; cin >> a >> b >> h;
    cout << (a+b)*h)/2;
    
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before ')' token
   12 |     cout << (a+b)*h)/2;
      |                    ^
      |                    ;
Language: C++

include<bits/stdc++.h>
using namespace std;        
int main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    int a,b,h;
    cin>>a>>b>>h;
    int d= (a+b)*h;
    cout<<d/2;
    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:4:5: error: 'cin' was not declared in this scope
    4 |     cin.tie(0);
      |     ^~~
a.cc:5:5: error: 'ios' has not been declared
    5 |     ios::sync_with_stdio(0);
      |     ^~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<d/2;
      |     ^~~~
Language: C

#include<iostream>
using namespace std;

int main()

{
	double a,b,h,area;
	cin>>a;
	cin>>b;
	cin>>h;
	area=((a+b)*h)/2.0;
	cout<<area<<"\n";
	return 0;
}

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

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

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

#include <bits/stdc++.h>
using namespace std;
//型に気を付けよう
 
int main() {
  int a,b,h;
  const int p=2;
  cin>>a>>b>>h;
  cout<<((a+b)*h)/p
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before '}' token
    9 |   cout<<((a+b)*h)/p
      |                    ^
      |                    ;
   10 | 
   11 | }
      | ~
Language: C++

#include<iostream>
using namespace std;
int tixing(int a,int b,int h)
{
	int ans=(a+b)*h/2;
	return;
}
int main()
{
    int a,b,h,ans;  
    cin>>a>>b>>h;   
    tixing(a,b,h);  
    cout<<ans;
    return 0;
}

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

#include<iostream>
using namespace std;
int tixing(int a,int b,int h)
{
	int ans=(a+b)*h/2;
	cout<<ans;
	return;
}
int main()
{
    int a,b,h,ans;  
    cin>>a>>b>>h;   
    tixing(a,b,h);  
    return 0;
}

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

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

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


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

int a;
int b;
int h;
cin >> a >> b >> h;

cout << (a + b) * h / 2 << endl;

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> a >> b >> h;
      | ^~~
a.cc:6:1: error: 'cout' does not name a type
    6 | cout << (a + b) * h / 2 << endl;
      | ^~~~
Language: C++

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

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin a >> b >> h;
      |   ^~~
a.cc:9:17: error: 'h' was not declared in this scope
    9 |   cout << (a+b)*h/2 << endl;
      |                 ^
Language: Java

var a=4;
var b=4;
var h=4;
println((a+b)*h/2);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
var a=4;
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
println((a+b)*h/2);
^
2 errors
Language: Java

int a=4;
int b=4;
int h=4;
console.log((a+b)*h/2);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int a=4;
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
console.log((a+b)*h/2);
^
2 errors
Language: Java

int answer = (a+b)*h/2;
console.log(answer);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int answer = (a+b)*h/2;
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
console.log(answer);
^
2 errors
Language: C++

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

int main()
{
   int a,b,h;
   scanf("%d%d%d",&a,&b,&h);
  int ans=((a+b)*h)/2;
  printf("%d",ans);
}

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

#include <bits/stc.++h>

int main()
{
   int a,b,h;
   scanf("%d%d%d",&a,&b,&h);
  int ans=((a+b)*h)/2;
  printf("%d",ans);
}

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

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



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

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

#include <bits / stdc ++. h>
 using namespace std;
 struct cww {cww () {ios :: sync_with_stdio ( false ); cin.tie ( 0 );}} star;
 int main ()
 {
     string A, B, C;
     cin >> A >> B >> C;
    
     string next;
     next.push_back (A [ 0 ]);
    
     int a {}, b {}, c {};
     while ( true )
     {
         if (next == "a" )
         {
             if (A.empty ())
             {
                 cout << "A" << endl;
                 break ;
             }
             next = * A.begin ();
             A.erase (A.begin ());
             a ++;
         }
         if (next == "b" )
         {
             if (B.empty ())
             {
                 cout << "B" << endl;
                 break ;
             }
             next = * B.begin ();
             B.erase (B.begin ());
             b ++;
         }
         if (next == "c" )
         {
             if (C.empty ())
             {
                 cout << "C" << endl;
                 break ;
             }
             next = * C.begin ();
             C.erase (C.begin ());
             c ++;
         }
     }
     return 0 ;
 }

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