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

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


Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected ';' before 'printf'
    5 |   c=2*h
      |        ^
      |        ;
    6 |   printf("%d",(a+b)*c/2);
      |   ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:20: error: expected ')' before 'h'
    5 |   printf("%d",(a+b)h);
      |         ~          ^
      |                    )
Language: C++

#include<iostream>
using namespace std;

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

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define SORT(c) sort((c).begin(),(c).end())
#define REVERSE(c) reverse((c).begin(),(c).end())
#define ALL(x) (x).begin(),(x).end()
const long long MOD = 1000000007;
const long long INF = 1LL << 60;

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:13:27: error: 'h' was not declared in this scope
   13 |         cout << (a + b) * h / 2 << endl;
      |                           ^
Language: C++

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

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

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

 
int main(){
  int a, b, h;
  cin >> a >> b >> h;
  vector<int> vec(n);
  int s = (a + b)* h / 2;
  cout << s << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'n' was not declared in this scope
    8 |   vector<int> vec(n);
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    string s[3];
    cin >>s[0]>>s[1]>>s[2];
    int i=0;
    while(true){
      if(s[i].size()==0){
        cout<<char('A'+i)<<endl;
        return0;
      }
      char c=s[i][0];
      s[i].erase(0,1);
      i=c-'a';
    }
}


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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>a>>b>c;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<(a+b)*c/2;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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



}

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

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

int a, b, h;

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

Compiler output:
a.cc:8:27: error: extended character 　 is not valid in an identifier
    8 |   cout << ((a + b) / 2) * h　<< endl;
      |                           ^
a.cc: In function 'int main()':
a.cc:8:27: error: 'h\U00003000' was not declared in this scope
    8 |   cout << ((a + b) / 2) * h　<< endl;
      |                           ^~~
Language: C++

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

int a, b, h;

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

Compiler output:
a.cc:8:25: error: extended character 　 is not valid in an identifier
    8 |   cout << (a + b) / 2 * h　<< endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:8:25: error: 'h\U00003000' was not declared in this scope
    8 |   cout << (a + b) / 2 * h　<< endl;
      |                         ^~~
Language: Java

import jaav.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 h = sc.nextInt();
      System.out.println((a+b)*h/2);
    }
}

Compiler output:
Main.java:1: error: package jaav.util does not exist
import jaav.util.*;
^
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	                 ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<cstring>
using namespace std;
int main(){
	int a,b,c;
	cin>>(a+b)/h<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'h' was not declared in this scope
    9 |         cin>>(a+b)/h<<endl;
      |                    ^
Language: Java

import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.*;
public class MAIN {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        double a = in.nextInt();
        double b = in.nextInt();
        double h = in.nextInt();
        int ans = (int)(((a+b)/2)*h);
        System.out.println(ans);
    }
}


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

/*
このコード、と～おれ!
Be accepted!
  ∧＿∧　
（｡･ω･｡)つ━☆・*。
⊂　　 ノ 　　　・゜+.
　しーＪ　　　°。+ *´¨)
　　　　　　　　　.· ´¸.·*´¨) ¸.·*¨)
　　　　　　　　　　(¸.·´ (¸.·'* ☆
*/

#define rep(i, n) for(int i = 0; i < (n); ++i)
#define printyn(test) printf(test ? "YES\n" : "NO\n");
#define all(x) (x).begin(), (x).end()

using ll = long long;

#include <stdio.h>
#include <algorithm>
//#include <vector>

using namespace std;


int main() {

	int a, b, h;
	scanf("%d%d%d", &a, &b, &c);
	printf("%d\n", (a + b) * h);

	return 0;
}

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

#include <iostream>
using namespace std;

int main(){
	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:6:9: error: expected initializer before 'cin'
    6 |         cin >> a >> b >> h;
      |         ^~~
a.cc:7:27: error: 'h' was not declared in this scope
    7 |         cout << (a + b) * h / 2;
      |                           ^
Language: C++

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

Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b >> h;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     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:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << (a+b)*h/2 << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main(){
  
  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:11:20: error: expected ';' before 'return'
   11 |   cout << (a+b)*h/2
      |                    ^
      |                    ;
......
   14 |     return 0;
      |     ~~~~~~
Language: Java

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

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

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

Compiler output:
Main.java:10: error: cannot find symbol
   int trapezoid=(a+b)*h/2;
                       ^
  symbol:   variable h
  location: class Main
1 error
Language: C++

#include<iostream>
using namespace std; 
int a,b,h;
int main()
{
    scanf("%d%d%d",&a,&b,&h)
    cout<<(a+b)*h/2;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected ';' before 'cout'
    6 |     scanf("%d%d%d",&a,&b,&h)
      |                             ^
      |                             ;
    7 |     cout<<(a+b)*h/2;
      |     ~~~~
Language: C


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


Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'csanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   csanf("%d",&a);
      |   ^~~~~
      |   scanf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'csanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   csanf("%d",&a);
      |   ^~~~~
      |   scanf
Language: C

#includ <stdio.h>
int main(){
 int a,b,h;
  csanf("%d",&a);
    csanf("%d",&b);
    csanf("%d",&h);
  printf("%d\n",(a+b)*h/2);
  return(0);
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'csanf' [-Wimplicit-function-declaration]
    4 |   csanf("%d",&a);
      |   ^~~~~
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("%d\n",(a+b)*h/2);
      |   ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | #includ <stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |   printf("%d\n",(a+b)*h/2);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

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


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

import java.util.Scanner;

public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //台形の面積を求める
        int a = sc.nextInt(); //上辺
        int b = sc.nextInt(); //下辺
        int h = sc.nextInt(); //高さ
        int ans;
        
        (a+b)*h/2=ans;
        
        System.out.println(ans);
    }
}

Compiler output:
Main.java:11: error: unexpected type
        (a+b)*h/2=ans;
               ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.Scanner;

public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //台形の面積を求める
        int a = sc.nextInt(); //上辺
        int b = sc.nextInt(); //下辺
        int h = sc.nextInt(); //高さ
        int ans;
        
        (a+b)*h/2 = ans;
        
        System.out.println(ans);
    }
}

Compiler output:
Main.java:11: error: unexpected type
        (a+b)*h/2 = ans;
               ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.Scanner;

public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //台形の面積を求める
        int a = sc.nextInt(); //上辺
        int b = sc.nextInt(); //下辺
        int h = sc.nextInt(); //高さ
        int ans;
        
        (a + b)*h/2 = ans;
        
}
}

Compiler output:
Main.java:11: error: unexpected type
        (a + b)*h/2 = ans;
                 ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.Scanner;

public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //台形の面積を求める
        int a = sc.nextInt(); //上辺
        int b = sc.nextInt(); //下辺
        int h = sc.nextInt(); //高さ
        int ans;
        
        (a + b) * h / 2 = ans;
        
}
}

Compiler output:
Main.java:11: error: unexpected type
        (a + b) * h / 2 = ans;
                    ^
  required: variable
  found:    value
1 error
Language: Java

import java.util.Scanner;

public class  Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in); //台形の面積を求める
        int a = sc.nextInt(); //上辺
        int b = sc.nextInt(); //下辺
        int h = sc.nextInt(); //高さ
        int ans;
        
        (a + b) * h / 2 = ans;
        
}

Compiler output:
Main.java:13: error: reached end of file while parsing
}
 ^
1 error
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:6:25: error: stray '\' in program
    6 |     cout << (a + b) * (h\2) << endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:6:25: error: expected ')' before numeric constant
    6 |     cout << (a + b) * (h\2) << endl;
      |                       ~ ^~
      |                         )
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: expected primary-expression before ';' token
    6 |   cout << (a+b)*c/;2
      |                   ^
a.cc:6:21: error: expected ';' before '}' token
    6 |   cout << (a+b)*c/;2
      |                     ^
      |                     ;
    7 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: expected initializer before '.' token
    4 |   int a,b,h.area;
      |            ^
a.cc:5:20: error: 'h' was not declared in this scope
    5 |   cin >> a >> b >> h;
      |                    ^
a.cc:6:3: error: 'area' was not declared in this scope
    6 |   area=((a+b)*h)/2;
      |   ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
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:9:19: error: 'h' was not declared in this scope
    9 |     cout << (a+b)*h/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:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
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:6:3: error: 'cout' was not declared in this scope
    6 |   cout << (a+b)*h/2 << endl;
      |   ^~~~
a.cc:6:24: error: 'endl' was not declared in this scope
    6 |   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:41: error: expected '}' at end of input
    6 |         cout << (a + b) * h / 2 << endl;
      |                                         ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

import java.util.*;
public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Byte[] daikeihen = new Byte[3];
        daikeihen[0] = sc.nextByte();
        daikeihen[1] = sc.nextByte();
        daikeihen[2] = sc.nextByte();
        System.out.println((daikeihen[0] + daikeihen[1]) * daikeihen[2] / 2);
    }

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

import java.util.*;
public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        byte[] daikeihen = new byte[3];
        for(int i = 0;i <= 2; i++){
      	daikeihen[i] = sc.nextInt();
        }System.out.println((daikeihen[0] + daikeihen[1]) * daikeihen[2] / 2);
    }
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from int to byte
      	daikeihen[i] = sc.nextInt();
      	                         ^
1 error
Language: Java

import java.util.*;
public class Main {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        byte[] daikeihen = new byte[3];
        for(byte i = 0;i <= 2; i++){
      	daikeihen[i] = sc.nextInt();
        }System.out.println((daikeihen[0] + daikeihen[1]) * daikeihen[2] / 2);
    }
}

Compiler output:
Main.java:8: error: incompatible types: possible lossy conversion from int to byte
      	daikeihen[i] = sc.nextInt();
      	                         ^
1 error
Language: C++

#include<iostream>
using namespace std;

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

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

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

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


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

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

int main(){
  int a,b,h,s;
  cin >> a,b,c;
  cout << ((a+b)*h)*0.5 << 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<bits/stdc++.h>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'b'
    6 |   cin >> a b c;
      |           ^~
      |           ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'c' was not declared in this scope
    5 |         1<a,b,c<100;
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'c' was not declared in this scope
    5 |         1<a,b,c<100;
      |               ^
a.cc:10:23: error: 's' was not declared in this scope
   10 |         printf("%d\n",s);
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'c' was not declared in this scope
    5 |         1<a,b,c<100;
      |               ^
a.cc:9:14: error: 'd' was not declared in this scope
    9 |         e=(a+d)*h/2;
      |              ^
a.cc:10:23: error: 's' was not declared in this scope
   10 |         printf("%d\n",s);
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'd' was not declared in this scope
    8 |         e=(a+d)*h/2;
      |              ^
a.cc:9:23: error: 's' was not declared in this scope
    9 |         printf("%d\n",s);
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'd' was not declared in this scope
    8 |         e=(a+d)*h;
      |              ^
a.cc:9:23: error: 's' was not declared in this scope
    9 |         printf("%d\n",s);
      |                       ^
Language: C++

#include<stdio.h>
int main(void)
{
	int a,h,d,e;
	scanf("%d",&a);
	scanf("%d",&d);
  	scanf("%d",&h);
	e=(a+d)*h;
	printf("%d\n",s);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: 's' was not declared in this scope
    9 |         printf("%d\n",s);
      |                       ^
Language: C

#include<stdio.h>


int main(){

    int a, b, h;

    a = 4;
    scanf("%d", &a);
    b=5
    scanf("%d", &b);
    h=6
    scanf("%d", &h);

    printf("%d\n",(a+b)*h);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: expected ';' before 'scanf'
   10 |     b=5
      |        ^
      |        ;
   11 |     scanf("%d", &b);
      |     ~~~~~
main.c:12:8: error: expected ';' before 'scanf'
   12 |     h=6
      |        ^
      |        ;
   13 |     scanf("%d", &h);
      |     ~~~~~
Language: C

#include<stdio.h>


int main(){

    int a, b, h;

    a = 4;
    b = 5;
    h = 6;

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

    printf("%d\n",(a+b)*h=));

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:27: error: expected expression before ')' token
   16 |     printf("%d\n",(a+b)*h=));
      |                           ^
main.c:16:28: error: expected statement before ')' token
   16 |     printf("%d\n",(a+b)*h=));
      |                            ^
Language: C

#include<stdio.h>


int main(){

    int a, b, h;

    a = 4;
    b = 5;
    h = 6;

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

    printf("%d\n",(a+b)*h=);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:27: error: expected expression before ')' token
   16 |     printf("%d\n",(a+b)*h=);
      |                           ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:9:34: error: expected ')' before ';' token
    9 |     printf("%dn", (a + b) * h / 2;
      |           ~                      ^
      |                                  )
main.c:10:14: error: expected ';' before '}' token
   10 |     return 0;
      |              ^
      |              ;
   11 | }
      | ~
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: expected ')' before ';' token
    9 |     printf("%dn", (a + b) * h / 2;
      |           ~                      ^
      |                                  )
Language: C

#include<stdio.h>

int main(){
  	printf("5\n");
  	printf("6\n");
  	printf("6\n");
  
  return 0
}

Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected ';' before '}' token
    8 |   return 0
      |           ^
      |           ;
    9 | }
      | ~
Language: C++

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

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

#include <iostream>
#include <stdio.h>
#include <algorithm>

using namespace std;

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

    int sum = 0;
    sum = ((a + b) * c)2;
    


    cout << sum << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before numeric constant
   13 |     sum = ((a + b) * c)2;
      |                        ^
      |                        ;
Language: C++

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

int main(void){
  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:10: error: expected primary-expression before ')' token
    8 |   cout<<()(a+b)*h)/2<<endl;
      |          ^
Language: C++

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

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

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


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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <string>

int main(int argc, char* argv[]) {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  /* */
  int a, b, h;
  std::cin >> a >> b >> c;
  std::cout << (a + b) * c / 2 << std::endl;
  /* */

  return EXIT_SUCCESS;
}


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

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

Compiler output:
a.cc:10:1: error: 'yatsu' does not name a type
   10 | yatsu
      | ^~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cstring>
#include <complex>
#include <stack>
#include <queue>
#include <unordered_map>
#include <map>
#define rep(i, a) for (int i = 0; i < (a); i++)
using namespace std;
using ll = long long int;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'a' was not declared in this scope
   16 |     cin >> a >> b >> h;
      |            ^
a.cc:16:17: error: 'b' was not declared in this scope
   16 |     cin >> a >> b >> h;
      |                 ^
a.cc:16:22: error: 'h' was not declared in this scope
   16 |     cin >> a >> b >> h;
      |                      ^
Language: C++

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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b >> h;
      |   ^~~
a.cc:4:3: error: 'cout' was not declared in this scope
    4 |   cout << (a + b) * h / 2 << endl;
      |   ^~~~
a.cc:4:30: error: 'endl' was not declared in this scope
    4 |   cout << (a + b) * h / 2 << endl;
      |                              ^~~~
Language: C++

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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> a >> b >> h;
      |   ^~~
a.cc:4:3: error: 'cout' was not declared in this scope
    4 |   cout << (a + b) * h / 2 << endl;
      |   ^~~~
a.cc:4:30: error: 'endl' was not declared in this scope
    4 |   cout << (a + b) * h / 2 << endl;
      |                              ^~~~
a.cc:4:35: error: expected '}' at end of input
    4 |   cout << (a + b) * h / 2 << endl;
      |                                   ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:18: error: expected ';' before 'printf'
   10 |   S = ((a+b)*h)/2
      |                  ^
      |                  ;
   11 |     printf("%d\n",S);
      |     ~~~~~~
Language: C++

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

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


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



Compiler output:
main.c:3:15: error: expected declaration specifiers or '...' before string constant
    3 |         scanf("%d",&a);
      |               ^~~~
main.c:3:20: error: expected declaration specifiers or '...' before '&' token
    3 |         scanf("%d",&a);
      |                    ^
main.c:4:15: error: expected declaration specifiers or '...' before string constant
    4 |         scanf("%d",&b);
      |               ^~~~
main.c:4:20: error: expected declaration specifiers or '...' before '&' token
    4 |         scanf("%d",&b);
      |                    ^
main.c:5:15: error: expected declaration specifiers or '...' before string constant
    5 |         scanf("%d",&h);
      |               ^~~~
main.c:5:20: error: expected declaration specifiers or '...' before '&' token
    5 |         scanf("%d",&h);
      |                    ^
main.c:6:16: error: expected declaration specifiers or '...' before string constant
    6 |         printf("%d",(a+b)*h/2);
      |                ^~~~
main.c:6:21: error: expected declaration specifiers or '...' before '(' token
    6 |         printf("%d",(a+b)*h/2);
      |                     ^
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:8:28: error: expected ';' before '}' token
    8 |   cout << (a+b)*h/2 << endl
      |                            ^
      |                            ;
    9 | }
      | ~
Language: C++

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

int main() {
  int N,K,X,Y;
  cin >> X >> Y >>Z;
  int aaa;
  
   aaa=(X+Y)*Z/2;
    
 
  
  
  
  
  
 cout <<aaa << endl;
}


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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: 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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<(A + B) * C / 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:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout<<(A + B) * C / 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;

using VS = vector<string>;    using LL = long long;
using VI = vector<int>;       using VVI = vector<VI>;
using PII = pair<int, int>;   using PLL = pair<LL, LL>;
using VL = vector<LL>;        using VVL = vector<VL>;

#define ALL(a)  begin((a)),end((a))
#define RALL(a) (a).rbegin(), (a).rend()
#define SZ(a) int((a).size())
#define SORT(c) sort(ALL((c)))
#define RSORT(c) sort(RALL((c)))
#define UNIQ(c) (c).erase(unique(ALL((c))), end((c)))
#define FOR(i, s, e) for (int(i) = (s); (i) < (e); (i)++)
#define FORR(i, s, e) for (int(i) = (s); (i) > (e); (i)--)
//#pragma GCC optimize ("-O3") 
#ifdef YANG33
#include "mydebug.hpp"
#else
#define DD(x) 
#endif
const int INF = 1e9;                          const LL LINF = 1e16;
const LL MOD = 1000000007;                    const double PI = acos(-1.0);
int DX[8] = { 0, 0, 1, -1, 1, 1, -1, -1 };    int DY[8] = { 1, -1, 0, 0, 1, -1, 1, -1 };

/* -----  2019/04/04  Problem: ABC 045 A / Link: http://abc045.contest.atcoder.jp/tasks/abc045_a  ----- */


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

	LL a, b, c; cin >> a >> b >> c;
	LL ans = (a + b)*h / 2;


	cout << ans << "\n";

	return 0;
}


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

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

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


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

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

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


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

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

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


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

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

int main(){
  int n, m,o;
  cin >> n >> m >> o;
  cout << ( n + m ) * O / 2;
}

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

#include <iostream>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  int N、K,X,Y;
  cin >> N;
  cin >> K;
  cin >> X;
  cout << (N+K)*X/2<<endl;
  
    return 0;
}


Compiler output:
a.cc:7:7: error: extended character 、 is not valid in an identifier
    7 |   int N、K,X,Y;
      |       ^
a.cc: In function 'int main()':
a.cc:8:10: error: 'N' was not declared in this scope
    8 |   cin >> N;
      |          ^
a.cc:9:10: error: 'K' was not declared in this scope
    9 |   cin >> K;
      |          ^
Language: C

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

typedef long long ll;
#define repi(i, a, b) for(int i = int(a); i < int(b); ++i)
#define rep(i, n) repi(i, 0, n)
#define rerepi(i, a, b) for(int i = int(a)-1; i >= b; --i)
#define rerep(i, n) rerepi(i, n, 0)

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

const long long INF = 1LL << 60;

// ここから開始だよ！
ll a, b, h;

int main() {
	// 呪文エリア
	cin.tie(0);
	ios::sync_with_stdio(false);
	// 詠唱完了

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

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


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

#include "stdafx.h"
#include <iostream>
#include <queue>
using namespace std;

typedef long long ll;
#define repi(i, a, b) for(int i = int(a); i < int(b); ++i)
#define rep(i, n) repi(i, 0, n)
#define rerepi(i, a, b) for(int i = int(a)-1; i >= b; --i)
#define rerep(i, n) rerepi(i, n, 0)

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

const long long INF = 1LL << 60;

// ここから開始だよ！
ll a, b, h;

int main() {
	// 呪文エリア
	cin.tie(0);
	ios::sync_with_stdio(false);
	// 詠唱完了

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

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


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

#include <iostream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <stack>
#include <math.h>
#define rep(i, n) for(int i = 0; i < (n); ++i)
using namespace std;

template<class T> inline bool chmax(T& a, T b){ if(a < b) { a=b; return 1; }return 0;}
template<class T> inline bool chmin(T& a, T b){ if(a > b) { a=b; return 1; }return 0;}


const long long INF = 1LL << 60;

//bucket1
// bool ch[10] = {0};
// bool check(int n){
//     while(n!=0){
//         if(ch[n%10]) return false;
//         n /= 10;
//     }
//     return true;
// }



// --------write my code!!!!!----------//


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


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

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

int main(){
int a, b, h;
  cin >> a >> b >> c;
  cout << (a + b) * c / 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++

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 h = sc.nextInt();
	System.out.println((a+b)*h/2);
    }
}


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

#include<iostream>
#include<cmath>
#include<vector>
#include<set>
#include<algorithm>
#include<tuple>
#include<utility>
#include<cctype>
#include<climits>
#include<map>
#include<queue>
#include<functional>
#include <ios>
#include <iomanip>

using namespace std;
template<class T> void chmax(T& a, T b) {if(a < b){a=b;}}
template<class T> void chmin(T& a, T b) {if(a > b){a=b;}}

#define REP(i,a,n) for(int i=a;i<n;++i)
#define RUP(a,b) ((a+b-1)/(b))
#define ENT "\n"
#define REV(v) reverse(v.begin(),v.end())
#define SRTV(v) sort(v.begin(),v.end())
#define SRTAG(a,n) sort(a,a+n,greater<>())
#define MOD 1000000007

typedef long long ll;
typedef tuple<int,int,bool> Tb;
typedef tuple<ll,ll,ll> Tl;



int atcoder(){
    //入力
    ll a,b,c;
    cin >> n >> k;
    cout << (a+b)*c/2 << ENT;
    
    return 0;
}

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


Compiler output:
a.cc: In function 'int atcoder()':
a.cc:37:12: error: 'n' was not declared in this scope
   37 |     cin >> n >> k;
      |            ^
a.cc:37:17: error: 'k' was not declared in this scope
   37 |     cin >> n >> k;
      |                 ^
Language: C++

#include<stream>
#include<stdio.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:9: fatal error: stream: No such file or directory
    1 | #include<stream>
      |         ^~~~~~~~
compilation terminated.
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:7:17: error: 'h' was not declared in this scope
    7 |   cout << (a+b)*h/2 << endl;
      |                 ^
Language: C

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

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)*h/2);}
      | ^~~~
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)*h/2);}
      |             ^~~~~
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)*h/2);}
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)*h/2);}
      |             ^~~~~
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)*h/2);}
      |                                      ^~~~~~
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: 'h' undeclared (first use in this function)
    1 | main(a,b,c){scanf("%d%d%d",&a,&b,&c);printf("%d",(a+b)*h/2);}
      |                                                        ^
main.c:1:56: note: each undeclared identifier is reported only once for each function it appears in
Language: C

n = int(input())
h = list(map(int,input().split()))

res = 0
pre = 0
h.insert(0,0)

for i in range(n):
    if h[i+1]>h[i]:
        res += h[i+1]-h[i]
else:
    print(res)


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

#include <iostream>
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:7:15: error: 'h' was not declared in this scope
    7 |   cout<<(a+b)*h/2<<endl;
      |               ^