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

#include <bits/stdc++.h>
#pragma GCC optimize("O3")
#define REP(i,n) for(int i=0;i<n;i++)
#define REPP(i,n) for(int i=1;i<=n;i++)
#define ALL(obj) (obj).begin(), (obj).end()
#define EPS (1e-9)
#define INF (1e9)
#define PI (acos(-1))
//const double PI = acos(-1);
//const double EPS = 1e-15;
//long long INF=(long long)1E17;
#define i_7 (long long)(1e9+7)
long mod(long a){
    long long c=a%i_7;
    if(c>=0)return c;
    return c+i_7;
}
using namespace std;

bool prime_(int n){
  if(n==1){
    return false;
  }else if(n==2){
    return true;
  }else{
    for(int i=2;i<=sqrt(n);i++){
      if(n%i==0){
        return false;
      }
    }
    return true;
  }
}

long long gcd_(long long a, long long b){
  if(a<b){
    swap(a,b);
  }
  if(a%b==0){
    return b;
  }else{
    return gcd_(b,a%b);
  }
}
 
long long lcm_(long long x, long long y){
  return (x/gcd_(x,y))*y;
}

int main(){
  
  int n,h,w;
  cin>>n;
  cin>>h;
  cin>>w;
  int s = n-h+1;
  int t = n-w+1;
  int ans = s*t;
  cout<<ans<<endl;
  return 0;
}


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

y#include<bits/stdc++.h>
using namespace std;
#define int long long 
long long x[100010],y[100010],z[100010];
signed main(){

  cin.tie(0);
  ios::sync_with_stdio(false);

  long long a,b,c,cnt=0,ans=0,n,ccnt=0,wa=0;
  string s,v;
  char k[100010];

  cin>>a>>b>>c;
  cout<<(a-b+1)*(a-c+1)<<'\n';
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | y#include<bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'y' does not name a type
    1 | y#include<bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin.tie(0);
      |   ^~~
a.cc:8:3: error: 'ios' has not been declared
    8 |   ios::sync_with_stdio(false);
      |   ^~~
a.cc:11:3: error: 'string' was not declared in this scope
   11 |   string s,v;
      |   ^~~~~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout<<(a-b+1)*(a-c+1)<<'\n';
      |   ^~~~
Language: C++

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

int main(){
  int N,h,w;
  cin>>N>>h>>w;
  cout<<(N-h+1)*(N-w+1)<<endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>N>>h>>w;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<(N-h+1)*(N-w+1)<<endl;
      |   ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope
    7 |   cout<<(N-h+1)*(N-w+1)<<endl;
      |                          ^~~~
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		int w = Integer.parseInt(sc.next());

		System.out.println((n - h + 1) * (n - w + 1));

		sc.close();
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

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

#define REP(i,a,n) for(int i=a;i<n;++i)
#define REPL(i,a,n) for(ll i=a;i<n;++i)
#define RUP(a,b) ((a+b-1)/(b))
#define ENT "\n"
#define SORTVG(v) sort(v.begin(),v.end(),greater<>())
#define SORTV(v) sort(v.begin(),v.end())
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define INF LLONG_MAX/2

typedef long long ll;
typedef tuple<int,int,bool> Tb;
typedef pair<int,int> Pii;
typedef vector<int> Vi;

template<class T> void chmax(T& a, T b) {if(a < b){a=b;}}
template<class T> void chmin(T& a, T b) {if(a > b){a=b;}}
template<class T> void YesNo(T& a) {if(a){cout << "Yes" << ENT;}else{cout << "No" << ENT;}}
template<class T> void YESNO(T& a) {if(a){cout << "YES" << ENT;}else{cout << "NO" << ENT;}}
template<class T> void AorB(T& a, string A,string B) {if(a){cout << A << ENT;}else{cout << B << ENT;}}


int atcoder(){
    int n,a,b;
    cin>>n>>a>>b;
  	cout<<(n-h+1)*(n-w+1)<<ENT;
    return 0;
}


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



Compiler output:
a.cc: In function 'int atcoder()':
a.cc:29:18: error: 'h' was not declared in this scope
   29 |         cout<<(n-h+1)*(n-w+1)<<ENT;
      |                  ^
a.cc:29:26: error: 'w' was not declared in this scope
   29 |         cout<<(n-h+1)*(n-w+1)<<ENT;
      |                          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N,H,W;
  cin N >> H >> W;
  cout << (N-H+1)*(N-W+1);
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'n'
    5 |   cin n >> h >> w;
      |      ^~
      |      ;
Language: C++

#include <bits/stdc++>
using namespace std;
int main(){
  int n,h,w;
  cin n >> h >> w;
  cout << (n-h+1)*(n-w+1) << 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 <bits/stdc++.h>

using namespace std;
using ll = long long;

#define int ll

#define rep(i, a) for (int i = 0; (i) < (int) (a); (i)++)
#define reps(i, a, b) for (int i = (int) (a); (i) < (int) (b); (i)++)
#define rrep(i, a) for (int i = (int) a-1; (i) >= 0; (i)--)
#define rreps(i, a, b) for (int i = (int) (a)-1; (i) >= (int) (b); (i)--)
#define MP(a, b) make_pair((a), (b))
#define PB(a) push_back((a))
#define all(v) (v).begin(), (v).end()
#define PERM(v) next_permutation(all(v))
#define UNIQUE(v) sort(all(v));(v).erase(unique(all(v)), v.end())
#define CIN(type, x) type x;cin >> x
#define TRUE__  "Yes"
#define FALSE__ "No"
#define PRINT(f) if((f)){cout << (TRUE__) << endl;}else{cout << FALSE__ << endl;}
#define RS resize
#define CINV(v, N) do {\
	v.RS(N);\
	rep(i, N) cin >> v[i];\
} while (0);
#define RCINV(v, N) do {\
	v.RS(N);\
	rrep(i, N) cin >> v[i];\
} while (0);

#define MOD 1000000007

template<class T>
inline T GET() {
	T x;
	cin >> x;
	return x;
}

void init();
void solve();

signed main()
{
	init();
	solve();
}

void init()
{
	int H, W, N;
	cin >> H >>> W >> N;
	N++;
	cout << (N-H) * (N-W) << endl;
}


void solve()
{
}





Compiler output:
a.cc: In function 'void init()':
a.cc:52:20: error: expected primary-expression before '>' token
   52 |         cin >> H >>> W >> N;
      |                    ^
Language: C++

#include <bits/stdc++.h>

int main(){
  int n,h,w;
  cin >> n>>h>>w;
  	
  cout << (n-h+1)*(n-w+1)<<endl;
}

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

main(n,h,w){scanf("%d%d%d",&n,&h,&w);printf("%d\n",(n-h+1)*(n-w+1));}

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

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

int main(){
  int n,a,b;
  cin >> n >> a >> b;
  int p[n];
  for (int i=0;i<n;i++){
    cin >> p[i];
  }
  int x=y=z=0;
  int ans;
  for (int i=0;i<n;i++){
    if(p[i]<=a){
      x++;
    }
    else if(p[i]>a && p[i]<=b){
      y++;
    }
    else{
      z++;
    }
  }
  ans=min({x,y,z});
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'y' was not declared in this scope
   14 |   int x=y=z=0;
      |         ^
a.cc:14:11: error: 'z' was not declared in this scope
   14 |   int x=y=z=0;
      |           ^
a.cc:27:10: error: no matching function for call to 'min(<brace-enclosed initializer list>)'
   27 |   ans=min({x,y,z});
      |       ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
#include <string>
using namespace std;
long matrix[400][400] = {};
long count_matrix[400][400] = {};
int H, W, route_count = 0;
void black(int i, int j);
void white(int i, int j);

void black(int i, int j){
  matrix[i][j] = 10;
  if(i - 1 >= 0){
    if(matrix[i - 1][j] == -2) white(i-1, j);
  }
  if(i + 1 < H){
    if(matrix[i + 1][j] == -2) white(i+1, j);
  }
  if(j - 1 >= 0){
    if(matrix[i][j - 1] == -2) white(i, j-1);
  }
  if(j + 1 < W){
    if(matrix[i][j + 1] == -2) white(i, j+1);
  }
  matrix[i][j] = -1;
}

void white(int i, int j){
  count_matrix[i][j] = 1;
  matrix[i][j] = 10;
  if(i - 1 >= 0){
    if(matrix[i - 1][j] == -1) black(i-1, j);
  }
  if(i + 1 < H){
    if(matrix[i + 1][j] == -1) black(i+1, j);
  }
  if(j - 1 >= 0){
    if(matrix[i][j - 1] == -1) black(i, j-1);
  }
  if(j + 1 < W){
    if(matrix[i][j + 1] == -1) black(i, j+1);
  }
  matrix[i][j] = -2;
}

void reset_count_matrix(){  //count_matrixの値をすべてゼロにする(初期化)
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      count_matrix[i][j] = 0;
    }
  }


void counter(){  //countに組み合わせ数を加算する
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if(count_matrix[i][j] == 1){
        route_count++;
    }
  }
}

int main() {
  cin >> H >> W;
  string S[400] = {};
 
  for (int i = 0; i < H; i++) {
    cin >> S[i];
  }

  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if (S[i][j] == '#')matrix[i][j] = -1;
      else if (S[i][j] == '.')matrix[i][j] = -2;
      else matrix[i][j] = -100;
    }
  }

  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if(matrix[i][j] == -1) {  //黒の場合だけカウントをスタートする
        reset_count_matrix();
        black(i, j);
        counter();
      }
    }
  }

  cout << route_count <<endl;
}

Compiler output:
a.cc: In function 'void reset_count_matrix()':
a.cc:53:15: error: a function-definition is not allowed here before '{' token
   53 | void counter(){  //countに組み合わせ数を加算する
      |               ^
a.cc:89:2: error: expected '}' at end of input
   89 | }
      |  ^
a.cc:45:26: note: to match this '{'
   45 | void reset_count_matrix(){  //count_matrixの値をすべてゼロにする(初期化)
      |                          ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
long matrix[400][400] = {};
long count_matrix[400][400] = {};
int H, W, route_count = 0;
void black(int i, int j);
void white(int i, int j);

void black(int i, int j){
  matrix[i][j] = 10;
  if(i - 1 >= 0){
    if(matrix[i - 1][j] == -2) white(i-1, j);
  }
  if(i + 1 < H){
    if(matrix[i + 1][j] == -2) white(i+1, j);
  }
  if(j - 1 >= 0){
    if(matrix[i][j - 1] == -2) white(i, j-1);
  }
  if(j + 1 < W){
    if(matrix[i][j + 1] == -2) white(i, j+1);
  }
  matrix[i][j] = -1;
}

void white(int i, int j){
  count_matrix[i][j] = 1;
  matrix[i][j] = 10;
  if(i - 1 >= 0){
    if(matrix[i - 1][j] == -1) black(i-1, j);
  }
  if(i + 1 < H){
    if(matrix[i + 1][j] == -1) black(i+1, j);
  }
  if(j - 1 >= 0){
    if(matrix[i][j - 1] == -1) black(i, j-1);
  }
  if(j + 1 < W){
    if(matrix[i][j + 1] == -1) black(i, j+1);
  }
  matrix[i][j] = -2;
}

void reset_count_matrix(){  //count_matrixの値をすべてゼロにする(初期化)
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      count_matrix[i][j] = 0;
    }
  }
}

void counter(){  //countに組み合わせ数を加算する
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if(count_matrix[i][j] == 1){
        route_count++;
    }
  }
}

int main() {
  cin >> H >> W;
  string S[400] = {};
 
  for (int i = 0; i < H; i++) {
    cin >> S[i];
  }

  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if (S[i][j] == '#')matrix[i][j] = -1;
      else if (S[i][j] == '.')matrix[i][j] = -2;
      else matrix[i][j] = -100;
    }
  }

  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if(matrix[i][j] == -1) {  //黒の場合だけカウントをスタートする
        reset_count_matrix();
        black(i, j);
        counter();
      }
    }
  }

  cout << route_count <<endl;
}

Compiler output:
a.cc: In function 'void counter()':
a.cc:62:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   62 | int main() {
      |         ^~
a.cc:62:9: note: remove parentheses to default-initialize a variable
   62 | int main() {
      |         ^~
      |         --
a.cc:62:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:62:12: error: a function-definition is not allowed here before '{' token
   62 | int main() {
      |            ^
a.cc:89:2: error: expected '}' at end of input
   89 | }
      |  ^
a.cc:53:15: note: to match this '{'
   53 | void counter(){  //countに組み合わせ数を加算する
      |               ^
Language: C++

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

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









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

   #include<stdio.h>
     
    int main(void)
    {
    int i,a,b,n,p[20]=0,ans=0;
     
    scanf("%d",&n);
     
    scanf("%d %d",&a ,&b );
   
    for(i=0;i<n;i++)
    {
    scanf("%d",&p[i]);
    }
     
    for(i=0;i<n;i++)
    {
    if(p[i]<=a)
    {
    ans++;
    }
    }
     
    printf("%d",ans);
     
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: array must be initialized with a brace-enclosed initializer
    5 |     int i,a,b,n,p[20]=0,ans=0;
      |                       ^
Language: C++

   #include<stdio.h>
     
    int main(void)
    {
    int i,a,b,n,p[20]=0,ans=0;
     
    scanf("%d",&n);
     
    scanf("%d %d",&a ,&b);
   
    for(i=0;i<n;i++)
    {
    scanf("%d",&p[i]);
    }
     
    for(i=0;i<n;i++)
    {
    if(p[i]<=a)
    {
    ans++;
    }
    }
     
    printf("%d",ans);
     
    return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: array must be initialized with a brace-enclosed initializer
    5 |     int i,a,b,n,p[20]=0,ans=0;
      |                       ^
Language: C++

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

  int N ;
  int W ;
  int H ;
  int X=(N-W)*(N-H) ;
  cin >> N >> W >> H ;
  cout << X << endl;

}


Compiler output:
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> N >> W >> H ;
      |   ^~~
a.cc:9:3: error: 'cout' does not name a type
    9 |   cout << X << endl;
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

  int N;
  int W;
  int H;
  int X;
  cin >> N >> W >> H;
  X=(N-W)*(N-H)

  cout << X << endl;

}


Compiler output:
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin >> N >> W >> H;
      |   ^~~
a.cc:9:3: error: 'X' does not name a type
    9 |   X=(N-W)*(N-H)
      |   ^
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>

NumberOfWays(int N, int R, int C)
{
  int lnAns = 0;
  if(R > N || C > N)
    return lnAns;
  
  lnAns = N - C + 1;
  lnAns *= (N - R + 1)
    return lnAns;
}

int main()
{
  int N, R , C;
  std::cin>> N>> R>> C;
  int Ans = NumberOfWays(N, R, C);
  std::cout<< Ans;
}

Compiler output:
a.cc:3:1: error: ISO C++ forbids declaration of 'NumberOfWays' with no type [-fpermissive]
    3 | NumberOfWays(int N, int R, int C)
      | ^~~~~~~~~~~~
a.cc: In function 'int NumberOfWays(int, int, int)':
a.cc:10:23: error: expected ';' before 'return'
   10 |   lnAns *= (N - R + 1)
      |                       ^
      |                       ;
   11 |     return lnAns;
      |     ~~~~~~             
a.cc:10:9: warning: control reaches end of non-void function [-Wreturn-type]
   10 |   lnAns *= (N - R + 1)
      |   ~~~~~~^~~~~~~~~~~~~~
Language: C++

#include <cmath>
 
using namespace std;
int main() {
	int N, A, B;
	cin >> N >> A >> B;
	int less_or_eq_A = 0;
	int more_A_less_eq_B = 0;
	int more_B = 0;
 
 
	for (int i = 0; i < N; i++) {
		int p;
		cin >> p;
		if (p <= A) {
			less_or_eq_A++;
		} else if (p <= B) {
			more_A_less_eq_B++;
		} else {
			more_B ++;
		}
	}
	cout << min(min(less_or_eq_A,more_A_less_eq_B), more_B) << endl;
 
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> N >> A >> B;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cmath>
  +++ |+#include <iostream>
    2 | 
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << min(min(less_or_eq_A,more_A_less_eq_B), more_B) << endl;
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:68: error: 'endl' was not declared in this scope
   23 |         cout << min(min(less_or_eq_A,more_A_less_eq_B), more_B) << endl;
      |                                                                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cmath>
  +++ |+#include <ostream>
    2 |
Language: C++

#include<bits/stdc++.h>
#include<iostream>
int main(){
	int N, H, W, cnt = 0;
	cin >> N >> H >> W;
	if(N - H == 0)
		H = 1;
	if (N - W == 0)
		W = 1;
	cnt = H * W;
	if (H == W)
		cnt = N * (N / H);
	cout << cnt;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> N >> 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:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << cnt;
      |         ^~~~
      |         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 <stdio.h>
#include <stdlib.h>
#include <math.h>


int main(){
	int N,H,W;
	int configuration;
	
	scanf("%d",&N);
	scanf("%d",&H);
	scanf("%d",&W);
	
	configuration = (N+1-H)*(N+1-W);
	
	if((H > N) || (W > N)){
		configuration = 0;
	}
	
	
	printf("%d %s\n",a+b+c,s);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:26: error: 'a' undeclared (first use in this function)
   21 |         printf("%d %s\n",a+b+c,s);
      |                          ^
main.c:21:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:28: error: 'b' undeclared (first use in this function)
   21 |         printf("%d %s\n",a+b+c,s);
      |                            ^
main.c:21:30: error: 'c' undeclared (first use in this function)
   21 |         printf("%d %s\n",a+b+c,s);
      |                              ^
main.c:21:32: error: 's' undeclared (first use in this function)
   21 |         printf("%d %s\n",a+b+c,s);
      |                                ^
Language: C++

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

int n,h,w;

int main{
cin>>n>>h>>w;
cout << (n-h+1)*(n-w+1) << endl;
return 0;
}

Compiler output:
a.cc:6:5: error: cannot declare '::main' to be a global variable
    6 | int main{
      |     ^~~~
a.cc:7:13: error: expected '}' before ';' token
    7 | cin>>n>>h>>w;
      |             ^
a.cc:6:9: note: to match this '{'
    6 | int main{
      |         ^
a.cc:7:10: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive]
    7 | cin>>n>>h>>w;
      | ~~~~~~~~~^~~
In file included from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/istream:40,
                 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,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
  121 |       explicit operator bool() const
      |                ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note:   return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:8:1: error: 'cout' does not name a type
    8 | cout << (n-h+1)*(n-w+1) << endl;
      | ^~~~
a.cc:9:1: error: expected unqualified-id before 'return'
    9 | return 0;
      | ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: Java

package main.atcoder;

import fastIO.InputReader;

import java.io.PrintWriter;

public class ABulletinBoard {
  public void solve(int testNumber, InputReader in, PrintWriter out) {
    int n = in.nextInt();
    int h = in.nextInt();
    int w = in.nextInt();
    int count = 0;
    for (int i = 0; i <= n - h; i++) {
      for (int j = 0; j <= n - w; j++) {
        count++;
      }
    }
    out.println(count);
  }
}


Compiler output:
Main.java:7: error: class ABulletinBoard is public, should be declared in a file named ABulletinBoard.java
public class ABulletinBoard {
       ^
Main.java:3: error: package fastIO does not exist
import fastIO.InputReader;
             ^
Main.java:8: error: cannot find symbol
  public void solve(int testNumber, InputReader in, PrintWriter out) {
                                    ^
  symbol:   class InputReader
  location: class ABulletinBoard
3 errors
Language: C

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

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

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		int n = Integer.parseInt(scanner.nextLine());
		int h = Integer.parseInt(scanner.nextLine());
		int w = Integer.parseInt(scanner.nextLine());

		System.out.println((n - h + 1) * (n - w + 1));
	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		                      ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>↲
↲
int main(void) {↲
  int n, h, w;↲
  std::cin >> n;↲
  std::cin >> h;↲
  std::cin >> w;↲
↲
  int a1 = n - h + 1;↲
  int a2 = n - w + 1;↲
↲
  std::cout << a1 * a2 << std::endl;↲
↲
  return 0;↲
}↲


Compiler output:
a.cc:1:10: error: extended character ↲ is not valid in an identifier
    1 | #include <iostream>↲
      |          ^
a.cc:1:10: fatal error: iostream>��: No such file or directory
    1 | #include <iostream>↲
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <stdio.h>
#include <string.h>

#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <numeric>
#include <functional>

using namespace std;

inline void print()
{
	std::cout << "\n";
}

template<class T>
inline void print(T obj, char* delim="\n")
{
    std::cout << obj << delim;
}

template<class T>
inline void print(std::vector<T> obj, char* delim = "\n")
{
    for (const auto& e : obj)
    {
        print(e, " ");
    }
	print();
}

std::vector<std::string> split(const std::string &s, char delim);
std::string getline(FILE* fp = stdin);
std::vector<std::string> getlines(FILE* fp = stdin);

template<class src, class Func>
auto map_vector(const std::vector<src>& v, const Func& func)
{
    std::vector<decltype(func(v[0]))> new_v;
    new_v.reserve(v.size());
    for (unsigned i = 0; i < v.size(); ++i)
    {
        new_v.emplace_back(func(v[i]));
    }
    return std::move(new_v);
}

std::vector<int> convert_line_into_ints(std::string line);

inline vector<string> split(const string &s, char delim)
{
	vector<string> elems;
	stringstream ss(s);
	string item;
	while (std::getline(ss, item, delim)) {
		if (!item.empty()) {
			elems.push_back(item);
		}
	}
	return move(elems);
}
string getline(FILE* fp)
{
	char buffer[256];
	if (!fgets(buffer, 256, fp)) return "";
	size_t length = strlen(buffer);
	if (length > 0 && buffer[length - 1] == '\n') buffer[--length] = '\0';
	return buffer;
}

vector<string> getlines(FILE* fp)
{
	vector<string> lines;
	while (fp)
	{
		std::string line = getline(fp);
		if (line.length() >= 1) lines.emplace_back(move(line));
		else break;
	}
	return move(lines);
}

std::vector<int> convert_line_into_ints(string line)
{
	auto func = [](string str) { return stoi(str); };
	return map_vector(split(line, ' '), func);
}

int q(vector<vector<int>>& values)
{
    auto N = values[0][0];
    auto H = values[1][0];
    auto W = values[2][0];

    return (W - H + 1) * (N - W + 1)
}

int main(int argc, char* argv[])
{
	auto lines = getlines();

	auto values = map_vector(lines, convert_line_into_ints);
    
    std::cout << q(values) << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int q(std::vector<std::vector<int> >&)':
a.cc:99:37: error: expected ';' before '}' token
   99 |     return (W - H + 1) * (N - W + 1)
      |                                     ^
      |                                     ;
  100 | }
      | ~
Language: C++

#include <stdio.h>
#include <string.h>

#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <numeric>
#include <functional>

using namespace std;

inline void print()
{
	std::cout << "\n";
}

template<class T>
inline void print(T obj, char* delim="\n")
{
    std::cout << obj << delim;
}

template<class T>
inline void print(std::vector<T> obj, char* delim = "\n")
{
    for (const auto& e : obj)
    {
        print(e, " ");
    }
	print();
}

std::vector<std::string> split(const std::string &s, char delim);
std::string getline(FILE* fp = stdin);
std::vector<std::string> getlines(FILE* fp = stdin);

template<class src, class Func>
auto map_vector(const std::vector<src>& v, const Func& func)
{
    std::vector<decltype(func(v[0]))> new_v;
    new_v.reserve(v.size());
    for (unsigned i = 0; i < v.size(); ++i)
    {
        new_v.emplace_back(func(v[i]));
    }
    return std::move(new_v);
}

std::vector<int> convert_line_into_ints(std::string line);

inline vector<string> split(const string &s, char delim)
{
	vector<string> elems;
	stringstream ss(s);
	string item;
	while (std::getline(ss, item, delim)) {
		if (!item.empty()) {
			elems.push_back(item);
		}
	}
	return move(elems);
}
string getline(FILE* fp)
{
	char buffer[256];
	if (!fgets(buffer, 256, fp)) return "";
	size_t length = strlen(buffer);
	if (length > 0 && buffer[length - 1] == '\n') buffer[--length] = '\0';
	return buffer;
}

vector<string> getlines(FILE* fp)
{
	vector<string> lines;
	while (fp)
	{
		std::string line = getline(fp);
		if (line.length() >= 1) lines.emplace_back(move(line));
		else break;
	}
	return move(lines);
}

std::vector<int> convert_line_into_ints(string line)
{
	auto func = [](string str) { return stoi(str); };
	return map_vector(split(line, ' '), func);
}

int q(vector<vector<int>>& values)
{
    auto N = values[0][0];
    auto H = values[1][0];
    auto W = values[2][0];

    return (W - H + 1) * (N - W + 1)
}

int main(int argc, char* argv[])
{
	auto lines = getlines();

	auto values = map_vector(lines, convert_line_into_ints);
    
    print(q(values));

    return 0;
}


Compiler output:
a.cc: In function 'int q(std::vector<std::vector<int> >&)':
a.cc:99:37: error: expected ';' before '}' token
   99 |     return (W - H + 1) * (N - W + 1)
      |                                     ^
      |                                     ;
  100 | }
      | ~                                    
a.cc: In function 'void print(T, char*) [with T = int]':
a.cc:108:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  108 |     print(q(values));
      |     ~~~~~^~~~~~~~~~~
a.cc: In function 'int main(int, char**)':
a.cc:108:10: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
Language: C++

def question1():
    n = int(input())
    h = int(input())
    w = int(input())
    result =  (n-w+1)*(n-h+1)
    print(result)
    return result

question1()


Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def question1():
      | ^~~
Language: C++


import math

n = int(input())
h = int(input())
w = int(input())

ans = (n-h+1)*(n-w+1)


print(ans)


Compiler output:
a.cc:2:1: error: 'import' does not name a type
    2 | import math
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
inline ll _() {
	ll x=0,f=1; char ch=getchar();
	for(;ch<'0'||ch>'9';ch=getchar())
		if(ch=='-')f=-f;
	for(;ch>='0'&&ch<='9';ch=getchar())
		x=x*10+ch-'0';
	return x*f;
}
#define _ _()
int main() {
	n=_; a=_; b=_;
	for( int i=1;i<=n;i++ ) p[i]=_;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'n' was not declared in this scope; did you mean 'yn'?
   14 |         n=_; a=_; b=_;
      |         ^
      |         yn
a.cc:14:14: error: 'a' was not declared in this scope
   14 |         n=_; a=_; b=_;
      |              ^
a.cc:14:19: error: 'b' was not declared in this scope
   14 |         n=_; a=_; b=_;
      |                   ^
a.cc:15:33: error: 'p' was not declared in this scope
   15 |         for( int i=1;i<=n;i++ ) p[i]=_;
      |                                 ^
Language: C++

#include <iostream>
#include <vector>
#include <math.h>

int main(){
    int n,h,w;
    cin << n << h << w;
    cout << (n-h+1)*(n-w+1) << endl;
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin << n << 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
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << (n-h+1)*(n-w+1) << 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:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << (n-h+1)*(n-w+1) << 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 <stdio.h>

int main(){
        int n, h, w;
        scanf("%d", &n);
        scanf("%d", &h);
        scanf("%d", &w);

        printf("%d", (n-h)*(n-w));
        return 0;
}       
~     

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

#include<stdio.h>

int main(void){

  int N,H,M;
  
  scanf("%d",&N);
  scanf("%d",&H);
  scanf("%d",&W);
  
  
  printf("%d\n",(N-H+1)*(N-W+1));
  
  return 0;
  
}


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

#include <stdio.h>

int main()
{
    int N, H, W;
    scanaf("%d",&N);
    scanaf("%d",&H);
    scanaf("%d",&W);

    printf("%d\n",(N-H+1)*(N-W+1));
    return 0;
}

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

import std.stdio;
import std.string;
import std.conv;

void main()
{
    int N = readln.chomp.to!int;
    int H = readln.chomp.to!int;
    int W = readln.chomp.to!int;

    int result = (N - H + 1) * (N - W + 1);

    writeln(result);
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import std.string;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import std.conv;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: '::main' must return 'int'
    5 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:13: error: 'readln' was not declared in this scope
    7 |     int N = readln.chomp.to!int;
      |             ^~~~~~
a.cc:13:5: error: 'writeln' was not declared in this scope
   13 |     writeln(result);
      |     ^~~~~~~
Language: C++

function Main(input) {
  input = input.split("\n");
  N= parseInt(input[0]);
  H= parseInt(input[1]);
  W= parseInt(input[2]);
  var ans=(N-H+1)*(N-W+1);
  console.log('%s', ans);
}
  
// "実行する"ボタンを押した時に実行される関数 (デバッグ用)
function debug(){
  var input = document.getElementById("input").value;
  Main(input);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

Compiler output:
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |   console.log('%s', ans);
      |               ^~~~
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'?
    1 | function Main(input) {
      | ^~~~~~~~
      | union
a.cc:11:1: error: 'function' does not name a type; did you mean 'union'?
   11 | function debug(){
      | ^~~~~~~~
      | union
a.cc:15:5: error: expected constructor, destructor, or type conversion before '(' token
   15 | Main(require("fs").readFileSync("/dev/stdin", "utf8"));
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
main(){
    int n,h,w
    cin>>n>>h>>w;
    cout<<(h-n+1)*(h-w+1);
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>n>>h>>w;
      |     ^~~
a.cc:7:22: error: 'w' was not declared in this scope
    7 |     cout<<(h-n+1)*(h-w+1);
      |                      ^
Language: C++

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

int main(void){
	ios::sync_with_stdio(false);
	int N, H, W, sumi, j, k;
	cin >> N;
	cin >> H;
	cin >> W;
	sum = (N - W + 1)*(N - H + 1);
	cout << sum;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'sum' was not declared in this scope; did you mean 'sumi'?
   14 |         sum = (N - W + 1)*(N - H + 1);
      |         ^~~
      |         sumi
Language: Java

import java.util.Scanner;

public class Main1 {

	public static void main(String... args) {

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		int w = Integer.parseInt(sc.next());

		System.out.println((n - h + 1) * (n - w + 1));


	}
}


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

#include <stdio.h>

int main(){
        int n, h, w;
        scanf("%d", &n);
        scanf("%d", &h);
        scanf("%d", &w);

        printf("%d", (n-h)*(n-w));
        return 0;
}       
~     

Compiler output:
a.cc:12:2: error: expected class-name at end of input
   12 | ~
      |  ^
Language: C++

#include <stdio.h>
#include<cstdio>
#include<iostream>
#include<string>
#include<algorithm>
#include<complex>
#include<vector>

using namespace std;

int nx[]={0,1,0,-1};
int ny[]={0,1,0,-1};
//*****************************************


int n,h,w,ans; 

int main(void)
{
    scanf("%d",&n);
    scanf("%d",&h);
    scanf("%d",&w);

    ans=(n-h+1)*(n-w+1);

    printf("%d",);


    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: expected primary-expression before ')' token
   26 |     printf("%d",);
      |                 ^
Language: Java

public class Main {

	public static void main(String... args) {

		Scanner sc = new Scanner(System.in);
		int n = Integer.parseInt(sc.next());
		int h = Integer.parseInt(sc.next());
		int w = Integer.parseInt(sc.next());

		System.out.println((n - h + 1) * (n - w + 1));


	}
}


Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;


public class AISing_20190112 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		
		int H = sc.nextInt();
		
		int W = sc.nextInt();
		int ans = (N-H+1)*(N-W+1);
		System.out.println(ans);
	}

}

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

#include <bits/stdc++.h>
#define pb push_back
using namespace std;
const int N = 2e5 + 100;

long long Limit;
int n;
long long a[N];
void nhap()
{
    cin >> n;
    cin >> h >> w;
}

void solve()
{
    cout << (n - h + 1) * (n - w + 1);
}
int main()
{
    nhap();
    solve();
}


Compiler output:
a.cc: In function 'void nhap()':
a.cc:12:12: error: 'h' was not declared in this scope
   12 |     cin >> h >> w;
      |            ^
a.cc:12:17: error: 'w' was not declared in this scope
   12 |     cin >> h >> w;
      |                 ^
a.cc: In function 'void solve()':
a.cc:17:18: error: 'h' was not declared in this scope
   17 |     cout << (n - h + 1) * (n - w + 1);
      |                  ^
a.cc:17:32: error: 'w' was not declared in this scope
   17 |     cout << (n - h + 1) * (n - w + 1);
      |                                ^
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<sstream>
#include<iomanip>
#include<limits>
#include<deque>
#include<map>
#include<list>
#include<set>
#include <unordered_set>
#include<vector>
#include<cmath>
#include<cstdio>
#include<conio.h>

using namespace std;


int main(){
	int n; cin >> n;
	int h, w; cin >> h >> w;

	cout << (1 + n - w)*(1 + n - h) << endl;

	return 0;
}

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

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

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

  ll n,h,w;
  cin>>n>>h>>w;
  cout<<(n-h+1)*(n-w+1)<<'\n';

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'll' was not declared in this scope
    8 |   ll n,h,w;
      |   ^~
a.cc:9:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |   cin>>n>>h>>w;
      |        ^
      |        yn
a.cc:9:11: error: 'h' was not declared in this scope
    9 |   cin>>n>>h>>w;
      |           ^
a.cc:9:14: error: 'w' was not declared in this scope
    9 |   cin>>n>>h>>w;
      |              ^
Language: C++

def solve(N, H, W):
  return (N + 1 - H) * (N + 1 - W)

N = int(input())
H = int(input())
W = int(input())

print(solve(N, H, W))

Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def solve(N, H, W):
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
main(){
    cin>>n>>h>>w;
    cout<<(h-n+1)*(h-w+1);
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |     cin>>n>>h>>w;
      |          ^
      |          yn
a.cc:5:13: error: 'h' was not declared in this scope
    5 |     cin>>n>>h>>w;
      |             ^
a.cc:5:16: error: 'w' was not declared in this scope
    5 |     cin>>n>>h>>w;
      |                ^
Language: C++

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

int main() {
  int n, h, w;
  cin >> n >> h >> w;

  ans = (n - h + 1) * (n - w + 1);
  cout << ans << endl;
}


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

#include <iostream>
#include <algorithm>

#define ll long long

using namespace std;

int main(){

 int a,b,c;
 cin>>a>>b>>C;
 cout<<(a-b+1)*(a-c+1)<<endl;
 
 return 0;
}


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

#include <stdio.h>
typedef long long ll;
using namespace std;

int main(void) {
  ll i, j, k, a, b, c, n, m;
  scanf("%lld%lld%lld", &a, &b, &c);
  printf("%lld", (n - h + 1) * (n - w + 1));
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'h' was not declared in this scope
    8 |   printf("%lld", (n - h + 1) * (n - w + 1));
      |                       ^
a.cc:8:37: error: 'w' was not declared in this scope
    8 |   printf("%lld", (n - h + 1) * (n - w + 1));
      |                                     ^