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

#include<stdio.h>
int main(void){
  int H,W,n,w,black,white;
  scanf("%d %d",&H,&W);
  scanf("%d %d",&h,&w);
  black=h*W+w*(H-h);
  white=H*W-black;
  printf("%d",white);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: 'h' undeclared (first use in this function)
    5 |   scanf("%d %d",&h,&w);
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

#define	H	20
#define	W	20

int main(void){

	int squ[H][W];
	int i,j;
	int h,w;
	int h_1,w_1;
	int cnt=0;
	scanf("%d %d",&h,&w);
	for(i=0;i<h;i++){
		for(j=0;j<w;j++){
			squ[i][j]=0;
		}
	}
	scanf("%d %d",&h_1,&h_2);
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;j++){
			squ[i][j]=1;
		}
	}
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;j++){
			if(squ[i][j]==1)	cnt++;
		}
	}
	printf("%d",cnt);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:29: error: 'h_2' undeclared (first use in this function); did you mean 'h_1'?
   19 |         scanf("%d %d",&h_1,&h_2);
      |                             ^~~
      |                             h_1
main.c:19:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

#define	H	20
#define	W	20

int main(void){

	int squ[H][W];
	int i,j;
	int h,w;
	int h_1,w_1;
	int cnt=0;
	scanf("%d %d",&h,&w);
	for(i=0;i<h;i++){
		for(j=0;j<w;j++){
			squ[i][j]=0;
		}
	}
	scanf("%d %d",&h_1,&h_2);
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;w1++){
			squ[i][j]=1;
		}
	}
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;j++){
			if(squ[i][j]==1)	cnt++;
		}
	}
	printf("%d",cnt);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:29: error: 'h_2' undeclared (first use in this function); did you mean 'h_1'?
   19 |         scanf("%d %d",&h_1,&h_2);
      |                             ^~~
      |                             h_1
main.c:19:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:31: error: 'w1' undeclared (first use in this function); did you mean 'w_1'?
   21 |                 for(j=0;j<w_1;w1++){
      |                               ^~
      |                               w_1
Language: C

#include<stdio.h>

#define	H	20
#define	W	20

int main(void){

	int squ[H][W];
	int i,j;
	int h,w;
	int h_1,w_1;
	int cnt=0;
	scanf("%d %d",&h,&w);
	for(i=0;i<h;i++){
		for(j=0;j<w;j++){
			squ[i][j]=0;
		}
	}
	scanf("%d %d",&h_1,&h_2);
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;w1++){
			squ[i][j]=1;
		}
	}
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;j++){
			if(squ[i][j]==1)	cnt++;
		}
	}
	print("%d",cnt);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:29: error: 'h_2' undeclared (first use in this function); did you mean 'h_1'?
   19 |         scanf("%d %d",&h_1,&h_2);
      |                             ^~~
      |                             h_1
main.c:19:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:31: error: 'w1' undeclared (first use in this function); did you mean 'w_1'?
   21 |                 for(j=0;j<w_1;w1++){
      |                               ^~
      |                               w_1
main.c:30:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   30 |         print("%d",cnt);
      |         ^~~~~
      |         printf
Language: C

#include<stdio.h>

#define	H	20
#define	W	20

int main(void){

	int squ[H][W];
	int i,j;
	int h,w;
	int h_1,w_2;
	int cnt=0;
	scanf("%d %d",&h,&w);
	for(i=0;i<h;i++){
		for(j=0;j<w;j++){
			squ[i][j]=0;
		}
	}
	scanf("%d %d",&h_1,&h_2);
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;w++){
			squ[i][j]=1;
		}
	}
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;w++){
			if(squ[i][j]==1)	cnt++;
		}
	}
	printf("%d",cnt);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:29: error: 'h_2' undeclared (first use in this function); did you mean 'w_2'?
   19 |         scanf("%d %d",&h_1,&h_2);
      |                             ^~~
      |                             w_2
main.c:19:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:27: error: 'w_1' undeclared (first use in this function); did you mean 'w_2'?
   21 |                 for(j=0;j<w_1;w++){
      |                           ^~~
      |                           w_2
Language: C

#include<stdio.h>

#define	H	20
#define	W	20

int main(void){

	int squ[H][W];
	int i,j;
	int h,w;
	int h_1,w_1;
	int cnt=0;
	scanf("%d %d",&h,&w);
	for(i=0;i<h;i++){
		for(j=0;j<w;j++){
			squ[i][j]=0;
		}
	}
	scanf("%d %d",&h_1,&w_1);
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;w++){
			squ[i][j]=1;
		}
	}
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;w++){
			if(squ[i][j]==1)	cnt++;
		}
	}
	print("%d",cnt);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   30 |         print("%d",cnt);
      |         ^~~~~
      |         printf
Language: C

#include<stdio.h>

#define	H	20
#define	W	20

int main(void){

	int squ[H][W];
	int i,j;
	int h,w;
	int h_1,w_2;
	int cnt=0;
	scanf("%d %d",&h,&w);
	for(i=0;i<h;i++){
		for(j=0;j<w;j++){
			squ[i][j]=0;
		}
	}
	scanf("%d %d",&h_1,&h_2);
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;w++){
			squ[i][j]=1;
		}
	}
	for(i=0;i<h_1;i++){
		for(j=0;j<w_1;w++){
			if(squ[i][j]==1)	cnt++;
		}
	}
	print("%d",cnt);


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:29: error: 'h_2' undeclared (first use in this function); did you mean 'w_2'?
   19 |         scanf("%d %d",&h_1,&h_2);
      |                             ^~~
      |                             w_2
main.c:19:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:27: error: 'w_1' undeclared (first use in this function); did you mean 'w_2'?
   21 |                 for(j=0;j<w_1;w++){
      |                           ^~~
      |                           w_2
main.c:30:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   30 |         print("%d",cnt);
      |         ^~~~~
      |         printf
Language: C

#include <stdio.h>
int main(){
  int H,W;
  int h,w;
  scanf("%d %d",&H,&W);
  scanf("%d %d",&h,&w);

  int all = H * W;
  int cut = h*W + w*H - h*w
  int result = all - cut;

  printf("%d",result);

  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected ',' or ';' before 'int'
   10 |   int result = all - cut;
      |   ^~~
main.c:12:15: error: 'result' undeclared (first use in this function)
   12 |   printf("%d",result);
      |               ^~~~~~
main.c:12:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(){
  int H,W;
  int h,w;
  scanf("%d %d",&H,&w);
  scanf("%d %d",&h,&w);

  int result = H * W;
  int cut = h*W + w*H - h*w
  result = result - cut;

  printf("%d",result);

  return 0;

}



Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected ',' or ';' before 'result'
   10 |   result = result - cut;
      |   ^~~~~~
Language: C++

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

int main(){
    int H,W h,w;
    cin >> H >> W >> h >> w;
    cout << (H-h)*(W-w) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: expected initializer before 'h'
    5 |     int H,W h,w;
      |             ^
a.cc:6:17: error: 'W' was not declared in this scope
    6 |     cin >> H >> W >> h >> w;
      |                 ^
a.cc:6:22: error: 'h' was not declared in this scope
    6 |     cin >> H >> W >> h >> w;
      |                      ^
a.cc:6:27: error: 'w' was not declared in this scope
    6 |     cin >> H >> W >> h >> w;
      |                           ^
Language: C

#include <stdio.h>

int main() {
  int m, n, c;
  scanf("%d %d", &m, &n);
  int cnt = 0;

  int b[25];
  for (int i = 0; i < m; i++) {
    scanf("%d", &b[i]);
  }

  int a[25][25];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < m; j++) {
      scanf("%d", &a[i][j]);
    }
  }

  for (int i = 0; i < n; i++) {
    int sum = 0;
    // scanf("%d", &b[i]);

    for (int j = 0; j < m; j++) {
      sum += a[i][j] * b[j];
      // scanf("%d", &a[i][j]);
    }

    sum += c;
    if (sum > 0) {
      cnt++
    }
  }
  printf("%d\n", cnt);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:31:12: error: expected ';' before '}' token
   31 |       cnt++
      |            ^
      |            ;
   32 |     }
      |     ~
Language: C++

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

int main(){
  int H, W;
  int h, w,
  cin >> H >> W >> h >> w;
  
  cout << H*W-h*W-w*H << endl;
}

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

#include<iosteam>;
using namespace std;
int main(){
int H,W,h,w;
cin >> H >> W >> h >> w;
cout << (H-h)*(W-w) << endl;
  return 0;
}


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

#include<iosteam>
using namespace std;
int main(){
int H,W,h,w;
cin >> H >> W >> h >> w;
cout << (H-h)*(W-w) << endl;
  return 0;
}

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

#include<iostream>
using namespace std;

int main(){
  int H>>W;
  int h>>w;
  
  cin H>>W;
  cin h>>w;
  
  cout<<H*W-H*w-W*h+h*W<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected initializer before '>>' token
    5 |   int H>>W;
      |        ^~
a.cc:6:8: error: expected initializer before '>>' token
    6 |   int h>>w;
      |        ^~
a.cc:8:6: error: expected ';' before 'H'
    8 |   cin H>>W;
      |      ^~
      |      ;
a.cc:9:6: error: expected ';' before 'h'
    9 |   cin h>>w;
      |      ^~
      |      ;
a.cc:11:9: error: 'H' was not declared in this scope
   11 |   cout<<H*W-H*w-W*h+h*W<<endl;
      |         ^
a.cc:11:11: error: 'W' was not declared in this scope
   11 |   cout<<H*W-H*w-W*h+h*W<<endl;
      |           ^
a.cc:11:15: error: 'w' was not declared in this scope
   11 |   cout<<H*W-H*w-W*h+h*W<<endl;
      |               ^
a.cc:11:19: error: 'h' was not declared in this scope
   11 |   cout<<H*W-H*w-W*h+h*W<<endl;
      |                   ^
Language: C

#include<stdio.h>

int main(void)
{
  int H,W,h,w,ans;
  scanf("%d%d%d%d",&H,&W,&h,&w);
  ans = (H-h)*(W-w);
  printf("%d",);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before ')' token
    8 |   printf("%d",);
      |               ^
Language: C++

#inlcude <iostream>
using namespace std;
int main(){
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	cout<<(a-c)*(b-d);
}
//FELAROSSO 2019

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

#include <stdio.h>
int main(void){
  int H,W,h,w;
  scanf("%d%d%d%d",&H,&W,&h,&w);
  a=(H-h)*(W-w);
  printf("%d",a);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'a' was not declared in this scope
    5 |   a=(H-h)*(W-w);
      |   ^
Language: Java

import java.util.*;
 
public class a0125 {
 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int H = sc.nextInt();
        int W = sc.nextInt();
        int h = sc.nextInt();
        int w = sc.nextInt();
 
        int result = (H-h)*(W-w);
        System.out.println(result);
        sc.close();
    }
}

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

#include <stdio.h>

int main() {
  int wid = 0, hei = 0, w = 0, h = 0;
  scanf("%d %d\n%d %d", &wid, %hei, &w, &h);
  printf("%d\n", (wid-w)*(hei-h));
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:31: error: expected expression before '%' token
    5 |   scanf("%d %d\n%d %d", &wid, %hei, &w, &h);
      |                               ^
Language: C++

#include<iostream>
using namespace std;

int main{
  
  int H,W,h,w;
  cin >> H >> W >> h >> w;
  
  H = H - h;
  W = W - w;
  
  cout << H * W;
  
  return 0;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int H,W,h,w;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> H >> W >> h >> w;
      |   ^~~
a.cc:9:3: error: 'H' does not name a type
    9 |   H = H - h;
      |   ^
a.cc:10:3: error: 'W' does not name a type
   10 |   W = W - w;
      |   ^
a.cc:12:3: error: 'cout' does not name a type
   12 |   cout << H * W;
      |   ^~~~
a.cc:14:3: error: expected unqualified-id before 'return'
   14 |   return 0;
      |   ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#include <numeric>
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main(){
    int H,W,h,w
    cin >> H >> W >> h >> w;
    cout << (H-h)*(W-w) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected initializer before 'cin'
   10 |     cin >> H >> W >> h >> w;
      |     ^~~
a.cc:11:22: error: 'w' was not declared in this scope
   11 |     cout << (H-h)*(W-w) << endl;
      |                      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: expected ';' before ':' token
    6 |   cout<<a*b-a*d-b*c+c*d:
      |                        ^
      |                        ;
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] split = s.split(" ");
		int H = Integer.parseInt(split[0]);
		int W = Integer.parseInt(split[1]);
		s = sc.nextLine();
		split = s.split(" ");
		int h = Integer.parseInt(split[0]);
		int w = Integer.parseInt(split[1]);

		System.out.println((H - h) * (W - w));

		sc.close();
	}
}

Compiler output:
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
2 errors
Language: C

#include <stdio.h>

int main(){
    int H,W,h,w;
    scanf("%d%d%d%d",&H,&W,&h,&w);
    printf("%d",(H-h)*W-w));
}


Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ';' before ')' token
    6 |     printf("%d",(H-h)*W-w));
      |                           ^
      |                           ;
main.c:6:27: error: expected statement before ')' token
Language: C++

#include <bits/stdc++.h>
using namespace
  int main(){
  int H,W,h,w;
  int total;
  cin >> H >> W >> h >> w;
  total=H*W-(H*w+W*h-h*w);
  cout << total <<endl;
}
  


Compiler output:
a.cc:3:3: error: expected identifier before 'int'
    3 |   int main(){
      |   ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 |   int main(){
      |   ~~~           
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 >> H >> W >> h >> w;
      |   ^~~
      |   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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << total <<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:8:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << total <<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++>
using namespace
  int main(){
  int H,W,h,w;
  int total;
  cin >> H >> W >> h >> w;
  total=H*W-(H*w+W*h-h*w);
  cout << total <<endl;
}
  


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

#include<stdio.h>
int main(void){
  int H, W, h, w;
  int siro;
  int kuro;
  int daburi;
  int num;
  
  scanf("%d %d %d %d", &H, &W, &h, &w);
  
  siro = H * W;
  kuro = (h * W) + (w * H);
  dabubi = h * w;
  
  num = siro - (kuro - daburi);
  printf("%d\n", num);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'dabubi' undeclared (first use in this function); did you mean 'daburi'?
   13 |   dabubi = h * w;
      |   ^~~~~~
      |   daburi
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;
int main(){
  int H, W, h, w;
  cin >> H >> W >> j >> w;
  cout << (H-h)*(W-w) <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'j' was not declared in this scope
    5 |   cin >> H >> W >> j >> w;
      |                    ^
Language: C++

#include <iostrea>
using namespace std;

int main () {
  int H, W, h, w;
  cin >> H >> W >> h >> w;
  //計算する
  int ans = (H - h) * (W - w);
  cout << ans << endl;
}

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

#include<bits/stdc++.h>

int main(){
  int H, W, h, w;
  
  cin >> H >> W >> h >> w;
  cout << (H - h)*(W - w) << endl;
  
  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 >> H >> W >> h >> w;
      |   ^~~
      |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (H - h)*(W - w) << 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:7:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << (H - h)*(W - w) << 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>

int main(){
  int H, W, h, w;
  
  cin >> H >> W >> h >> w;
  cout << (H - h)*(W - w);
  
  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 >> H >> W >> h >> w;
      |   ^~~
      |   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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << (H - h)*(W - w);
      |   ^~~~
      |   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 "pch.h"
#include <iostream>
using namespace std;

int main()
{
	int lw, lh, sw, sh;
	cin >> lw >> lh;
	cin >> sw >> sh;

	cout << (lw*lh - lw*sh - sw*lh + sw*sh);
}

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

import java.util.*;

public static class Main {
  
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int H, W, h, w;
    H = sc.nextInt();
    W = sc.nextInt();
    h = sc.nextInt();
    w = sc.nextInt();

    System.out.println(H*W - (h*H + w*W - h*w));
  }
}


Compiler output:
Main.java:3: error: modifier static not allowed here
public static class Main {
              ^
1 error
Language: Java

import java.util.*;

public static class Main {
  
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int H, W, h, w;
    H = sc.nextInt();
    W = sc.nextInt();
    h = sc.nextInt();
    w = sc.nextInt();

    return H*W - (h*H + w*W - h*w);
  }
}


Compiler output:
Main.java:3: error: modifier static not allowed here
public static class Main {
              ^
Main.java:13: error: incompatible types: unexpected return value
    return H*W - (h*H + w*W - h*w);
               ^
2 errors
Language: Java

import java.util.*;

public static class Main() {
  Scanner sc = new Scanner(System.in);
  int H, W, h, w;
  H = sc.nextInt();
  W = sc.nextInt();
  h = sc.nextInt();
  w = sc.nextInt();
  
  return H*W - (h*H + w*W - h*w);
}


Compiler output:
Main.java:3: error: '{' expected
public static class Main() {
                        ^
Main.java:6: error: <identifier> expected
  H = sc.nextInt();
   ^
Main.java:7: error: <identifier> expected
  W = sc.nextInt();
   ^
Main.java:8: error: <identifier> expected
  h = sc.nextInt();
   ^
Main.java:9: error: <identifier> expected
  w = sc.nextInt();
   ^
Main.java:11: error: illegal start of type
  return H*W - (h*H + w*W - h*w);
  ^
Main.java:11: error: <identifier> expected
  return H*W - (h*H + w*W - h*w);
          ^
Main.java:11: error: <identifier> expected
  return H*W - (h*H + w*W - h*w);
            ^
Main.java:11: error: <identifier> expected
  return H*W - (h*H + w*W - h*w);
                 ^
Main.java:11: error: <identifier> expected
  return H*W - (h*H + w*W - h*w);
                   ^
Main.java:11: error: <identifier> expected
  return H*W - (h*H + w*W - h*w);
                       ^
Main.java:11: error: <identifier> expected
  return H*W - (h*H + w*W - h*w);
                         ^
Main.java:11: error: <identifier> expected
  return H*W - (h*H + w*W - h*w);
                             ^
Main.java:11: error: <identifier> expected
  return H*W - (h*H + w*W - h*w);
                               ^
14 errors
Language: Java

import java.util.*;

public static Main() {
  Scanner sc = new Scanner(System.in);
  int H, W, h, w;
  H = sc.nextInt();
  W = sc.nextInt();
  h = sc.nextInt();
  w = sc.nextInt();
  
  return H*W - (h*H + w*W - h*w);
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public static Main() {
              ^
Main.java:5: error: class, interface, enum, or record expected
  int H, W, h, w;
  ^
Main.java:6: error: class, interface, enum, or record expected
  H = sc.nextInt();
  ^
Main.java:7: error: class, interface, enum, or record expected
  W = sc.nextInt();
  ^
Main.java:8: error: class, interface, enum, or record expected
  h = sc.nextInt();
  ^
Main.java:9: error: class, interface, enum, or record expected
  w = sc.nextInt();
  ^
Main.java:11: error: class, interface, enum, or record expected
  return H*W - (h*H + w*W - h*w);
  ^
Main.java:12: error: class, interface, enum, or record expected
}
^
8 errors
Language: C++

#include<iostream> 
using namespace std;

int main(){
  int a,b,c,d;
  cin >> a >> b >> c >> d;
  cout << (a-c)*(b-d); << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before '<<' token
    7 |   cout << (a-c)*(b-d); << endl;
      |                        ^~
Language: C++

#include "stdafx.h"
#include <algorithm>
#include <array>
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <functional>
#include <queue>
#include <random>

//AtCoderC++.cpp

using namespace std;


#define rep(i,from,to) for(int i=from;i<to;i++)
#define ints(name,n) vector<int> name;name.resize(n)

template<typename T> void Show(vector<vector<T>> v, string delimiter = " ") {
	for (int i = 0; i < v.size(); i++) {
		for (int j = 0; j < v[i].size(); j++) {
			cout << v[i][j];
			if (j != v[i].size() - 1) {
				cout << delimiter;
			} else {
				cout << endl;
			}
		}
	}
}
template<typename T> void Show(vector<T> v, string delimiter = " ") {
	for (int i = 0; i < v.size(); i++) {
		cout << v[i];
		if (i != v.size() - 1) {
			cout << delimiter;
		} else {
			cout << endl;
		}
	}
}
template<typename T> vector<T> getUniform(T value, int n) {
	vector<vector<T>> ts;
	ts.resize(n);
	for (int i = 0; i < n; i++) {
		ts[i] = value;
	}
	return ts;
}
template<typename T> vector<vector<T>> getUniform(T value, int row, int col) {
	vector<vector<T>> ts;
	ts.resize(row);
	for (int i = 0; i < row; i++) {
		ts[i].resize(col);
		for (int j = 0; j < col; j++) {
			ts[i][j] = value;
		}
	}
	return ts;
}
bool All(vector<vector<bool>> ts) {
	int h = ts.size();
	int w = ts[0].size();
	rep(i, 0, h) {
		rep(j, 0, w) {
			if (!ts[i][j])return false;
		}
	}
	return true;
}

int main() {
	int H, W;
	int row, col;
	cin >> H >> W >> row >> col;
	cout << (H - row)*(W - col) << endl;
}

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

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

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

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

#include<stdio.h>

int main()
{
	int H=0, W=0, h=0, w=0, sum;
	scanf_s("%d %d", &H, &W);
	scanf_s("%d %d", &h, &w);
	sum = H * W;
	sum -= H * h;
	sum -= (W-h) * w;
	printf("%d", sum);
	return 0;
}

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", &H, &W);
      |         ^~~~~~~
      |         scanf
Language: C

#include<stdio.h>

int main()
{
	int H=0, W=0, h=0, w=0, sum;
	scanf_s("%d %d", &H, &W);
	scanf_s("%d %d", &h, &w);
	sum = H * W;
	sum -= H * h;
	sum -= (W-h) * w;
	printf("%d", sum);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d %d", &H, &W);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main(void)
{
  int H,W,h,w,s;
  scanf("%d%d%d%d",&H,&W,&h,&w);
  s = H*W - {h*W+H*w-(h*w)};
  printf("%d",s);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected expression before '{' token
    6 |   s = H*W - {h*W+H*w-(h*w)};
      |             ^
Language: Java

package main

import (
	"fmt"
)

func main() {
	mainA()

}

func mainA() {
	var numH, numW, h, w int
	fmt.Scan(&numH, &numW, &h, &w)
	var res = solveA(numH, numW, h, w)
	fmt.Print(res)
}

func solveA(numH int, numW int, h int, w int) int {

	var res = 0
	res = (numH - h) * (numW - w)
	return res
}


Compiler output:
Main.java:1: error: ';' expected
package main
            ^
Main.java:3: error: <identifier> expected
import (
      ^
2 errors
Language: C++

#include <iostream>

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

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;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << a*b - c*b - ((a-c)*d) << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << a*b - c*b - ((a-c)*d) << 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(){
  int H,W,h,w;
  cin >> H >> W;
  cin >> h >> w;
  cout << (H-h)*(W-w) << endl;
}
Ryoma

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

#include<stdio.h>
int main(void)
{
    int H,W,h,w,c=0;
    scanf("%d%d%d%d",&H,&W,&h,&w);
    c=(H-h)*(W-w);
    printf("%d",c);

    return 0;
}
~                                                                    
~             

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

#include <stdio.h>
int main(void)
{
  int H,W,h,w,s;
  scanf("%d%d%d%d",&H,&W,&h,&w);
  s = H*W - {h*W+H*w-(h*w)};
  printf("%d",s);
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:6:13: error: expected expression before '{' token
    6 |   s = H*W - {h*W+H*w-(h*w)};
      |             ^
Language: C

#include<stdio.h>
int main(void){
  int H, W, h, w, Hh, Ww, a;
  
  scanf("%d %d", &H, &W);
  scanf("%d %d", &h, &w);
  Hh = H - h;
  Ww = W - w;
  Hh * Ww = a;
  printf("%d\n", a);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:11: error: lvalue required as left operand of assignment
    9 |   Hh * Ww = a;
      |           ^
Language: C

#include<stdio.h>
int main(void){
  int H, W, h, w, Hh, a;
  
  scanf("%d %d", &H, &W);
  scanf("%d %d", &h, &w);
  Hh = H - h;
  Ww = W - w;
  Hh * Ww = a;
  printf("%d\n", a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'Ww' undeclared (first use in this function); did you mean 'w'?
    8 |   Ww = W - w;
      |   ^~
      |   w
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  int H,W;
  cin >> H >> W ;
  int h,w ;
  cin >> h >> w ;
  
  int A;
  A=H*W-H*w-W*h+h*w
    
  cout << A << endl;
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before 'cout'
   11 |   A=H*W-H*w-W*h+h*w
      |                    ^
      |                    ;
   12 | 
   13 |   cout << A << endl;
      |   ~~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int H, W;
  cin >> H >> W;
  int h, w;
  cin >> h >> w;
  int a;
  a = H*W-(h*W+w*H)-h*w;
  count << a << endl;
}


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

#include <iostream>
using namespace std;

int main() {
	int H, W, h, w;
	cin >> H >> W >> h >> w;
  　cout << (H-h) * (W - w) << endl;
	return 0;
}

Compiler output:
a.cc:7:3: error: extended character 　 is not valid in an identifier
    7 |   　cout << (H-h) * (W - w) << endl;
      |   ^
a.cc: In function 'int main()':
a.cc:7:3: error: '\U00003000cout' was not declared in this scope
    7 |   　cout << (H-h) * (W - w) << endl;
      |   ^~~~~~
Language: C++

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

int main(){
int H, W, h, w;
  cin >> H >> W >> h >> w;
  cout << H * W - (h * W) - (w * (H - h));
}

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

#include <iostream>
using namespace std;
 
int main() {
  int H, W;
  int h, w;
  
  cin >> H;
  cin >> W;
  cin >> h;
  cin >> w;
  
  calc = (H - h) * (W - w);
  
  cout << calc << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'calc' was not declared in this scope; did you mean 'calloc'?
   13 |   calc = (H - h) * (W - w);
      |   ^~~~
      |   calloc
Language: C++

#include <iostream>

int main() {
  int H, W;
  int h, w;
  
  cin >> H;
  cin >> W;
  cin >> h;
  cin >> w;
  
  calc = (H - h) * (W - w);
  
  cout << calc << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> 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:12:3: error: 'calc' was not declared in this scope; did you mean 'calloc'?
   12 |   calc = (H - h) * (W - w);
      |   ^~~~
      |   calloc
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << calc << 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:14:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout << calc << 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>

int calc(int H, int W, int h, int w) {
  return (H - h) * (W - w);
}

int main() {
  int H, W;
  int h, w;
  
  cin >> H, W;
  cin >> h, w;
  
  calc(H, W, h, w);
  
  return 0;
}

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

#include <stdio.h>
int main(){
  int H,W;
  int h,w;
  int a;
  int ans;
  int h1,w1;
  
  scanf("%d",&H);
  scanf("%d",&W);
  scanf("%d",&h);
  scanf("%d",&w);
  
  w1 = W-w;
  h1 = H-h;
    
    ans = w1*h1;
  printf(%d,ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:10: error: expected expression before '%' token
   18 |   printf(%d,ans);
      |          ^
Language: C

#include <stdio.h>
int main(){
  int H,W;
  int h,w;
  int a;
  int ans;
  int h1,w1;
  
  scanf("%d",&H);
  scanf("%d",&W);
  scanf("%d",&h);
  scanf("%d",&w);
  
  w1 = W-w;
  h1 = H-h;
    
    ans = wi*h1;
  printf(ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:11: error: 'wi' undeclared (first use in this function); did you mean 'w1'?
   17 |     ans = wi*h1;
      |           ^~
      |           w1
main.c:17:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:10: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   18 |   printf(ans);
      |          ^~~
      |          |
      |          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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include <stdio.h>
int main(){
  int H,W;
  int h,w;
  int a;
  int ans;
  int h1,w1;
  
  scanf("%d",&H);
  scanf("%d",&W);
  scanf("%d",&h);
  scanf("%d",&w);
  
  w1 = W-h;
  h1 = H-w;
    
    ans = wi*h1;
  printf(ans);
  return 0;
}
    

  
  
  
  
  
  

Compiler output:
main.c: In function 'main':
main.c:17:11: error: 'wi' undeclared (first use in this function); did you mean 'w1'?
   17 |     ans = wi*h1;
      |           ^~
      |           w1
main.c:17:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:10: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   18 |   printf(ans);
      |          ^~~
      |          |
      |          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, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C

#include <stdio.h>

int main(){
	int H, W;
  	scanf("%d, %d", &H, &W);
  	int h, w;
  	scanf("%d, %d", &h, &w);
  	int field[H][W];
  	for(int i = 0; i < H; i++){
      for(int j = 0; j < W; j++){
        field[i][j] = 0;
      }
    }
  	for(int i = 0; i < h; i++){
      for(int j = 0; j < W; j++){
        field[i][j] = 1;
      }
    }
  	for(int i = 0; i < H; i++){
      for(int j = 0; j < w; j++){
        field[i][j] = 1;
      }
    }
  int count = 0;
  for(int i = 0; i < H; i++){
      for(int j = 0; j < W; j++){
        if(field[i][j] == 0){
          count++;
        }
      }
    }
  	printf("%d\n", count);
	return 0
}
  

Compiler output:
main.c: In function 'main':
main.c:33:17: error: expected ';' before '}' token
   33 |         return 0
      |                 ^
      |                 ;
   34 | }
      | ~
Language: Java

import java.util.Scanner;

public class Main　{
	
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		
		int inH = s.nextInt();
		int inW = s.nextInt();
		int inh = s.nextInt();
		int inw = s.nextInt();
		
		int result = (inH-inh) * (inW -inw);
		
		System.out.println(result);
		s.close();
		
	}

}

Compiler output:
Main.java:3: error: illegal character: '\u3000'
public class Main?{
                 ^
1 error
Language: C++

# -*- coding: utf-8 -*-

H,W = map(int,input().split())
h,w = map(int,input().split())

print(H*W-h*W-H*w+h*w)


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:3:1: error: 'H' does not name a type
    3 | H,W = map(int,input().split())
      | ^
Language: C++

#include<stdio.h>
int main(void){
  int H,W h,w;
  1<=H<=20;
  1<=W<=20;
  1<=h<=H;
  1<=w<=W;
  printf("%d",(H-h)*(W-w));
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: expected initializer before 'h'
    3 |   int H,W h,w;
      |           ^
a.cc:5:6: error: 'W' was not declared in this scope
    5 |   1<=W<=20;
      |      ^
a.cc:6:6: error: 'h' was not declared in this scope
    6 |   1<=h<=H;
      |      ^
a.cc:7:6: error: 'w' was not declared in this scope
    7 |   1<=w<=W;
      |      ^
Language: C++

#include<stdio.h>
int main(void){
  int H,W h,w;
  printf("%d",(H-h)*(W-w));
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: expected initializer before 'h'
    3 |   int H,W h,w;
      |           ^
a.cc:4:18: error: 'h' was not declared in this scope
    4 |   printf("%d",(H-h)*(W-w));
      |                  ^
a.cc:4:22: error: 'W' was not declared in this scope
    4 |   printf("%d",(H-h)*(W-w));
      |                      ^
a.cc:4:24: error: 'w' was not declared in this scope
    4 |   printf("%d",(H-h)*(W-w));
      |                        ^
Language: Java

import java.util.*;
public class Main{
 publi static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  int h = scan.nextInt();
  int w = scan.nextInt();
  int hDelete = scan.nextInt();
  int wDelete = scan.nextInt();
   
  System.out.println((h - hDelete)*(w - wDelete));
 }
}

Compiler output:
Main.java:3: error: <identifier> expected
 publi static void main(String[] args){
      ^
1 error
Language: C

#include<stdio.h>
int main(void){
  int W,H,w,h,s;
  scanf(%d %d,&W,&H);
  scanf(%d %d,&w,&h);
  
  s=(W-w)*(H-h);
  printf(%d,s);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected expression before '%' token
    4 |   scanf(%d %d,&W,&H);
      |         ^
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d %d,&w,&h);
      |         ^
main.c:8:10: error: expected expression before '%' token
    8 |   printf(%d,s);
      |          ^
Language: C

#include<stdio.h>
int main(void){
  int H,W,h,w;
  scanf(%d%d,&H,&W);
  scanf(%d%d,&h,&w);
  
  int s;
  s=(H-h)*(W-w);
  printf(%d,s);

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected expression before '%' token
    4 |   scanf(%d%d,&H,&W);
      |         ^
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d%d,&h,&w);
      |         ^
main.c:9:10: error: expected expression before '%' token
    9 |   printf(%d,s);
      |          ^
main.c:9:10: error: expected declaration or statement at end of input
Language: Java

import java.util.Scanner;

public class Aaaaa {

	public static void main(String[] args) {

		Scanner a = new Scanner(System.in);

		int H = a.nextInt();
		int W = a.nextInt();
		Scanner b = new Scanner(System.in);
		int h = b.nextInt();
		int w = b.nextInt();
		int ans = (H - h) * (W - w);
		System.out.println(ans);

	}

}

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

public static void main(String[] args) {

		Scanner a = new Scanner(System.in);

		int H = a.nextInt();
		int W = a.nextInt();
		Scanner b = new Scanner(System.in);
		int h = b.nextInt();
		int w = b.nextInt();
		int ans = (H - h) * (W - w);
		System.out.println(ans);

	}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class Aaaaa {

	public static void main(String[] args) {

		Scanner a = new Scanner(System.in);

		int H = a.nextInt();
		int W = a.nextInt();
		Scanner b = new Scanner(System.in);
		int h = b.nextInt();
		int w = b.nextInt();
		int ans = (H - h) * (W - w);
		System.out.println(ans);

	}

}




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

import java.util.Scanner;

class Arith{

public static void main(String[] args){
  Scanner a = new Scanner(System.in);
   
  int H= a.nextInt();
   int W = a.nextInt();
  int h= a.nextInt();
   int w= a.nextInt();
  int ans =(H-h)*(W-w)
}
}



Compiler output:
Main.java:12: error: ';' expected
  int ans =(H-h)*(W-w)
                      ^
1 error
Language: C++

K,w = [int(x) for x in input().split()]
h,w = [int(x) for x in input().split()]
print (K*W -(K-h)*(W-w))

Compiler output:
a.cc:1:1: error: 'K' does not name a type
    1 | K,w = [int(x) for x in input().split()]
      | ^
Language: C++

H,w = [int(x) for x in input().split()]
h,w = [int(x) for x in input().split()]
print (H*W -(H-h)*(W-w))

Compiler output:
a.cc:1:1: error: 'H' does not name a type
    1 | H,w = [int(x) for x in input().split()]
      | ^
Language: Java

import java.util.Scanner;

class Arith{

public static void main(String[] args){
  Scanner a = new Scanner(System.in);
   
  int H,W = a.nextInt();
  int h,w= a.nextInt();
  int ans =(H-h)*(W-w)
}
}


Compiler output:
Main.java:10: error: ';' expected
  int ans =(H-h)*(W-w)
                      ^
1 error
Language: Java

import java.util.Scanner;

class main{

public static void main(String[] args){
  Scanner a = new Scanner(System.in);
   
  int H,W = a.nextInt();
  int h,w= a.nextInt();
  int ans =(H-h)*(W-w)
}
}

Compiler output:
Main.java:10: error: ';' expected
  int ans =(H-h)*(W-w)
                      ^
1 error
Language: Java

public static void main(String[] args){
  Scanner a = new Scanner(System.in);
   
  int H,W = a.nextInt();
  int h,w= a.nextInt();
  int ans =(H-h)*(W-w)
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: ';' expected
  int ans =(H-h)*(W-w)
                      ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

/**
 * @author Don Li
 */
public class WhiteCells {
    void solve() {
        int H = in.nextInt(), W = in.nextInt();
        int h = in.nextInt(), w = in.nextInt();
        
        int painted = h * W + H * w - h * w;
        out.println(H * W - painted);
    }
    
    public static void main(String[] args) {
        in = new FastScanner(new BufferedReader(new InputStreamReader(System.in)));
        out = new PrintWriter(System.out);
        new WhiteCells().solve();
        out.close();
    }
    
    static FastScanner in;
    static PrintWriter out;
    
    static class FastScanner {
        BufferedReader in;
        StringTokenizer st;
        
        public FastScanner(BufferedReader in) {
            this.in = in;
        }
        
        public String nextToken() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(in.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
        
        public int nextInt() {
            return Integer.parseInt(nextToken());
        }
        
        public long nextLong() {
            return Long.parseLong(nextToken());
        }
        
        public double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }
}


Compiler output:
Main.java:10: error: class WhiteCells is public, should be declared in a file named WhiteCells.java
public class WhiteCells {
       ^
1 error