criyle/codenet-compile-errors huggingface dataset:
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:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a>>b>>c;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<(a+b)*h/2<<endl;
      |   ^~~~
a.cc:7:15: error: 'h' was not declared in this scope
    7 |   cout<<(a+b)*h/2<<endl;
      |               ^
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |   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: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a >> b >> h;
      |      ^~
      |      ;
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<string>
#include<vector>
using namespace std;

int main(void){
	ios::sync_with_stdio(false); cin.tie(0);
	
	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:14:21: error: 'h' was not declared in this scope
   14 |         cout<<(a+b)*h/2<<endl;
      |                     ^
Language: C

#include<stdio.h>

int main(){

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

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

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:33: error: 'c' undeclared (first use in this function)
    6 |     scanf("%d\n%d\n%d",&a, &b, &c);
      |                                 ^
main.c:6:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

#include<iostream>
#include<string>
#include<vector>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<map>
using namespace std;
#define ll long long
int main(){
    int a,b,c,;
    cin >> a >> b >> c;
    cout << (a+b)*c/2;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected unqualified-id before ';' token
   12 |     int a,b,c,;
      |               ^
Language: C++

#include<iostream>

int main(void)
{
  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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (a + b) * h / 2;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>

int main(void)
{
  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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout >> (a + b) * h / 2;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
  public static void main(string[] args){
                          ^
  symbol:   class string
  location: class Main
1 error
Language: C

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

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(int a,int b,int h){
      | ^~~~
main.c: In function 'main':
main.c:2:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(int a,int b,int h){
main.c:2:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
main.c:2:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:33: error: 'c' undeclared (first use in this function)
    2 |         scanf("%d %d %d",&a,&b,&c);
      |                                 ^
main.c:2:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 |         printf("%d\n", (a + b) * h / 2);
      |         ^~~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b,h){
      | ^~~~
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 'h' defaults to 'int' [-Wimplicit-int]
main.c:2:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    2 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b,h){
main.c:2:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    2 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
main.c:2:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:2:33: error: 'c' undeclared (first use in this function)
    2 |         scanf("%d %d %d",&a,&b,&c);
      |                                 ^
main.c:2:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 |         printf("%d\n", (a + b) * h / 2);
      |         ^~~~~~
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:3:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

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

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

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include,stdio.h>
      |         ^
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d %d %d",&a,&b,&h);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include,stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d %d %d",&a,&b,&h);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d\n",(a+b)*h/2);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:3: error: expected declaration or statement at end of input
    6 |   return 0;
      |   ^~~~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
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 >> 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:6:3: 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:27: 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/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main(voud)
      |     ^~~~
a.cc:4:10: error: 'voud' was not declared in this scope; did you mean 'void'?
    4 | int main(voud)
      |          ^~~~
      |          void
Language: C++

#include <iostream>
#include <string>
#include <utility>
#include <algorithm>
#include <map>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <queue>
#include <stack>

using namespace std;

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = n;i >= m;i--)
#define REPO(i, n) for(int i = 1;i <= n;i++)
#define ll long long
#define INF 1999999999
#define MINF -1999999999
#define ALL(n) n.begin(),n.end()

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

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

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 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.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:15: error: expected ':' before 'static'
    6 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:6:33: error: 'String' has not been declared
    6 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:6:42: error: expected ',' or '...' before 'args'
    6 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:17: error: 'Scanner' was not declared in this scope
    7 |                 Scanner sc = new Scanner(System.in);                    //文字の入力
      |                 ^~~~~~~
a.cc:8:24: error: 'sc' was not declared in this scope
    8 |                 int a= sc.nextInt();
      |                        ^~
a.cc:11:9: error: 'System' was not declared in this scope
   11 |         System.out.println((a+b)*h/2);
      |         ^~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> plglg;
typedef pair<double, ll> pdlg;
typedef tuple<int, int, int> tiii;
typedef tuple<ll, ll, ll> tlglglg;
typedef tuple<double, double, double> tddd;
static const int giga pow(10,9);

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

  return 0;
}

Compiler output:
a.cc:15:23: error: expected initializer before 'pow'
   15 | static const int giga pow(10,9);
      |                       ^~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> 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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << (a+b)*2 / 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: expected primary-expression before '<<' token
    6 |     cout << (a+b)*2 / 2; <<endl;
      |                          ^~
a.cc:6:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << (a+b)*2 / 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>
#define FOR(i, n) for(int i = 0;i <n;i++)
#define RFOR(i, n) for(int i = n;i >= 0;i--)
#define REP(i, m, n) for(int i = m;i < n;i++)
#define RREP(i, m, n) for(int i = m;i >= n;i--)
#define INF 999999999

using namespace std;
int main(int argc, char const *argv[])
{
 int a,b,h;
 cin >>a>>b>>h;
 h / 2= (a+b)/h;
 cout<<h<<endl;

return 0;

}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:13:4: error: lvalue required as left operand of assignment
   13 |  h / 2= (a+b)/h;
      |  ~~^~~
Language: C++

#include <iostream>
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++

#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <cmath>
#include <algorithm>
#include <utility>
#include <functional>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const int MOD = 1000000007;
const double EPS = 1e-9;


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

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

  return 0;
}
#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <cmath>
#include <algorithm>
#include <utility>
#include <functional>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const int MOD = 1000000007;
const double EPS = 1e-9;


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

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

  return 0;
}


Compiler output:
a.cc:44:11: error: redefinition of 'const int MOD'
   44 | const int MOD = 1000000007;
      |           ^~~
a.cc:15:11: note: 'const int MOD' previously defined here
   15 | const int MOD = 1000000007;
      |           ^~~
a.cc:45:14: error: redefinition of 'const double EPS'
   45 | const double EPS = 1e-9;
      |              ^~~
a.cc:16:14: note: 'const double EPS' previously defined here
   16 | const double EPS = 1e-9;
      |              ^~~
a.cc:48:5: error: redefinition of 'int main()'
   48 | int main()
      |     ^~~~
a.cc:19:5: note: 'int main()' previously defined here
   19 | int main()
      |     ^~~~
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:7:29: error: expected '}' at end of input
    7 |   cout << (a+b)*h/2 << endl;
      |                             ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: C

#include <iostream>
using namespace std;

int main()
{
	double x, y, h, area;
	
	cin >> x >> y >> h;
	area = (x+y)*h/2;
	cout << area;

	return 0;
}


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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: 'nedl' was not declared in this scope
    8 |   cout << (a + b) * h / 2 << nedl;
      |                              ^~~~
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:7:32: error: expected ';' before '}' token
    7 |   cout << a * b * h / 2 << endl
      |                                ^
      |                                ;
    8 | }
      | ~
Language: C++

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

Compiler output:
a.cc:4:17: error: extended character 　 is not valid in an identifier
    4 |                 int　a, b, c;
      |                 ^
a.cc: In function 'int main()':
a.cc:4:17: error: 'int\U00003000a' was not declared in this scope
    4 |                 int　a, b, c;
      |                 ^~~~~~
a.cc:4:25: error: 'b' was not declared in this scope
    4 |                 int　a, b, c;
      |                         ^
a.cc:4:28: error: 'c' was not declared in this scope
    4 |                 int　a, b, c;
      |                            ^
a.cc:5:24: error: 'a' was not declared in this scope
    5 |                 cin >> a >> b >> c;
      |                        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'inta' was not declared in this scope; did you mean 'int'?
    4 |                 inta, b, c;
      |                 ^~~~
      |                 int
a.cc:4:23: error: 'b' was not declared in this scope
    4 |                 inta, b, c;
      |                       ^
a.cc:4:26: error: 'c' was not declared in this scope
    4 |                 inta, b, c;
      |                          ^
a.cc:5:24: error: 'a' was not declared in this scope
    5 |                 cin >> a >> b >> c;
      |                        ^
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: 'h' was not declared in this scope
    6 |         cin >> a >> b >> h;
      |                          ^
a.cc:7:39: error: expected ';' before 'return'
    7 |         cout << (a+b) * h /2 << endl;a
      |                                       ^
      |                                       ;
    8 |         return 0;
      |         ~~~~~~
Language: C++

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cstring>
using namespace std;

int main(int argc, char *argv[])
{
	int a, b, c;
	cin >> a >> b >> c;

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

	return 0;
}


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

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

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

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

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

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

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

#include <cstdio>
int main()
{
int a = 0,b = 0,h = 0,s = 0;
s=(a+b)*h/2

scanf ("%d",&a);
scanf ("%d",&b);
scanf ("%d",&h);
printf ("%d\n",s) ;
return 0;
}

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

#include <cstdio>
int main()
{
int a = 0,b = 0,h = 0,s = 0;
s=(a+b)*h/2

scanf ("%d",a);
scanf ("%d",b);
scanf ("%d",h);
printf ("%d\n",s) ;
return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:7: warning: missing terminating " character
    6 | scanf("%d%d%d,&a&b&h);
      |       ^
main.c:6:7: error: missing terminating " character
    6 | scanf("%d%d%d,&a&b&h);
      |       ^~~~~~~~~~~~~~~~
main.c:8:14: error: expected ')' before ';' token
    8 | s=(a+b)*h*1/2;
      |              ^
      |              )
main.c:6:6: note: to match this '('
    6 | scanf("%d%d%d,&a&b&h);
      |      ^
main.c:8:2: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    8 | s=(a+b)*h*1/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:10:10: error: expected ';' before '}' token
   10 | return 0;
      |          ^
      |          ;
   11 | }
      | ~
Language: C++

include<stdio.h>

int main(void){

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<stdio.h>
      | ^~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D>,  &a, &b, &h);
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”,  &a, &b, &h);
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D>,  &a, &b, &h);
      |                            ^~~~~~~~
main.c:8:16: error: stray '\342' in program
    8 |        printf (<U+201C>%f<U+201D>,s);
      |                ^~~~~~~~
main.c:8:17: error: expected expression before '%' token
    8 |        printf (“%f”,s);
      |                 ^
main.c:8:19: error: stray '\342' in program
    8 |        printf (<U+201C>%f<U+201D>,s);
      |                          ^~~~~~~~
Language: C

#include<stdio.h>
Int main ()
    {
       Int a,b,h;
       float s；
       scanf(“%d%d%d”，&a，&b，&c）；
       s=（a+b）*h/2；
       printf（“%f”,s）；
        return 0;
                       }

Compiler output:
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'?
    2 | Int main ()
      | ^~~
      | int
main.c: In function 'main':
main.c:4:8: error: unknown type name 'Int'; did you mean 'int'?
    4 |        Int a,b,h;
      |        ^~~
      |        int
main.c:6:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |        ^~~~~
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |                            ^~~~~~~~
main.c:7:20: error: invalid suffix "；" on integer constant
    7 |        s=（a+b）*h/2；
      |                    ^~~
main.c:8:16: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                      ^~~~~~~~
main.c:8:19: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                                ^~~~~~~~
main.c:9:18: error: expected ';' before '}' token
    9 |         return 0;
      |                  ^
      |                  ;
   10 |                        }
      |                        ~
Language: Java

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:2: error: illegal character: '#'
#include <vector>
^
Main.java:4: error: class, interface, enum, or record expected
int a,b,c;
^
Main.java:6: error: not a statement
    cin>>a>>b>>c;
             ^
Main.java:7: error: not a statement
    cout<< (a+b)*c/2<<endl;
                    ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
int  main(){
^
  (use --enable-preview to enable unnamed classes)
7 errors
Language: C

#include<stdio.h>
int main ()
    {
       int a,b,h;
       float s；
       scanf(“%d%d%d”，&a，&b，&c）；
       s=（a+b）*h/2；
       printf（“%f”，s）；
        return0;
                       }

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |        ^~~~~
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |                            ^~~~~~~~
main.c:7:20: error: invalid suffix "；" on integer constant
    7 |        s=（a+b）*h/2；
      |                    ^~~
main.c:8:16: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D><U+FF0C>s<U+FF09><U+FF1B>
      |                      ^~~~~~~~
main.c:8:19: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D><U+FF0C>s<U+FF09><U+FF1B>
      |                                ^~~~~~~~
main.c:9:17: error: expected ';' before '}' token
    9 |         return0;
      |                 ^
      |                 ;
   10 |                        }
      |                        ~
Language: C

#include<stdio.h>
int main ()
    {
       int a,b,h;
       float s；
       scanf(“%d%d%d”，&a，&b，&c）；
       s=（a+b）*h/2；
       printf（“%f”,s）；
        return 0;
                       }

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |        ^~~~~
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |                            ^~~~~~~~
main.c:7:20: error: invalid suffix "；" on integer constant
    7 |        s=（a+b）*h/2；
      |                    ^~~
main.c:8:16: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                      ^~~~~~~~
main.c:8:19: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                                ^~~~~~~~
main.c:9:18: error: expected ';' before '}' token
    9 |         return 0;
      |                  ^
      |                  ;
   10 |                        }
      |                        ~
Language: C

#include<stdio.h>
Int main ()
    {
       Int a,b,h;
       float s；
       scanf(“%d%d%d”，&a，&b，&c）；
       s=（a+b）*h/2；
       printf（“%f”,s）；
        return0;
                       }

Compiler output:
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'?
    2 | Int main ()
      | ^~~
      | int
main.c: In function 'main':
main.c:4:8: error: unknown type name 'Int'; did you mean 'int'?
    4 |        Int a,b,h;
      |        ^~~
      |        int
main.c:6:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |        ^~~~~
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |                            ^~~~~~~~
main.c:7:20: error: invalid suffix "；" on integer constant
    7 |        s=（a+b）*h/2；
      |                    ^~~
main.c:8:16: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                      ^~~~~~~~
main.c:8:19: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                                ^~~~~~~~
main.c:9:17: error: expected ';' before '}' token
    9 |         return0;
      |                 ^
      |                 ;
   10 |                        }
      |                        ~
Language: C

#include<stdio.h>
int main ()
    {
       int a,b,h;
       float s;
       scanf(“%d%d%d”,  &a, &b, &h)  ;
       s= (a+b) *h/2;
       printf (“%f”,s) ;
         return0;
                      }

Compiler output:
main.c: In function 'main':
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D>,  &a, &b, &h)  ;
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”,  &a, &b, &h)  ;
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D>,  &a, &b, &h)  ;
      |                            ^~~~~~~~
main.c:8:16: error: stray '\342' in program
    8 |        printf (<U+201C>%f<U+201D>,s) ;
      |                ^~~~~~~~
main.c:8:17: error: expected expression before '%' token
    8 |        printf (“%f”,s) ;
      |                 ^
main.c:8:19: error: stray '\342' in program
    8 |        printf (<U+201C>%f<U+201D>,s) ;
      |                          ^~~~~~~~
main.c:9:10: error: 'return0' undeclared (first use in this function)
    9 |          return0;
      |          ^~~~~~~
main.c:9:10: 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;
       float s；
       scanf(“%d%d%d”，&a，&b，&c）；
       s=（a+b）*h/2；
       printf（“%f”,s）；
        return 0;
                       }

Compiler output:
main.c: In function 'main':
main.c:4:8: error: unknown type name 'Int'; did you mean 'int'?
    4 |        Int a,b,h;
      |        ^~~
      |        int
main.c:6:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |        ^~~~~
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |                            ^~~~~~~~
main.c:7:20: error: invalid suffix "；" on integer constant
    7 |        s=（a+b）*h/2；
      |                    ^~~
main.c:8:16: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                      ^~~~~~~~
main.c:8:19: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                                ^~~~~~~~
main.c:9:18: error: expected ';' before '}' token
    9 |         return 0;
      |                  ^
      |                  ;
   10 |                        }
      |                        ~
Language: C

#include<stdio.h>
Int main ()
    {
       int a,b,h;
       float s；
       scanf(“%d%d%d”，&a，&b，&c）；
       s=（a+b）*h/2；
       printf（“%f”,s）；
        return 0;
                       }

Compiler output:
main.c:2:1: error: unknown type name 'Int'; did you mean 'int'?
    2 | Int main ()
      | ^~~
      | int
main.c: In function 'main':
main.c:6:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |        ^~~~~
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”，&a，&b，&c）；
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D><U+FF0C>&a<U+FF0C>&b<U+FF0C>&c<U+FF09><U+FF1B>
      |                            ^~~~~~~~
main.c:7:20: error: invalid suffix "；" on integer constant
    7 |        s=（a+b）*h/2；
      |                    ^~~
main.c:8:16: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                      ^~~~~~~~
main.c:8:19: error: stray '\342' in program
    8 |        printf<U+FF08><U+201C>%f<U+201D>,s<U+FF09><U+FF1B>
      |                                ^~~~~~~~
main.c:9:18: error: expected ';' before '}' token
    9 |         return 0;
      |                  ^
      |                  ;
   10 |                        }
      |                        ~
Language: C

#include<stdio.h>
int main ()
    {
       int a,b,h;
       float s;
       scanf(“%d%d%d”,  &a, &b, &h);
       s= (a+b) *h/2;
       printf (“%f”,s);
         return0;
                      }

Compiler output:
main.c: In function 'main':
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D>,  &a, &b, &h);
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”,  &a, &b, &h);
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D>,  &a, &b, &h);
      |                            ^~~~~~~~
main.c:8:16: error: stray '\342' in program
    8 |        printf (<U+201C>%f<U+201D>,s);
      |                ^~~~~~~~
main.c:8:17: error: expected expression before '%' token
    8 |        printf (“%f”,s);
      |                 ^
main.c:8:19: error: stray '\342' in program
    8 |        printf (<U+201C>%f<U+201D>,s);
      |                          ^~~~~~~~
main.c:9:10: error: 'return0' undeclared (first use in this function)
    9 |          return0;
      |          ^~~~~~~
main.c:9:10: 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;
       float s;
       scanf(“%d%d%d”,  &a, &b, &h);
       s=(a+b) *h/2;
       printf(“%f”,s);
         return 0;
                         }

Compiler output:
main.c: In function 'main':
main.c:6:14: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D>,  &a, &b, &h);
      |              ^~~~~~~~
main.c:6:15: error: expected expression before '%' token
    6 |        scanf(“%d%d%d”,  &a, &b, &h);
      |               ^
main.c:6:21: error: stray '\342' in program
    6 |        scanf(<U+201C>%d%d%d<U+201D>,  &a, &b, &h);
      |                            ^~~~~~~~
main.c:8:15: error: stray '\342' in program
    8 |        printf(<U+201C>%f<U+201D>,s);
      |               ^~~~~~~~
main.c:8:16: error: expected expression before '%' token
    8 |        printf(“%f”,s);
      |                ^
main.c:8:18: error: stray '\342' in program
    8 |        printf(<U+201C>%f<U+201D>,s);
      |                         ^~~~~~~~
Language: C++

{
#include <stdio.h> 
 
int main() 
{ 
 float d1,d2,h; 
 scanf("%f%f%f",&d1,&d2,&h); //输入上底、下底以及高 
 printf("%f",(d1+d2)/2*h);   //输出面积 
 return 0; 
} 

Compiler output:
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
Language: C++

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

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

#include<iostream>
using namespace std;
int main()
{
int a，b，h;
cin>>b>>h>>a
cout<<''s=''<<(a+b)*h/2.0<<endl;
return 0;
}   

Compiler output:
a.cc:7:7: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~
a.cc:7:11: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |           ^~
a.cc: In function 'int main()':
a.cc:6:6: error: 'b' was not declared in this scope
    6 | cin>>b>>h>>a
      |      ^
a.cc:6:9: error: 'h' was not declared in this scope
    6 | cin>>b>>h>>a
      |         ^
a.cc:6:12: error: 'a' was not declared in this scope
    6 | cin>>b>>h>>a
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:8: warning: missing terminating " character
    6 | printf("a,b,h”);
      |        ^
main.c:6:8: error: missing terminating " character
    6 | printf("a,b,h”);
      |        ^~~~~~~~~
main.c:7:27: error: expected ')' before ';' token
    7 | scanf("%f %f %f",&a,&b,&c);
      |                           ^
      |                           )
main.c:6:7: note: to match this '('
    6 | printf("a,b,h”);
      |       ^
main.c:7:1: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    7 | scanf("%f %f %f",&a,&b,&c);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
      | |
      | int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:16: error: expected ';' before '}' token
    9 | printf("%f",s);
      |                ^
      |                ;
   10 | }
      | ~
Language: C++

#include 
int main(void)
{
int a,b,h,c; 
printf("a,b,h:"); 
scanf("%d%d%d",&a,&b,&h); 
c=a*b; 
printf("the length=%d,the width=%d,the height=h\nThe area=%d\n",a,b,h); 
return 0; 
}

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

#include<iostream>
using namespace std;
int main()
{
int a，b，h;
cin>>b>>a>>h;
cout<<''s=''<<(a+b)*h/2.0<<endl;
return 0;
}   

Compiler output:
a.cc:7:7: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~
a.cc:7:11: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |           ^~
a.cc: In function 'int main()':
a.cc:6:6: error: 'b' was not declared in this scope
    6 | cin>>b>>a>>h;
      |      ^
a.cc:6:9: error: 'a' was not declared in this scope
    6 | cin>>b>>a>>h;
      |         ^
a.cc:6:12: error: 'h' was not declared in this scope
    6 | cin>>b>>a>>h;
      |            ^
a.cc:7:7: error: unable to find character literal operator 'operator""s' with 'char' argument
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a，b，h;
cin>>a>>b>>h;
cout<<''s=''<<(a+b)*h/2.0<<endl;
return 0;
}   

Compiler output:
a.cc:7:7: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~
a.cc:7:11: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |           ^~
a.cc: In function 'int main()':
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a>>b>>h;
      |      ^
a.cc:6:9: error: 'b' was not declared in this scope
    6 | cin>>a>>b>>h;
      |         ^
a.cc:6:12: error: 'h' was not declared in this scope
    6 | cin>>a>>b>>h;
      |            ^
a.cc:7:7: error: unable to find character literal operator 'operator""s' with 'char' argument
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
int a，b，h;
cin>>a>>b>>h;
cout<<''s=''<<(a+b)*h/2.0<<endl;
return 0;
}

Compiler output:
a.cc:7:7: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~
a.cc:7:11: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |           ^~
a.cc: In function 'int main()':
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a>>b>>h;
      |      ^
a.cc:6:9: error: 'b' was not declared in this scope
    6 | cin>>a>>b>>h;
      |         ^
a.cc:6:12: error: 'h' was not declared in this scope
    6 | cin>>a>>b>>h;
      |            ^
a.cc:7:7: error: unable to find character literal operator 'operator""s' with 'char' argument
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~
Language: C++

#include 
int main(void)
{
int a,b,h,c; 
printf("a,b,h"); 
scanf("%d%d%d",&a,&b,&h); 
c=a*b; 
printf("the length=%d,the width=%d,the height=h\nThe area=%d\n",a,b,h); 
return 0; 
}

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

#include<iostream>
using namespace std;
int main()
{
int a，b，h;
cin>>a>>b,h;
cout<<''s=''<<(a+b)*h/2.0<<endl;
return 0;
}

Compiler output:
a.cc:7:7: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~
a.cc:7:11: error: empty character constant
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |           ^~
a.cc: In function 'int main()':
a.cc:6:6: error: 'a' was not declared in this scope
    6 | cin>>a>>b,h;
      |      ^
a.cc:6:9: error: 'b' was not declared in this scope
    6 | cin>>a>>b,h;
      |         ^
a.cc:6:11: error: 'h' was not declared in this scope
    6 | cin>>a>>b,h;
      |           ^
a.cc:7:7: error: unable to find character literal operator 'operator""s' with 'char' argument
    7 | cout<<''s=''<<(a+b)*h/2.0<<endl;
      |       ^~~