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

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef vector<string> vs;
typedef pair<int, int> p;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int H, W, A, B;
    cin >> H >> W >> A >> B;

    int ans[H][W];
    vvi ans(H, vector<int>(W));
    vi mc(W), mr(H), cc(W), cr(H);
    REP(i, H)
    {
        mr[i] = 0;
        cr[i] = 0;
    }
    REP(i, W)
    {
        mc[i] = 0;
        cc[i] = 0;
    }

    int x, y;
    bool flag = false;
    REP(i, H + 1)
    {
        REP(j, W + 1)
        {
            int s1 = i * (W - A) + (H - i) * A;
            int s2 = j * (H - B) + (W - j) * B;
            if (s1 == s2)
            {
                x = i;
                y = j;
                flag = true;
                break;
            }
        }

        if (flag)
            break;
    }

    if (!flag)
    {
        cout << "No" << endl;
    }
    else
    {

        REP(i, H)
        {
            if(i < x) mr[i] = W - A;
            else mr[i] = A;
        }

        REP(i, W)
        {
            if(i < y) mc[i] = H - B;
            else mc[i] = B;
        }

        REP(i, H)
        {
            REP(j, W)
            {
                if(cc[j] < mc[j] && cr[i] < mr[i])
                {
                    ans[i][j] = 1;
                    cc[j]++;
                    cr[i]++;
                }else{
                    ans[i][j] = 0;
                }
            }
        }



        REP(i, H)
        {
            REP(j, W)
            {
                cout << ans[i][j];
            }
            cout << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: conflicting declaration 'vvi ans'
   22 |     vvi ans(H, vector<int>(W));
      |         ^~~
a.cc:21:9: note: previous declaration as 'int ans [H][W]'
   21 |     int ans[H][W];
      |         ^~~
Language: C++

#include<bits/stdc++.h>
#include<algorithm>
#include<math.h>
#include<string>
#include<iostream>
#include<vector>
#include<cstdlib>
using namespace std;
 
template <class T> using V = vector<T>;
 
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
 
const long long INF = 1LL << 60;
 
using ll = long long;
using db = double;
using st = string;
using ch = char;
using bl = bool;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
using vbl = V<bl>;

 
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>=(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
  
 

ll sum(ll n) {
ll m=0;
  FOR(i,0,20){
    m+=n%10;
    n/=10;
    if(n==0){
      break;
    }
  }
  return m;
}
 
 
const int MAX = 510000;
const int MOD = 1000000007;
 
long long fac[MAX], finv[MAX], inv[MAX];
 
void Comuse() {
    fac[0] = fac[1] = 1;
    finv[0] = finv[1] = 1;
    inv[1] = 1;
    for (int i = 2; i < MAX; i++){
        fac[i] = fac[i - 1] * i % MOD;
        inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
        finv[i] = finv[i - 1] * inv[i] % MOD;
    }
}
 
 
#define comuse Comuse()
 
ll combi(int n, int k){
    if (n < k) return 0;
    if (n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
 
 
 
 
ll lcm(ll a,ll b){
  ll n;
  n=a/gcd(a,b)*b;
  return n;
}




 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 
 
signed main() {
  ll h,w,a,b;
    ci(h>>w>>a>>b);

  FOR(i,0,h){
    FOR(j,0,w){
      if(i<b&&j<a){
        cout<<0;
      }

      else if(i>=b&&j>=a){
        cout<<0;
      }

      else{
        cout<<1;
      }
    }
    
    endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:137:9: error: statement cannot resolve address of overloaded function
  137 |     endl;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
const long long INF = 100000000; // 十分大きい値

int main () {
  
  long long N, K;
  cin >> N >> K;
  
  vector<long long> P(N);
  
  for (long long i = 0; i < N; i++) {
    cin >> P[i];
  }
  
  set<long long> S;
  
  for (long long i = 0; i < K; i++) {
    S.insert(P[i]);
  }
  
  long long ans = 1;
  
  for (long long i = 0; i < N - K; i++) {
    
    if (*begin(S) == P[i] && *rbegin(S) < P[i + K]) ans += 0;
    else ans++;
    
    S.erase(P[i]);
    S.insert(P[i + K]);
    
  }
  
  // はじめと同じ形になる場合の個数
  
  reverse(P.begin(), P.end());
  int flag = 0;
  long long memo = -1000000;
  
  
  stack<pair<int,int> > st;
    st.push({INF, 0}); // 番兵
    for (long long i = 0; i < N; ++i) {
        // 条件を満たすまで pop し続ける
        while (P[i] > st.top().first) st.pop();

        // 答えを出力
        if (i -  st.top().second + 1 >= K && i - memo > K) {
          if (flag = 0) {
            flag = 1;
          }
          else ans--;
          memo = i;
        }
          

        // 新たに push
        st.push({P[i], i+1});
    }
  
  cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:61:23: error: expected '}' at end of input
   61 |   cout << ans << endl;
      |                       ^
a.cc:5:13: note: to match this '{'
    5 | int main () {
      |             ^
Language: C++

#include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
// const int INF = (1 << 30) - 1;
// const ll LL_INF = (1LL << 62) - 1;
// const ll MOD = 1e9 + 7;
 
int H, W, A, B;
int s[1001][1001];
 
void output() {
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      cout << s[i][j];
    }
    cout << endl;
  }
}
 
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> H >> W >> A >> B;
 
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if (j < A && i < B) {
        s[i][j] = 0;
      } else if (j >= A && i < B) {
        s[i][j] = 1;
      } else if (j < A && i >= B) {
        s[i][j] = 1;
      } else {
        s[i][j] = 0;
      }
    }
  }
 
  output();
  return 0;
}
#include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
typedef long long ll;
// const int INF = (1 << 30) - 1;
// const ll LL_INF = (1LL << 62) - 1;
// const ll MOD = 1e9 + 7;

int H, W, A, B;
int s[1001][1001];

void output() {
  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      cout << s[i][j];
    }
    cout << endl;
  }
}

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> H >> W >> A >> B;

  for (int i = 0; i < H; i++) {
    for (int j = 0; j < W; j++) {
      if (j < A && i < B) {
        s[i][j] = 0;
      } else if (j >= A && i < B) {
        s[i][j] = 1;
      } else if (j < A && i >= B) {
        s[i][j] = 1;
      } else {
        s[i][j] = 0;
      }
    }
  }

  output();
  return 0;
}


Compiler output:
a.cc:71:5: error: redefinition of 'int H'
   71 | int H, W, A, B;
      |     ^
a.cc:19:5: note: 'int H' previously declared here
   19 | int H, W, A, B;
      |     ^
a.cc:71:8: error: redefinition of 'int W'
   71 | int H, W, A, B;
      |        ^
a.cc:19:8: note: 'int W' previously declared here
   19 | int H, W, A, B;
      |        ^
a.cc:71:11: error: redefinition of 'int A'
   71 | int H, W, A, B;
      |           ^
a.cc:19:11: note: 'int A' previously declared here
   19 | int H, W, A, B;
      |           ^
a.cc:71:14: error: redefinition of 'int B'
   71 | int H, W, A, B;
      |              ^
a.cc:19:14: note: 'int B' previously declared here
   19 | int H, W, A, B;
      |              ^
a.cc:72:5: error: redefinition of 'int s [1001][1001]'
   72 | int s[1001][1001];
      |     ^
a.cc:20:5: note: 'int s [1001][1001]' previously declared here
   20 | int s[1001][1001];
      |     ^
a.cc:74:6: error: redefinition of 'void output()'
   74 | void output() {
      |      ^~~~~~
a.cc:22:6: note: 'void output()' previously defined here
   22 | void output() {
      |      ^~~~~~
a.cc:83:5: error: redefinition of 'int main()'
   83 | int main() {
      |     ^~~~
a.cc:31:5: note: 'int main()' previously defined here
   31 | int main() {
      |     ^~~~
Language: Java

//第 4 問: ABC 087 B - Coins (200 点)

import java.util.Scanner;

public class TEST2{

	public static void main(String[] args){



		Scanner scan = new Scanner(System.in);

		int H,W,A,B = 0;

		H = scan.nextInt();
		W = scan.nextInt();
		A = scan.nextInt();
		B = scan.nextInt();

		//System.out.println("H: "+ H + " W: " +W+ " A: " +A+ " B: " + B);
		scan.close();

		if (H % W == 0 || W % H ==0 ){


			if(H % W == 0) {
				int x = 0;
				x = H/W;


				if (A==1 && B==x)
				{
					for(int i=0; i < H; i++)
					{
						for(int j=0; j < W; j++)
						{
							if(j%W ==i%W){
								System.out.print(1);
							}
							else
							{
								System.out.print(0);
							}
						}
						 System.out.println();
					}
				}
				else
				{
					if ( A == W/2 && B == H/2) {
						for(int i=0; i < H; i++)
						{
							for(int j=0; j < W; j++)
							{
								if ( (i+j) % 2 == 0 ){
									System.out.print(1);
								}
								else
								{
									System.out.print(0);
								}
							}
							 System.out.println();
						}
					}
					else
					System.out.println("No");
				}

			}

			else {
				int y = 0;
				y = W/H;

				if(A==y && B==1){
					for(int i=0; i < H; i++)
					{
						for(int j=0; j < W; j++)
						{
							if(j%H ==i%H)
							{System.out.print(1);}
							else
							{
							 System.out.print(0);
							}
						}
						 System.out.println();
					}
				}
				else
				{

					if ( A == W/2 && B == H/2) {

						for(int i=0; i < H; i++)
						{
							for(int j=0; j < W; j++)
							{
								if ( (i+j) % 2 == 0 ){
									System.out.print(1);
								}
								else
								{
									System.out.print(0);
								}
							}
							 System.out.println();
						}
					}
					else
					System.out.println("No");
				}

			}
		}

		else {
			if ( A == W/2 && B == H/2) {

				for(int i=0; i < H; i++)
				{
					for(int j=0; j < W; j++)
					{
						if ( (i+j) % 2 == 0 ){
							System.out.print(1);
						}
						else
						{
							System.out.print(0);
						}
					}
					 System.out.println();
				}
			}
			else
			System.out.println("No");
		}
	}

}



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

#include <iostream>
#include <fstream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
#include <limits>
 
using namespace std;
 
//conversion
//------------------------------------------
inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v; }
template<class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str(); }
 
//math
//-------------------------------------------
template<class T> inline T sqr(T x) { return x * x; }
 
//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
 
//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define EXISTch(s,c) ((((s).find_first_of(c)) != std::string::npos)? 1 : 0)//cがあれば1 if(1)
#define SORT(c) sort((c).begin(),(c).end())
 
#define REP(i,n) for(int i=0;i<(int)n;++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
 
//constant
//--------------------------------------------
const double EPS = 1e-10;
const double PI = acos(-1.0);
const int INF = (int)1000000007;
const LL MOD = (LL)1000000007;//10^9+7
const LL INF2 = (LL)100000000000000000;//10^18
 
int main() {
 
	LL h, w, a, b; cin >> h >> w >> a >> b;
 
	for (int i = 0; i < h; i++) {
		if (0 <= i && i < (h - b)) {
			for (int j = 0; j < w; j++) {
				if (0 <= j && j < a) {
					cout << '1';
				}
				else {
					cout << '0';
				}
			}
 
			cout << endl;
			
		}
		else {
			for (int j = 0; j < w; j++) {
				if (0 <= j && j < a) {
					cout << '0';
				}
				else {
					cout << '1';
				}
			}
 
			cout << endl;
		
		}
		
	}
	
	return 0;
}


Compiler output:
a.cc:26:9: error: 'vector' does not name a type
   26 | typedef vector<int> VI;
      |         ^~~~~~
a.cc:27:9: error: 'vector' does not name a type
   27 | typedef vector<VI> VVI;
      |         ^~~~~~
a.cc:28:9: error: 'vector' does not name a type
   28 | typedef vector<string> VS;
      |         ^~~~~~
Language: C++

#include <stdio.h>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cassert>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <functional>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
typedef vector<int> vint;
typedef vector<vector<int>> v2int;
typedef vector<ll> vll;
typedef vector<vector<ll>> v2ll;
typedef list<int> liint;
typedef pair<int, int> pint;
const int INF = int(2e9);
const ll LINF = ll(2e9) * ll(2e9);
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)
template<class T, class C> void chmax(T& a, C b) { a > b ? : a = b; }
template<class T, class C> void chmin(T& a, C b) { a < b ? : a = b; }



int AAAmain() {
    int H, W, A, B;
    cin >> H >> W >> A >> B;

    if (H == 1) {
        rep(i, A) {
            cout << 1 ;
        }
        rep(i, W - A) {
            cout << 0 ;
        }
        cout << endl;
        return 0;

    }
    if (W == 1) {
        rep(i, B) {
            cout << 1 << endl;
        }
        rep(i, H - B) {
            cout << 0 << endl;
        }
        return 0;

    }

    //if (W > 3 * A || H > 3 * B) {
    //    cout << "No" << endl;
    //    return 0;
    //}

    v2int ans(H, vint(W, 0));
    rep(i, H) {
        int x;
        if (i < B || (i >= 2 * B && i < 3 * B)) {
            x = 1;
        }
        else {
            x = 0;
        }
        rep(j, W) {
            ans[i][j] = x;
            if ((j + 1) % A == 0) {
                if (x == 1) x = 0;
                else x = 1;
            }
        }
    }
    rep(i, H) {
        rep(j, W) {
            cout << ans[i][j];
        }
        cout << endl;
    }
    //cout << N << endl;
    return 0;
}

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

#include <stdio.h>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cassert>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <functional>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
typedef vector<int> vint;
typedef vector<vector<int>> v2int;
typedef vector<ll> vll;
typedef vector<vector<ll>> v2ll;
typedef list<int> liint;
typedef pair<int, int> pint;
const int INF = int(2e9);
const ll LINF = ll(2e9) * ll(2e9);
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)
template<class T, class C> void chmax(T& a, C b) { a > b ? : a = b; }
template<class T, class C> void chmin(T& a, C b) { a < b ? : a = b; }



int AAAmain() {
    int H, W, A, B;
    cin >> H >> W >> A >> B;

    if (H == 1) {
        rep(i, A) {
            cout << 1 ;
        }
        rep(i, W - A) {
            cout << 0 ;
        }
        cout << endl;
        return 0;

    }
    if (W == 1) {
        rep(i, B) {
            cout << 1 << endl;
        }
        rep(i, H - B) {
            cout << 0 << endl;
        }
        return 0;

    }

    if (W > 3 * A || H > 3 * B) {
        cout << "No" << endl;
        return 0;
    }

    v2int ans(H, vint(W, 0));
    rep(i, H) {
        int x;
        if (i < B || (i >= 2 * B && i < 3 * B)) {
            x = 1;
        }
        else {
            x = 0;
        }
        rep(j, W) {
            ans[i][j] = x;
            if ((j + 1) % A == 0) {
                if (x == 1) x = 0;
                else x = 1;
            }
        }
    }
    rep(i, H) {
        rep(j, W) {
            cout << ans[i][j];
        }
        cout << endl;
    }
    //cout << N << endl;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define mp make_pair
#define pb push_back
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)


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

  bool ok=true;
  int h,w,a,b;
  cin >> h >> w >> a >> b;
  int ans[h][w];
  if(h%2==0 && w%2==0 && h/2==a && w/2==b){
    rep(i,h)rep(j,w){
      if((i<h/2 && j<w/2) || (i>=h/2 && j>=w/2)) ans[i][j]=1;
      else ans[i][j]=1;
    }
    rep(i,h){
      rep(j,w){
      cout <<ans[i][j];
      }
      cout << ""<<endl;
    }
    return 0;
  }
  /*  rep(i,h)rep(j,w){
    if(j<a)ans[i][j]=1;
    else ans[i][j]=0;
    }*/
  if((a*h==w*b) && (h/w*w==h || w/h*h==w){
  rep(i,h){
    rep(j,w){
      if(((j-i+100*a)%a)<=a)ans[i][j]=1;
      else ans[i][j]=0;
    }
  
  rep(i,h){
      rep(j,w){
      cout <<ans[i][j];
      }
      cout << ""<<endl;
  }
  return 0;
  }
  cout << "No" << endl;
  return 0;
    

}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:42: error: expected ')' before '{' token
   35 |   if((a*h==w*b) && (h/w*w==h || w/h*h==w){
      |     ~                                    ^
      |                                          )
a.cc:54:2: error: expected statement at end of input
   54 | }
      |  ^
a.cc:54:2: error: expected '}' at end of input
a.cc:10:11: note: to match this '{'
   10 | int main(){
      |           ^
Language: Java

//第 4 問: ABC 087 B - Coins (200 点)

import java.util.Scanner;

public class TEST2{

	public static void main(String[] args){



		Scanner scan = new Scanner(System.in);

		int H,W,A,B = 0;

		H = scan.nextInt();
		W = scan.nextInt();
		A = scan.nextInt();
		B = scan.nextInt();

		//System.out.println("H: "+ H + " W: " +W+ " A: " +A+ " B: " + B);
		scan.close();

		if (H % W == 0 || W % H ==0 ){

			//System.out.println("Start start");


			if(H % W == 0) {
				int x = 0;
				x = H/W;

				//System.out.println("Start");


				if (A==1 && B==x)
				{
					System.out.println("A");

					for(int i=0; i < H; i++)
					{
						for(int j=0; j < W; j++)
						{
							if(j%W ==i%W){
								System.out.print(1);
							}
							else
							{
								System.out.print(0);
							}
						}
						 System.out.println();
					}
				}

				else
				{
					System.out.println("B");

					if ( A == W/2 && B == H/2) {

						System.out.println("B1");

						for(int i=0; i < H; i++)
						{
							for(int j=0; j < W; j++)
							{
								if ( (i+j) % 2 == 0 ){
									System.out.print(1);
								}
								else
								{
									System.out.print(0);
								}
							}
							 System.out.println();
						}
					}
					else
					System.out.println("No");
				}

			}

			else {

				//System.out.println("StartB");


				int y = 0;
				y = W/H;

				if(A==y && B==1){
					for(int i=0; i < H; i++)
					{
						for(int j=0; j < W; j++)
						{
							if(j%H ==i%H)
							{System.out.print(1);}
							else
							{
							 System.out.print(0);
							}
						}
						 System.out.println();
					}
				}
				else
				{
					//System.out.println("B");

					if ( A == W/2 && B == H/2) {

						System.out.println("B1");

						for(int i=0; i < H; i++)
						{
							for(int j=0; j < W; j++)
							{
								if ( (i+j) % 2 == 0 ){
									System.out.print(1);
								}
								else
								{
									System.out.print(0);
								}
							}
							 System.out.println();
						}
					}
					else
					System.out.println("No");
				}

			}
		}

		else {

			//System.out.println("C");

			if ( A == W/2 && B == H/2) {

				for(int i=0; i < H; i++)
				{
					for(int j=0; j < W; j++)
					{
						if ( (i+j) % 2 == 0 ){
							System.out.print(1);
						}
						else
						{
							System.out.print(0);
						}
					}
					 System.out.println();
				}
			}
			else
			System.out.println("No");
		}



	}

}



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

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/range/adaptor/reversed.hpp>

using namespace std;
typedef long long int ll;

#define PI (acos(-1))
#define REP(i,n) for(int  (i)=0;(i)<(n);(i)++)

#define dump(x)  cerr << #x << " = " << (x) << endl;
#define dumparr(x) cerr << #x ; for(auto elem: x){cerr << " " << elem;} cerr << endl;
#define dumppairs(x) cerr << #x ; for(auto elem: x){cerr << "(" << elem.first << " " << elem.second << ") ";} cerr << endl;
#define dumpline cerr << "**********************" << endl;
#define dumpwline(x) cerr << "******** " << #x << "=" << (x) << " ********" << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))

int main(void){
    int h; int w; int a; int b;
    cin >> h >> w >> a >> b;
    vector <int> first_arr;
    vector <int> second_arr;
    REP(j, a){
        first_arr.push_back(0);
        second_arr.push_back(1);
    }
    REP(j, w-a){
        first_arr.push_back(1);
        second_arr.push_back(0);
    }
    REP(i, b){
        REP(j, w-1){
            cout << first_arr[j];
        }
        cout << first_arr[w-1] << endl;
    }
    REP(i, h-b){
        REP(j, w-1){
            cout << second_arr[j] <<;
        }
        cout << second_arr[w-1] << endl;
    }
    return 0;
}

Compiler output:
a.cc:2:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
 int h,w,a,b;
  cin>>h>>w>>a>>b;
  vector<vector<int> X(h,vector<int>(w,0));
  if(h==w){
    if(a!=b){
puts("No");
    }
        else{
rep(i,h-(a-1)){
  rep(j,a){
  X.at(i).at(i+j)=1;
  }
        }
  rep(i=h-(a-1),h){
    X.at(i)=1;
  }
     rep(i=1,h){
       rep(j=i,h-a){
         X.at(i).at(j)=0;
       }
     }
      rep(i,h){
        rep(i,w){
          cout<<X.at(i).at(j)<<endl;
        }
      }
        }
  }
  else if{
    puts("No");
  }
}
      
       

    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:42: error: template argument 1 is invalid
    8 |   vector<vector<int> X(h,vector<int>(w,0));
      |                                          ^
a.cc:8:42: error: template argument 2 is invalid
a.cc:16:3: error: 'X' was not declared in this scope
   16 |   X.at(i).at(i+j)=1;
      |   ^
a.cc:19:10: error: lvalue required as left operand of assignment
   19 |   rep(i=h-(a-1),h){
      |         ~^~~~~~
a.cc:3:28: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                            ^
a.cc:19:13: error: lvalue required as increment operand
   19 |   rep(i=h-(a-1),h){
      |           ~~^~~
a.cc:3:49: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                                 ^
a.cc:20:5: error: 'X' was not declared in this scope
   20 |     X.at(i)=1;
      |     ^
a.cc:22:12: error: lvalue required as left operand of assignment
   22 |      rep(i=1,h){
      |            ^
a.cc:3:28: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                            ^
a.cc:22:12: error: lvalue required as increment operand
   22 |      rep(i=1,h){
      |            ^
a.cc:3:49: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                                 ^
a.cc:24:10: error: 'X' was not declared in this scope
   24 |          X.at(i).at(j)=0;
      |          ^
a.cc:29:17: error: 'X' was not declared in this scope
   29 |           cout<<X.at(i).at(j)<<endl;
      |                 ^
a.cc:29:28: error: 'j' was not declared in this scope
   29 |           cout<<X.at(i).at(j)<<endl;
      |                            ^
a.cc:34:10: error: expected '(' before '{' token
   34 |   else if{
      |          ^
      |          (
Language: C++

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

int main() {
 int h,w,a,b;
  cin>>h>>w>>a>>b;
  vector<vector<int> X(h,vector<int>(w,0));
  if(h==w){
    if(a!=b){
puts("No");
    }
        else{
rep(i,h-(a-1)){
  rep(j,a){
  X.at(i).at(i+j)=1;
  }
        }
  rep(i=h-(a-1),h){
    X.at(i)=1;
  }
     rep(i=1,h){
       rep(j=i,h-a){
         X.at(i).at(j)=0;
       }
     }
      rep(i,h){
        rep(i,w){
          cout<<X.at(i).at(j)<<endl;
        }
      }
        }
  }
  else if(h>w){
    if(
  }
  else if(h<w){
  }
}

      
       

    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:42: error: template argument 1 is invalid
    8 |   vector<vector<int> X(h,vector<int>(w,0));
      |                                          ^
a.cc:8:42: error: template argument 2 is invalid
a.cc:16:3: error: 'X' was not declared in this scope
   16 |   X.at(i).at(i+j)=1;
      |   ^
a.cc:19:10: error: lvalue required as left operand of assignment
   19 |   rep(i=h-(a-1),h){
      |         ~^~~~~~
a.cc:3:28: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                            ^
a.cc:19:13: error: lvalue required as increment operand
   19 |   rep(i=h-(a-1),h){
      |           ~~^~~
a.cc:3:49: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                                 ^
a.cc:20:5: error: 'X' was not declared in this scope
   20 |     X.at(i)=1;
      |     ^
a.cc:22:12: error: lvalue required as left operand of assignment
   22 |      rep(i=1,h){
      |            ^
a.cc:3:28: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                            ^
a.cc:22:12: error: lvalue required as increment operand
   22 |      rep(i=1,h){
      |            ^
a.cc:3:49: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                                 ^
a.cc:24:10: error: 'X' was not declared in this scope
   24 |          X.at(i).at(j)=0;
      |          ^
a.cc:29:17: error: 'X' was not declared in this scope
   29 |           cout<<X.at(i).at(j)<<endl;
      |                 ^
a.cc:29:28: error: 'j' was not declared in this scope
   29 |           cout<<X.at(i).at(j)<<endl;
      |                            ^
a.cc:36:3: error: expected primary-expression before '}' token
   36 |   }
      |   ^
a.cc:35:8: error: expected ')' before '}' token
   35 |     if(
      |       ~^
      |        )
   36 |   }
      |   ~     
a.cc:36:3: error: expected primary-expression before '}' token
   36 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;
int x, y, a, b, x1sum[101] = { 0 }, y1sum[101] = { 0 };
#define x0sum x-x1sum
#define y0sum y-y1sum
bool f[101][101] = { false };
void prt()
{
	for (int i = 0; i < y; ++i)
	{
		for (int j = 0; j < x; ++j)
			cout << f[i][j];
		cout << endl;
	}
	exit(0);
}
void Try(int i)
{
	for (int j = 0; i < y; ++j)
	{
		if ((min(x0sum[i], x1sum[i]) < a) && (min(y0sum[j], y1sum[j]) < b))
		{
			f[i][j] = true;
			++x1sum[i]; ++y1sum[j];
			if ((i == x - 1) && (__min(x0sum[i], x1sum[i]) == a) && (__min(y0sum[j], y1sum[j]) == b))
				prt();
			else
				Try(i + 1);
			f[i][j] = false; --x1sum[i]; --y1sum[j];
		}
	}
}
int main()
{
	ios::sync_with_stdio(false);
	cin >> y >> x >> a >> b;
	Try(0);
	cout << 'No';
	return 0;
}

Compiler output:
a.cc:38:17: warning: multi-character character constant [-Wmultichar]
   38 |         cout << 'No';
      |                 ^~~~
a.cc: In function 'void Try(int)':
a.cc:25:46: error: '__min' was not declared in this scope
   25 |                         if ((i == x - 1) && (__min(x0sum[i], x1sum[i]) == a) && (__min(y0sum[j], y1sum[j]) == b))
      |                                              ^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int H,W,A,B;
    cin >> H >> W >> A >> B;
    vector<int> v(W);
    if(H%W!=0 && W%H!=0){
        cout << "No" << endl;
    }else{
        for(int i=0;i<W;i++){
            if(i<A){
                v[i] = 1;
            }else{
                v[i] = 0;
            }
        }
        for(int i=0;i<W;i++){
            cout << v[i];
        }
        cout << endl;

        for(int i=0;i<H-1;i++){
            for(int n=0;n<A;n++){
                v[i%W+n] = 0;
                v[(i+A)%W +n] = 1;

            for(int j=0;j<W;j++){
            cout << v[j];
            }
            cout << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: Java

import java.util.Scanner;
public class Main{
	publimport java.util.Scanner;
public class Main{
	/*public static void main(String[] args) {
		Scanner sc =new Scanner(System.in);
		int N=sc.nextInt();
		int K=sc.nextInt();
	}*/
	public static void main(String[] args) {
		Scanner sc =new Scanner(System.in);
		int H=sc.nextInt();
		int W=sc.nextInt();
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(B==0) {
			for(int i=0;i<H;i++) {
				int j=0;
				for(;j<A;j++)System.out.print(1);
				for(;j<W;j++)System.out.print(0);
				System.out.println();
			}
			return;
		}
		if(A==0) {
			int i=0;
			for(;i<B;i++) {
				for(int j=0;j<W;j++) {

					System.out.print(1);
				}
				System.out.println();
			}
			for(;i<H;i++) {
				for(int j=0;j<W;j++) {

					System.out.print(0);
				}
				System.out.println();
			}
			return;
		}
		if(A*H+W*B==A*W+B*H) {
			int i=0;
			for(;i<B;i++) {
				int j=0;
				for(j=0;j<A;j++)System.out.print(0);
				for(;j<W;j++)System.out.print(1);
				System.out.println();
			}
			for(;i<H;i++) {
				int j=0;
				for(j=0;j<A;j++)System.out.print(1);
				for(;j<W;j++)System.out.print(0);
				System.out.println();
			}

			return;
		}
		int[] h=new int[H];
		int[] w=new int[W];
		if(W*B==H*A||W*(B)==H*(W-A)||W*(H-B)==H*(A)) {//||W*(H-B)==H*(W-A)
			for(int i=0;i<H;i++) {

				for(int j=0;j<W;j++) {
					if(h[i]<A&&w[j]<B) {
						h[i]++;
						w[j]++;
						System.out.print(0);
					}else {
						System.out.print(1);
					}

				}
				System.out.println();
			}
			return;
		}
		System.out.println("No");
	}

}


Compiler output:
Main.java:3: error: ';' expected
	publimport java.util.Scanner;
	               ^
Main.java:3: error: <identifier> expected
	publimport java.util.Scanner;
	                            ^
Main.java:82: error: reached end of file while parsing
}
 ^
3 errors
Language: C++

#include <iostream>
using namespace std;

int main() {
	int n,k;
	int p[200001];
	cin >> n >> k;
	for(int i=1; i<=n; i++){
		cin >> p[i];
	}
	int ans = 0;
	int streat = 0;
	int a = 0;
	int b = 0;
	for(int i=k; i<=n; i++){
		if(a == 0){
			ans += 1;
			a = 1;
			for(int j = i-k+2; j<=i; j++){
				if(p[i-k+1] > p[j] || (p[i+1] < p[j] && 0 <= p[i+1] < 200001)){
					a = 0;
					break;
				}
			}
			if(a == 0){
				b = 0;
				for(int j = i-k+1; j!=i; j++){
					if(p[j] > p[j+1]){
						b = 1;
						break;
					}
				}
				if(b == 0){
					streat += 1;
				}
		}
		}else{
			a = 1;
			for(int j = i-k+2; j<=i; j++){
				if(p[i-k+1] > p[j] || (p[i+1] < p[j] && 0 <= p[i+1] < 200001)){
					a = 0;
					break;
				}
			}
			if(a == 0){
				b = 0;
				for(int j = i-k+1; j!=i; j++){
					if(p[j] > p[j+1]){
						b = 1;
						break;
					}
				}
				if(b == 0){
					streat += 1;
				}
		}
	}
	if(streat == 0){
		cout << ans << '\n';
		return 0;
	}
	cout << ans - streat + 1 << '\n';
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:64:2: error: expected '}' at end of input
   64 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define rep(I,j,k) for(I=j;i<=k;++I)

#define N 1005

#define pii pair<int,int>

#define mkp make_pair

#define X first

#define Y second

int n,m,a1,a2,b1,b2;

pii aa[N];int ans[N][N];

void exgcd(int a,int b,int &x,int &y,int &d){

	if(!b)d=a,x=1,y=0;

	else{exgcd(b,a%b,y,x,d);y=a/b*x;}

}

void f(int x,int y){

	int I;

	sort(aa+1,aa+n+1);

	rep(I,n-y+1,n)--aa[I].X,ans[aa[I].Y][x]=1;

}

int main(){

	int x,y,d,z,a,b,i,j;

	scanf("%d%d%d%d",&n,&m,&a1,&b1);

	a2=m-a1,b2=n-b1;a=a1-a2,b=b2-b1;

	exgcd(a,b,x,y,d);z=b2*m-a2*n;

	if(z%d){

		puts("-1");return 0;

	}

	x*=z/d;x=(x%b+b)%b;y=(z-a*x)/b;

	rep(I,1,x)aa[I]=mkp(a1,i);

	rep(I,x+1,n)aa[I]=mkp(a2,i);

	rep(I,y+1,m)f(I,b2);

	rep(I,1,y)f(I,b1);

	rep(I,1,n){

		rep(j,1,m)printf("%d",ans[I][j]);

		puts("");

	}

	return 0;

}

Compiler output:
a.cc: In function 'void f(int, int)':
a.cc:5:28: error: 'i' was not declared in this scope
    5 | #define rep(I,j,k) for(I=j;i<=k;++I)
      |                            ^
a.cc:35:9: note: in expansion of macro 'rep'
   35 |         rep(I,n-y+1,n)--aa[I].X,ans[aa[I].Y][x]=1;
      |         ^~~
a.cc: In function 'int main()':
a.cc:57:13: error: 'I' was not declared in this scope
   57 |         rep(I,1,x)aa[I]=mkp(a1,i);
      |             ^
a.cc:5:24: note: in definition of macro 'rep'
    5 | #define rep(I,j,k) for(I=j;i<=k;++I)
      |                        ^
a.cc:59:13: error: 'I' was not declared in this scope
   59 |         rep(I,x+1,n)aa[I]=mkp(a2,i);
      |             ^
a.cc:5:24: note: in definition of macro 'rep'
    5 | #define rep(I,j,k) for(I=j;i<=k;++I)
      |                        ^
a.cc:61:13: error: 'I' was not declared in this scope
   61 |         rep(I,y+1,m)f(I,b2);
      |             ^
a.cc:5:24: note: in definition of macro 'rep'
    5 | #define rep(I,j,k) for(I=j;i<=k;++I)
      |                        ^
a.cc:63:13: error: 'I' was not declared in this scope
   63 |         rep(I,1,y)f(I,b1);
      |             ^
a.cc:5:24: note: in definition of macro 'rep'
    5 | #define rep(I,j,k) for(I=j;i<=k;++I)
      |                        ^
a.cc:65:13: error: 'I' was not declared in this scope
   65 |         rep(I,1,n){
      |             ^
a.cc:5:24: note: in definition of macro 'rep'
    5 | #define rep(I,j,k) for(I=j;i<=k;++I)
      |                        ^
Language: C++

#include <bits/stdc++.h>
#define int int64_t
#define rep(i, N) for(int i=0; i<N; i++)
using namespace std;
using pair = pair<int, int>;
using tup  = tuple<int, int, int>;
using vec  = vector<int>;
using vvec = vector<vec>;

// プロトタイプ宣言
// int myfunc(int, vvec);

// グローバル変数
// int N, M;
// vvec data(N, vec(M));

// 関数：

signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	vector<int> H(N);
	return 0;
}
// std::string str;
// str = std::to_string(int i);
// bitset<3> s(N);


Compiler output:
a.cc: In function 'int main()':
a.cc:22:23: error: 'N' was not declared in this scope
   22 |         vector<int> H(N);
      |                       ^
Language: Java

import java.math.BigInteger;
import java.util.Scanner;

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

        int n = in.nextInt();
        BigInteger []nums = new BigInteger[n];
        for (int i = 0 ; i < n ; i++){
            nums[i] = in.nextBigInteger();
        }
        BigInteger sum = BigInteger.ZERO;
        for (int i = 0 ; i < n - 1; i++){
            for (int j = i + 1; j < n; j++){
                sum = sum.add(lcm(nums[i], nums[j]));
            }
            sum = sum.mod(BigInteger.valueOf(998244353));
        }
        System.out.println(sum.toString());
    }


    public static BigInteger gcd(BigInteger a, BigInteger b)
    {
        if (a.equals(BigInteger.ZERO))
            return b;
        return gcd(b.mod(a), a);
    }

    public static BigInteger lcm(BigInteger a, BigInteger b)
    {
        return (a.multiply(b)).divide(gcd(a, b));
    }
}


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

public class Main{
	public static void main(String[] args) {
		Scanner sc =new Scanner(System.in);
		int H=sc.nextInt();
		int W=sc.nextInt();
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(B==0) {
			for(int i=0;i<H;i++) {
				int j=0;
				for(;j<A;j++)System.out.print(1);
				for(;j<W;j++)System.out.print(0);
				System.out.println();
			}
			return;
		}
		if(A==0) {
			int i=0;
			for(;i<B;i++) {
				for(int j=0;j<W;j++) {

					System.out.print(1);
				}
				System.out.println();
			}
			for(;i<H;i++) {
				for(int j=0;j<W;j++) {

					System.out.print(1);
				}
				System.out.println();
			}
			return;
		}
		if(A*H+W*B==A*W+B*H) {
			int i=0;
			for(;i<B;i++) {
				int j=0;
				for(j=0;j<A;j++)System.out.print(0);
				for(;j<W;j++)System.out.print(1);
				System.out.println();
			}
			for(;i<H;i++) {
				int j=0;
				for(j=0;j<A;j++)System.out.print(1);
				for(;j<W;j++)System.out.print(0);
				System.out.println();
			}

			return;
		}
		int[] h=new int[H];
		int[] w=new int[W];
		if(W*B==H*A) {//||W*(H-B)==H*(W-A)||W*(B)==H*(W-A)||W*(H-B)==H*(A)
			for(int i=0;i<H;i++) {

				for(int j=0;j<W;j++) {
					if(h[i]<A&&w[j]<B) {
						h[i]++;
						w[j]++;
						System.out.print(0);
					}else {
						System.out.print(1);
					}

				}
				System.out.println();
			}
			return;
		}
		System.out.println("No");
	}

}


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<iostream>
using namespace std;

#define int long long
using P=pair<int,int>;

const int MOD=1e9+7;
const int INF=(int)(1)<<62;
const int MAX=1e5;

//int hw[1000][1000];
int a,b;
int h,w;


void solve(){
    cin>>h>>w;
    cin>>a>>b;
    if((b==0 && h!=1)||(a==0 && w!=1)){
        cout<<"No"<<endl;
        return;
    }
    if(a==0 && b==0){
        for(int i=0; i<h; i++){
            for(int j=0; j<w; j++){
                cout<<1;
            }
            cout<<endl;
        }
        return;1
    }
    if(a==0){
        for(int i=0; i<b; i++){
            cout<<1<<endl;
        }
        for(int i=0; i<h-b; i++){
            cout<<0<<endl;
        }
        return;
    }
    if(b==0){
        for(int i=0; i<a; i++){
            cout<<1;
        }
        for(int i=0; i<w-a; i++){
            cout<<0;
        }
        cout<<endl;
        return;
    }
    if(h/b==w/a && h%b==0 && w%a==0){
        for(int i=0; i<h/b; i++){
            for(int j=0; j<b; j++){
                for(int k=0; k<a*i; k++){
                    cout<<0;
                }
                for(int k=0; k<a; k++){
                    cout<<1;
                }
                for(int k=0; k<w-a*(i+1); k++){
                    cout<<0;
                }
                cout<<endl;
            }
        }
        return;
    }
    if(w>=a*3 || h>=b*3){
        cout<<"No"<<endl;
        return;
    }
    for(int i=0; i<h; i++){
        for(int j=0; j<w; j++){
            if((i%(2*b))<b && (j%(2*a))<a){
                //cout<<i<<" "<<i%(2*h)<<" "<<endl;
                //cout<<j<<" "<<j%(2*w)<<" "<<w<<endl;
                cout<<1;
            }else if(!((i%(2*b))<b) && !((j%(2*a))<a)){
                cout<<1;
            }
            else{
                cout<<0;
            }
        }
        cout<<endl;
    }
}

signed main(){
    //while(1)
    solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:30:17: error: expected ';' before '}' token
   30 |         return;1
      |                 ^
      |                 ;
   31 |     }
      |     ~
Language: Java

import java.util.Scanner;

public class atcorder381 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int k = in.nextInt();

		int[] p = new int[n];

		while(in.hasNext()){
			for(int i = 2; i< n;i++) {
			p[i] = in.nextInt();
			}
		}



		for(int j= 2; j<n-2 ;j++) {
			for(int l=1; l<k; l++) {
				if(args[l+2]) {

				}

			}

		}

	}

}


Compiler output:
Main.java:3: error: class atcorder381 is public, should be declared in a file named atcorder381.java
public class atcorder381 {
       ^
Main.java:23: error: incompatible types: String cannot be converted to boolean
				if(args[l+2]) {
				       ^
2 errors
Language: Java

import java.math.BigInteger;
import java.util.Scanner;

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

        int n = in.nextInt();
        BigInteger []nums = new BigInteger[n];
        for (int i = 0 ; i < n ; i++){
            nums[i] = in.nextBigInteger();
        }
        BigInteger sum = BigInteger.ZERO;
        for (int i = 0 ; i < n - 1; i++){
            for (int j = i + 1; j < n; j++){
                sum = sum.add(lcm(nums[i], nums[j]));
            }
            sum = sum.mod(BigInteger.valueOf(998244353));
        }
        System.out.println(sum.toString());
    }


    public static BigInteger gcd(BigInteger a, BigInteger b)
    {
        if (a.equals(BigInteger.ZERO))
            return b;
        return gcd(b.mod(a), a);
    }

    public static BigInteger lcm(BigInteger a, BigInteger b)
    {
        return (a.multiply(b)).divide(gcd(a, b));
    }
}


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

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;

#define fi first
#define se second
#define mp make_pair
#define fastIO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);

const int N = 1005;
int H[N], W[N];
int sol[N][N];

int main(){
  fastIO;
  int h, w, a, b;
  cin >> h >> w >> a >> b;
  for(int i = 0 ; i < h; i ++ ){
    for(int j = 0 ; j < w ; j ++ ){
      sol[i][j] = ((i%2)==(j%2));
    }
  }
  for(int i = 0 ; i < w/2-a; i ++ ){
    for(int j = 0 ; j < h; j ++ ){
      sol[j][2 * i + w%2] = 1 - sol[j][2 * i + w%2];
    }
  }
  for(int i = 0 ; i < h/2-b; i ++ ){
    for(int j = 0 ; j < W; j ++ ){
      sol[2 * i + h%2][j] = 1 - sol[2 * i + h%2][j];
    }
  }
  for(int i = 0 ; i < h; i ++ ){
    for(int j = 0 ; j < w; j ++ ){
      H[i] += sol[i][j];
      W[j] += sol[i][j];
    }
  }
  for(int i = 0 ; i < h; i ++ ){
    if(H[i] != a && w - H[i] != a){
      cout << -1;
      return 0;
    }
  }
  for(int i = 0 ; i < w; i ++ ){
    if(W[i] != b && h - W[i] != b){
      cout << -1;
      return 0;
    }
  }
  for(int i = 0 ; i < h; i ++ ){
    for(int j = 0 ;j < w; j ++ ){
      cout << sol[i][j];
    }
    cout << "\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   32 |     for(int j = 0 ; j < W; j ++ ){
      |                     ~~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int H,W,A,B;
  cin>>H>>W>>A>>B;
  if(H=3 and W=3 andA=1 and B=1)
    cout<<"100 010 001";
  if(H=1 and W=5 and A=2 and B=0)
    cout<<"01010";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: lvalue required as left operand of assignment
    7 |   if(H=3 and W=3 andA=1 and B=1)
      |        ~~^~~~~
a.cc:7:17: error: expected ')' before 'andA'
    7 |   if(H=3 and W=3 andA=1 and B=1)
      |     ~           ^~~~~
      |                 )
a.cc:9:26: error: lvalue required as left operand of assignment
    9 |   if(H=1 and W=5 and A=2 and B=0)
      |                        ~~^~~~~
Language: C++

#include <bits/stdc++.h>
#define int int64_t
#define rep(i, N) for(int i=0; i<N; i++)
using namespace std;
using pair = pair<int, int>;
using tup  = tuple<int, int, int>;
using vec  = vector<int>;
using vvec = vector<vec>;

// プロトタイプ宣言
// int myfunc(int, vvec);

// グローバル変数
// int N, M;
// vvec data(N, vec(M));

// 関数：

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

	int H, W, A, B;
	cin >> H >> W >> A >> B;

	if(A == 0 && B == 0) {
		rep(i, H) {
			rep(j, W) cout << 0;
			cout << endl;
		}
		return 0;
	}
	else if(A == 0 && B != 0) {
		rep(i, B) {
			cout << 1;
			cout << endl;
		}
		rep(i, H-B) {
			cout << 0;
			cout << endl;
		}
		return 0;
	}
	else if(A != 0 && B = 0)) {			rep(j, A) cout << 1;
		rep(j, W-A) cout << 0;
		cout << endl;
		}
		return 0;
		
	}
	else if((W/A == H/B) && W%A == 0 && H%B == 0) {
		rep(i, B) {
			rep(j, A) cout << 1;
			rep(j, W-A) cout << 0;
		cout << endl;
		}
		rep(i, H-B) {
			rep(j, A) cout << 0;
			rep(j, W-A) cout << 1;
			cout << endl;
		}
		return 0;
	}
	else cout << "No" << endl;
	
	return 0;
}
// std::string str;
// str = std::to_string(int i);
// bitset<3> s(N);


Compiler output:
a.cc: In function 'int main()':
a.cc:44:24: error: lvalue required as left operand of assignment
   44 |         else if(A != 0 && B = 0)) {                     rep(j, A) cout << 1;
      |                 ~~~~~~~^~~~
a.cc:44:33: error: expected primary-expression before ')' token
   44 |         else if(A != 0 && B = 0)) {                     rep(j, A) cout << 1;
      |                                 ^
a.cc: At global scope:
a.cc:51:9: error: expected unqualified-id before 'else'
   51 |         else if((W/A == H/B) && W%A == 0 && H%B == 0) {
      |         ^~~~
a.cc:64:9: error: expected unqualified-id before 'else'
   64 |         else cout << "No" << endl;
      |         ^~~~
a.cc:66:9: error: expected unqualified-id before 'return'
   66 |         return 0;
      |         ^~~~~~
a.cc:67:1: error: expected declaration before '}' token
   67 | }
      | ^