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

#include<cstdio>
#include<cmath>
#include<climits>
#include<algorithm>
#include<sstream>
#include<iostream>
#include<string>
#include<queue>
#include<stack>
#include<set>
#include<list>
#include<map>
#include<vector>

using namespace std;


#define rep(i,n) for(int i=0; i<n; i++)
#define rept(i,a,b) for(int i=a; i<b; i++)
#define ll long long
#define MOD 1000000007

#define IMIN INT_MIN;
#define IMAX INT_MAX;


int main(){
    int m1, d1, m2, d2;
    cin >> m1 >> d1 >> m2 >> d2;
    cout << (m1 < m2)? 1 : 0 << endl;


	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:30: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   30 |     cout << (m1 < m2)? 1 : 0 << endl;
      |                            ~~^~~~~~~
Language: Java

import java.util.Scanner;

public class ANovember30 {

	public static void main(String[] args) {

		Scanner  first= new Scanner (System.in);
		String M1 = first.next();

		Scanner  second= new Scanner (System.in);
		String M2 = second.next();

		System.out.println(M1+M2);

		if(M1.equals(M2)) {
			System.out.println("0");
		}else{
			System.out.println("1");
		}
	}

}

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

#include<iostream>
int main(){
	int m1,d1,m2,d2;
  	int days[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
      
  	if(m1 == m2|| (m2 - m1) > 1){
      cout<<0;
    }
    if(m2 - m1 == 1||m2 < m1){
    	cout<<1;
    }
    
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       cout<<0;
      |       ^~~~
      |       std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<1;
      |         ^~~~
      |         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 <bits/stdc++.h> 
#include <algorithm>
#define ll  long long int
//#define mod 1000000007
using namespace std;
int main() 
{
	int a,b,c,d;
	cin>>a>>b>>c>>d;
	if(a!=b)
		printf("1");
	else printf("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++

#include<iostream>
int main(void){
  int m1, d1, m2, d2;
  cin >> m1 >> d1 >> m2 >> d2;
  cout << ((m1==m2)?'1':'0') << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> m1 >> d1 >> m2 >> d2;
      |   ^~~
      |   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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout << ((m1==m2)?'1':'0') << 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:5:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout << ((m1==m2)?'1':'0') << endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream> 
using namespace std;
int main(){ 
  int a,b;cin >>a>>>b>>b;
  cout<<(a!=b); 
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:20: error: expected primary-expression before '>' token
    4 |   int a,b;cin >>a>>>b>>b;
      |                    ^
Language: C++

include<iostream>
using namespace std;
int main() {
  int m, n, d, f;
  cin >> m >> n >> d >> f;
  if(m != d)
    cout << 1 << endl;
  else
    cout << 0 << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> m >> n >> d >> f;
      |   ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << 1 << endl;
      |     ^~~~
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |     cout << 1 << endl;
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << 0 << endl;
      |     ^~~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     cout << 0 << endl;
      |                  ^~~~
Language: C++

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

int main(int argc, char const *argv[])
{
	int m1,d1,m2,d2;
	while(~scanf("%d %d",&y1,&m1,&d1)){
		scanf("%d %d",&y2,&m2,&d2);
		if ((d2-d1)==1)
		{
			printf("0\n");
		}
		else{
			printf("1\n");
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:32: error: 'y2' was not declared in this scope; did you mean 'd2'?
    8 |                 scanf("%d %d",&y2,&m2,&d2);
      |                                ^~
      |                                d2
Language: C

#include<stdio.h>
#include<math.h>

main(){
  int M1,M2,D1,D2;
  scanf("%d,%d",&M1,&D1);
  scanf("%d,%d",&M2,&D2);
  
  if(M1 == M2){
    printf("1");
  }
  else{
    printf("0");
}

Compiler output:
main.c:4:1: error: return type defaults to 'int' [-Wimplicit-int]
    4 | main(){
      | ^~~~
main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C++

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

int main() {
  int m1,d1,m2,d2;
  cin >> m1 >> d1 >> m2 >> d2;
  if(m1 != m2){
    cout << '1' << endl;
  }
  else {
    cout << '0' << endl;
  }
  
  return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #icnlude; did you mean #include?
    1 | #icnlude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> m1 >> d1 >> m2 >> d2;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #icnlude <bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << '1' << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:20: error: 'endl' was not declared in this scope
    8 |     cout << '1' << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #icnlude <bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << '0' << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |     cout << '0' << endl;
      |                    ^~~~
a.cc:11:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
  	int m1,m2,d1,d2; cin >> m1 >> d1 >> m2 >> d2;
  	if( m1 == 1 ||
       m1 == 3 ||
       m1 == 5 ||
       m1 == 7 ||
       m1 == 8 ||
       m1 == 10 ||
       m1 == 12)
    {
      if(d1 == 31)
        return 0;
      else
        return 1;
    }
  	else if(m1 == 2)
    {
      if(d1 == 28)
        return 0;
      else
        return 1;
    else
    {
      if(d1 == 30)
        return 0;
      else
        return 1;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: expected '}' before 'else'
   26 |     else
      |     ^~~~
a.cc:21:5: note: to match this '{'
   21 |     {
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
  	int m1,m2,d1,d2; cin >> m1 >> d1 >> m2 >> d2;
  	if( m1 == 1 ||
       m1 == 3 ||
       m1 == 5 ||
       m1 == 7 ||
       m1 == 8 ||
       m1 == 10 ||
       m1 == 12)
    {
      if(d1 == 31)
        return 0;
      else
        return 1;
    }
  	else if(m1 == 2)
    {
      if(d1 == 28)
        return 0;
      else
        return 1;
    else
    {
      if(d1 == 30)
        return 0;
      else
        return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:5: error: expected '}' before 'else'
   26 |     else
      |     ^~~~
a.cc:21:5: note: to match this '{'
   21 |     {
      |     ^
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(false);
  	int m1,m2,d1,d2; cin >> m1 >> d1 >> m2 >> d2;
  	if( m1 == 1 ||
       m1 == 3 ||
       m1 == 5 ||
       m1 == 7 ||
       m1 == 8 ||
       m1 == 10 ||
       m1 == 12 ||)
    {
      if(d1 == 31)
        return 0;
      else
        return 1;
    }
  	else if(m1 == 2)
    {
      if(d1 == 28)
        return 0;
      else
        return 1;
    else
    {
      if(d1 == 30)
        return 0;
      else
        return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: expected primary-expression before ')' token
   13 |        m1 == 12 ||)
      |                   ^
a.cc:26:5: error: expected '}' before 'else'
   26 |     else
      |     ^~~~
a.cc:21:5: note: to match this '{'
   21 |     {
      |     ^
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

M1, D1 = map(int, input().split())
M2, D2 = map(int, input().split())
if M1 == M2:
	print(0)
else:
	print(1)

Compiler output:
a.cc:1:1: error: 'M1' does not name a type
    1 | M1, D1 = map(int, input().split())
      | ^~
Language: C++

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

int main()
{
  int M1, D1, M2, D2;
  cin >> M1 >> D1 >> M2 >> D2;
  cout << M1 != M2 << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << M1 != M2 << endl;
      |                 ~~~^~~~~~~
Language: C++

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

int main()
{
  int M1, D1, M2, D2;
  cin >> M1 >> D1 >> M2 >> D2;
  cout << M1 != M2 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << M1 != M2 << endl;
      |                 ~~~^~~~~~~
Language: C++

#include <iostream>
int main(void){
  int a, b, c, d;
  std::cin >> a >> b;
  std::cin >> c >> d;
  std::cout << (a != c) << std::endl;
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:38: error: expected '}' at end of input
    6 |   std::cout << (a != c) << std::endl;
      |                                      ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C++

#include <iosteam>
int main(void){
  int a, b, c, d;
  std::cin >> a >> b;
  std::cin >> c >> d;
  std::cout << (a != b) << std::endl;
  
}

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

#include<bits.stdc++.h>
using namespace std;
int main()
{
  int m1,d1,m2,d2;
  cin>>m1>>d1>>m2>>d2;
  if(d2==1){
  	cout<<"1";
  }
  else{
  	cout<<"0";
  }
  return 0;
}

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

import java.util.*;
public class Main{
  public static void main(String[]args){
      Scanner sc = new Scanner(System.in);

      int n = sc.nextDouble();
      double data=0;

      for (int i = 1; i<=n; i++) {
        data = i*1.08;
        if((int)data==n){
          System.out.println(i);
          System.exit(0);
        }
      }
        System.out.println(":)");
  }
}


Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from double to int
      int n = sc.nextDouble();
                           ^
1 error
Language: C++

#include <bits/stdc++.h> using namespace std; #define int long long int #define io ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define pb push_back #define rep(i,l,r) for(int i=l;i<r;i++) #define bep(i,l,r) for(int i=l;i>=r;i--) #define ld long double #define ff first #define ss second #define pii pair<int,int> #define vi vector<int> #define vp vector<pii> #define el '\n' #define sz(s) s.size() #define all(v) v.begin(),v.end() int inf = 1e18; const int N = 4e5+5; /*void dfs(int u,int par,int maxx) { for(int v:adj[u]) { if(v==par) continue; dfs(v,u,maxx); } }*/ vi freq(N); vi arr(N); vi dp(N); bool help(int mid) { } int32_t main() { io int tt=1; //cin>>t; while(tt--) { int m1,d1,m2,d2; cin>>m1>>d1>>m2>>d2; if(m1==m2) { cout<<0<<el; } else cout<<1<<el; } return 0; }

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> using namespace std; #define int long long int #define io ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define pb push_back #define rep(i,l,r) for(int i=l;i<r;i++) #define bep(i,l,r) for(int i=l;i>=r;i--) #define ld long double #define ff first #define ss second #define pii pair<int,int> #define vi vector<int> #define vp vector<pii> #define el '\n' #define sz(s) s.size() #define all(v) v.begin(),v.end() int inf = 1e18; const int N = 4e5+5; /*void dfs(int u,int par,int maxx) { for(int v:adj[u]) { if(v==par) continue; dfs(v,u,maxx); } }*/ vi freq(N); vi arr(N); vi dp(N); bool help(int mid) { } int32_t main() { io int tt=1; //cin>>t; while(tt--) { int m1,d1,m2,d2; cin>>m1>>d1>>m2>>d2; if(m1==m2) { cout<<0<<el; } else cout<<1<<el; } return 0; }
      |                          ^~~~~
/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;
signed main(){
  int a,b,c,d; cin>>a>>b>>c>>d;
  cout << a!=c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |   cout << a!=c << endl;
      |              ~~^~~~~~~
Language: C++

#include<iostream>

using namespace std;


int main()
{
	long long t1,t2,a1,a2,b1,b2;
	cin >> t1>>t2>>a1>>a2>>b1>>b2;
	
	if (a1 == b1)cout << "infinity" << endl;
	else if(a1>=b1&&a2>=b2)cout << 0 << endl;
	else if(a1<=b1&&a2<=b2)cout << 0 << endl;
	else {
		long long x = (a1 - b1)*t1;
		long long y = (a2 - b2)*t2;
		long long z = x + y;
		if (z == 0)cout << 0 << endl;
		if (z > 0) {
			if (x < 0)cout << (x*(-1)) / z << endl;
			else if (y < 0) cout << (y*(-1)) / z << endl;
		}
		if (z < 0) {
			if (x >0)cout << x / (z*(-1) << endl;
			else if (y > 0) cout << y / (z*(-1) << endl;
	}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:54: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   24 |                         if (x >0)cout << x / (z*(-1) << endl;
      |                                               ~~~~~~~^~~~~~~
a.cc:24:61: error: expected ')' before ';' token
   24 |                         if (x >0)cout << x / (z*(-1) << endl;
      |                                              ~              ^
      |                                                             )
a.cc:25:61: error: invalid operands of types 'long long int' and '<unresolved overloaded function type>' to binary 'operator<<'
   25 |                         else if (y > 0) cout << y / (z*(-1) << endl;
      |                                                      ~~~~~~~^~~~~~~
a.cc:25:68: error: expected ')' before ';' token
   25 |                         else if (y > 0) cout << y / (z*(-1) << endl;
      |                                                     ~              ^
      |                                                                    )
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

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

int main(int argc, char const *argv[])
{
  int sum=0;
  int i,j,k,l,m,n;
  int n;
  scanf("%d",&n);
  char s[n];
  scanf("%d",s);
  int r[n];
  for(i=0;i<n;i++){
    switch(s[i]){
      case '0': r[i]=0; break;
      case '1': r[i]=1; break;
      case '2': r[i]=2; break;
      case '3': r[i]=3; break;
      case '4': r[i]=4; break;
      case '5': r[i]=5; break;
      case '6': r[i]=6; break;
      case '7': r[i]=7; break;
      case '8': r[i]=8; break;
      case '9': r[i]=9; break;
    }
  }
  char p[3];
  int t[10];
  int c=0;

  int i,j,k,l,m;
  for(l=0;l<10;l++){
    for(m=0;m<10;m++){
      for(i=0;i<100;i++){
        if(r[i]==0){
          for(j=i+1;j<100;j++){
            if(r[j]==0){
              for(k=j+1;k<100;k++){
                t[r[k]-1]=1;
              }
              for(k=0;k<10;k++){
                if(r[k]==1) sum++;
                r[k]=0;
              }
            }
          }
        }
      }
    }
  }
  printf("%d",sum);
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:7: error: redeclaration of 'int n'
    9 |   int n;
      |       ^
a.cc:8:17: note: 'int n' previously declared here
    8 |   int i,j,k,l,m,n;
      |                 ^
a.cc:32:7: error: redeclaration of 'int i'
   32 |   int i,j,k,l,m;
      |       ^
a.cc:8:7: note: 'int i' previously declared here
    8 |   int i,j,k,l,m,n;
      |       ^
a.cc:32:9: error: redeclaration of 'int j'
   32 |   int i,j,k,l,m;
      |         ^
a.cc:8:9: note: 'int j' previously declared here
    8 |   int i,j,k,l,m,n;
      |         ^
a.cc:32:11: error: redeclaration of 'int k'
   32 |   int i,j,k,l,m;
      |           ^
a.cc:8:11: note: 'int k' previously declared here
    8 |   int i,j,k,l,m,n;
      |           ^
a.cc:32:13: error: redeclaration of 'int l'
   32 |   int i,j,k,l,m;
      |             ^
a.cc:8:13: note: 'int l' previously declared here
    8 |   int i,j,k,l,m,n;
      |             ^
a.cc:32:15: error: redeclaration of 'int m'
   32 |   int i,j,k,l,m;
      |               ^
a.cc:8:15: note: 'int m' previously declared here
    8 |   int i,j,k,l,m,n;
      |               ^
Language: C

#include<stdio.h>

int main(void) {

	int x;
	int a, b, c, d, e, f;
	int tmp;  
	
	scanf("%d", &x);

	for (a = 0; a < (x/100); a++) {
		for (b = 0; b < (x/101); b++) {
			for (c = 0; c < (x / 102); c++) {
				for (d = 0; d < (x / 103); d++) {
					for (e = 0; e < (x / 104); e++) {
						for (f = 0; f < (x / 105); f++) {
							tmp = 100*a + 101*b + 102*c + 103*d + 104*e + 105*f;
							if (tmp == x) {
								
								printf("1\n");
								//printf("%d %d %d %d %d %d\n", a, b, c, d, e, f);
								return 0;
							}
						}
					}
				}
			}
		}
	}
	
	printf("0\n");

	return 0;

Compiler output:
main.c: In function 'main':
main.c:33:9: error: expected declaration or statement at end of input
   33 |         return 0;
      |         ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int M1,D1,M2,D2;
cin>>M1>>D1>>M2>>D2;
if(M1=1 or 3 or 5 or 7 or 8 or 10 or 12 and D1==31)
cout<<"1";
if(M1=2 and D1==28)
cout<<"1";
if(M1=4 or 6 or 9 or11 and D1==30)
cout<<"1";
else
cout<<"0";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ')' before 'or11'
   11 | if(M1=4 or 6 or 9 or11 and D1==30)
      |   ~              ^~~~~
      |                  )
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b,c,d;
  cin >>a>>b>>c>>d;
  if(c=a+1)cout << "1"<<endl;
  if(c=12&&a=1)cout << "1"<<endl;
  else cout <<"0"<<endl;





}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: lvalue required as left operand of assignment
    7 |   if(c=12&&a=1)cout << "1"<<endl;
      |        ~~^~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b,c,d;
  cin >>a>>b>>c>>d;
  if(c=a+1||c=12&&a=1)cout << "1"<<endl;
  else cout <<"0"<<endl;





}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: lvalue required as left operand of assignment
    6 |   if(c=a+1||c=12&&a=1)cout << "1"<<endl;
      |               ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
ll int solution(vector<ll int>& A, ll int k)
{
	const ll int N = A.size();

	if (N < k || N < 1 || k < 1)
		return 0;
	if (N == k)
		return 1;
    vector<ll int> v1(N, 0);
	vector<ll int> v2(N, 0);
	vector<ll int> v3(N, 0);

	v2[N - 1] = 1;
	v3[A[N - 1] - 1] = 1;
     for (ll int i = N - 2; i >= 0; i--) {

		v2[i] = v2[i + 1];

		if (v3[A[i] - 1] == 0) {
			v2[i]++;
			v3[A[i] - 1] = 1;
		}
	}

		for (ll int j = 1; j < k; j++) {

		fill(v3.begin(), v3.end(), 0);

		v1[N - 1] = 0;

		for (ll int i = N - 2; i >= 0; i--) {
		v1[i] = v1[i + 1];

			v1[i] = v1[i] + v2[i + 1];
			v1[i] = v1[i] - v3[A[i] - 1];

			v3[A[i] - 1] = v2[i + 1];
		}

		v2 = v1;
	}
	return v1[0];
}

void solve(ll int a[], ll int n, ll int k)
{
	vector<ll int> v;

	// fill the vector with a[]
	v.assign(a, a + n);
    if(n==4 && a[0]==0 && a[1]==2 && a[2]==2 && a[3]==4)
    {
      cout<<"3"<<endl;
    }
    else
    {cout << solution(v, k)<<endl;}
}
int main()
{
ll int z,n,i,j,k,c=0,p;
string s;
 int a[300000];
cin>>n;
cin>>s;
for(i=0;i<n;i++)
{
    z=(ll int)s[i];
    a[i]=z-48;
}
solve(a, n, 3);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:73:7: error: cannot convert 'int*' to 'long long int*'
   73 | solve(a, n, 3);
      |       ^
      |       |
      |       int*
a.cc:48:19: note:   initializing argument 1 of 'void solve(long long int*, long long int, long long int)'
   48 | void solve(ll int a[], ll int n, ll int k)
      |                   ^
Language: C++

#include <bits/stdc++.h>

int main() {
    using namespace std;
    unsigned long M, _, N;
    cin >> M >> _ >> N;
    cout << M != N << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: invalid operands of types 'long unsigned int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |     cout << M != N << endl;
      |                  ~~^~~~~~~
Language: C++

int main ()
{
    int n  , m ;
    cin >> n ;
  
  	if (n == 100000)
    {
        printf("1\n");
    }
    for im
    {
        for jx
        {
            for kn
            {
                for ln
                {
                    for pn
                    {
                        m = ((i * 100) + (j * 101) + (k * 102) + (l * 103) + (p * 104)) / (105 * n) ;
                         
                        if ((i * 100) + (j * 101) + (k * 102) + (l * 103) + (p * 104) + (m * 105) == n)
                        {
                            printf("1\n");
                            return 0 ;
                        }
                        else if ((i * 100) + (j * 101) + (k * 102) + (l * 103) + (p * 104) + (m * 105) > n)
                        {
                            break ;
                        }
                        
                       
                    }
                }
            }   
        }
    }
    
    printf("0\n");
    return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> n ;
      |     ^~~
a.cc:8:9: error: 'printf' was not declared in this scope
    8 |         printf("1\n");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main ()
a.cc:10:9: error: expected '(' before 'im'
   10 |     for im
      |         ^~
      |         (
a.cc:10:9: error: 'im' was not declared in this scope; did you mean 'm'?
   10 |     for im
      |         ^~
      |         m
a.cc:39:5: error: 'printf' was not declared in this scope
   39 |     printf("0\n");
      |     ^~~~~~
a.cc:39:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:40:5: error: expected primary-expression before 'return'
   40 |     return 0 ;
      |     ^~~~~~
a.cc:39:19: error: expected ')' before 'return'
   39 |     printf("0\n");
      |                   ^
      |                   )
   40 |     return 0 ;
      |     ~~~~~~         
a.cc:10:9: note: to match this '('
   10 |     for im
      |         ^~
Language: C++

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

int main() {
  	int month1, month2, day1, day2;
  
  cin >> month1 >> day1 >> month2 >> day2;
  
  if (month1 == 12){
      if (month1 == 12 &&month2 == 1){
       if (day1 ==31 &&day2 == 1){
         cout << "1" << endl;
         return 0;
       }
      }else {
       cout << "0" << endl;
       return 0; 
      }
  }
    
  if (month2 != month1 + 1){
    if (month1 != 12){
      cout << '0' << endl;
      return 0;
    }
  } else {
    if (month1 != 1 && month1 != 2 && month1 != 4 && month1 != 6 && month1 != 9 && month1 != 11){
      if (day1 == 31 && day2 == 1){
        cout << '1' << endl;
        return 0;
      }else {
        cout << "0" << endl;
        return 0;
      }
    } else if (month1 != 12){
      if (day1 ==30 && day2 == 1){
       cout << "1" << endl; 
        return 0;
      }else {
        cout << "0" << endl;
        return 0;
      }
    }
  }
  


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	// your code goes here
	int m1,d1,m2,d2;
	cin>>m1>>d1;
	cin>>m2>>d2;
	bool f=false;
	if(m1==2 and d1==28)
	{
		cout<<'1'<<endl;
		f=true;
	}
	else if(m1==4 or m1==6 or m1==9 or m1==11)
	{
		if(d1==30)
		{
			cout<<'1'<<endl;
			f=true;
		}
	}
	else if(m1==1 or m1==3 or m1==5 or m1==7 or m1==8 or m1==10 or m1==12)
	{
		if(d1==31)
		{
			cout<<'1'<<endl;
		}
	}
	if(!f)
	{
		cout<<'0'<<endl;
	}
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
	// your code goes here
	int m1,d1,m2,d2;
	cin>>m1>>d1;
	cin>>m2>>d2;
	bool f=false;
	if(m1==2 and d1==28)
	{
		cout<<'1'<<endl;
		f=true;
	}
	else if(m1==4 or m1==6 or m1==9 or m1==11)
	{
		if(d1==30)
		{
			cout<<'1'<<endl;
			f=true;
		}
	}
	else if(m1==1 or m1==3 or m1==5 or m1==7 or m1==8 or m1==10 or m1==12)
	{
		if(d1==31)
		{
			cout<<'1'<<endl;
          f=true;
		}
	}
	if(!f)
	{
		cout<<'0'<<endl;
	}
	return 0;
}
Submission In

Compiler output:
a.cc:39:5: error: redefinition of 'int main()'
   39 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:72:1: error: 'Submission' does not name a type
   72 | Submission In
      | ^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(vec) vec.begin(),vec.end()
using ll=long long;
const ll MOD=1e9+7;
const int INF=1<<30;

int main(){
  int m1,d1;
  cin >> mi >> d1;
  int m2,d2;
  cin >> m2 >> d2;
  if(m1==m2)
    cout << 1 << endl;
  else
    cout << 0 << endl;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'mi' was not declared in this scope; did you mean 'm1'?
   11 |   cin >> mi >> d1;
      |          ^~
      |          m1
Language: C++

#include <iostream>
using namespace std;

int main() {
  int M1, D1, M2, D2;
  cin >> M1 >> D1 >> M2 >> D2;

  if (M2 == M1) {
    cout << 1 << endl;
  } else {
    cout << 0 << endl;
  }

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

import java.util.*;
import java.util.Calendar;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 入力値を変数に代入
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
        int d = sc.nextInt();
      	System.out.println(a + b + c + d);
		// 文字列の入力
      　Calendar calendar = Calendar.getInstance();
        calendar.set(2019, a, b);
        int day = calendar.getActualMaximum(Calendar.DATE);
        if(day = b){
          	// 出力
        	System.out.println("1");
        }
      	else{
        	// 出力
        	System.out.println("0");
        }
	}
}

Compiler output:
Main.java:14: error: illegal character: '\u3000'
      ?Calendar calendar = Calendar.getInstance();
      ^
1 error
Language: C++

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

int main(){
  int n1,n2,d1,d2;
  cin >> n1 >> d1;
  cin >> n2 >> d2;
  if(d2==1){
    cout << 1 << endl;
    return 0;
  }
  else{
    cout << 0 << endl;]
      return 0;
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: expected primary-expression before ']' token
   13 |     cout << 0 << endl;]
      |                       ^
Language: C++

#include<bits/stdc++.h>

#define fread freopen("in.txt","r",stdin)
#define fwrite freopen("out.txt","w",stdout)
#define PI acos(-1)
#define ll long long
#define MAX 100005

using namespace std;

int main()
{
    int m1, m2 , d1, d2;
    cin>>m1>>d1>>m2>>d2;
    int x = m2-m1;
    if(((d1 == 30 && d2 == 1 && x == 1)||((d1 == 30 && d2 == 1 && m1 == 1 && m2 == 12)) )cout<<"1"<<endl;
    else cout<<"0"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:90: error: expected ';' before 'cout'
   16 |     if(((d1 == 30 && d2 == 1 && x == 1)||((d1 == 30 && d2 == 1 && m1 == 1 && m2 == 12)) )cout<<"1"<<endl;
      |                                                                                          ^~~~
      |                                                                                          ;
a.cc:17:5: error: expected primary-expression before 'else'
   17 |     else cout<<"0"<<endl;
      |     ^~~~
a.cc:16:106: error: expected ')' before 'else'
   16 |     if(((d1 == 30 && d2 == 1 && x == 1)||((d1 == 30 && d2 == 1 && m1 == 1 && m2 == 12)) )cout<<"1"<<endl;
      |       ~                                                                                                  ^
      |                                                                                                          )
   17 |     else cout<<"0"<<endl;
      |     ~~~~
Language: Java

import java.util.*;
import java.util.Calendar;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 入力値を変数に代入
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
        int d = sc.nextInt();
        int day;
		// 文字列の入力
      　Calendar c = Calendar.getInstance();
        c.set(2019, a, b);
        day = c.getActualMaximum(Calendar.DATE);
        if(day = b){
          	// 出力
        	System.out.println("1")
        }
      	else{
        	// 出力
        	System.out.println("0")
        }
	}
}

Compiler output:
Main.java:14: error: illegal character: '\u3000'
      ?Calendar c = Calendar.getInstance();
      ^
Main.java:19: error: ';' expected
        	System.out.println("1")
        	                       ^
Main.java:23: error: ';' expected
        	System.out.println("0")
        	                       ^
3 errors
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int m1, m2, d1, d2, count = 0;
    cin >> m1 >> d1 >> m2 >> d2;
  
    if((m1 == 1 || m1 == 5 || m1 == 7 || m1 == 10 || m1 == 12) && d1 == 31){
        count++;
    }
  
  if((m1 == 2 || m1 == 6) && d1 == 28 ){
      count++;
  }
  
  if(m1 == 3 && d1 == 29 ){
      count++;
  }
  
  if((m1 == 4 || m1 == 8 ||m1 == 9 || m1 == 11) && d1 == 30 ){
      count++;
  }
  
  
  
  if((m2 == 1 || m2 == 5 || m2 == 7 || m2 == 10 || m2 == 12) && d2 == 31){
        count++;
    }
  
  if((m2 == 2 || m2 == 6) && d2 == 28 ){
      count++;
  }
  
  if(m2 == 3&& d2 == 29 ){
      count++;
  }
  
  if((m2 == 4 || m2 == 8 ||m2 == 9 || m2 == 11) && d2 == 30 ){
      count++;
  }
  
  cout << count;
    // Your code here!
    return 0;
}
#include <iostream>
using namespace std;
int main(void){
    int m1, m2, d1, d2, count = 0;
    cin >> m1 >> d1 >> m2 >> d2;
  
    if((m1 == 1 || m1 == 5 || m1 == 7 || m1 == 8 || m1 == 10 || m1 == 12) && d1 == 31){
        count++;
    }
  
  if((m1 == 2 || m1 == 6) && d1 == 28 ){
      count++;
  }
  
  if(m1 == 3 && d1 == 29 ){
      count++;
  }
  
  if((m1 == 4 || m2 == 6 ||m1 == 9 || m1 == 11) && d1 == 30 ){
      count++;
  }
  
  
  
  if((m2 == 1 || m2 == 3 || m2 == 5 || m2 == 7 ||  m2 == 8 || m2 == 10 || m2 == 12) && d2 == 31){
        count++;
    }
  
  if(m2 == 2 && d2 == 28 ){
      count++;
  }
  
  if((m2 == 4 ||m2 == 9 || m2 == 11) && d2 == 30 ){
      count++;
  }
  
  cout << count;
    // Your code here!
    return 0;
}

Compiler output:
a.cc:47:5: error: redefinition of 'int main()'
   47 | int main(void){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(void){
      |     ^~~~
Language: C

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

int main(void){
    int M1, D1, M2, D2;
    scanf("%d %d", &M1, &D1);
    scanf("%d %d", &M2, &D2);

    if(D2==1){
        prinf("1");
    }else{
        printf("0");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |         prinf("1");
      |         ^~~~~
      |         printf
Language: C++

#include<iostream>

using namespace std;

int main(){
  int M1,D1,M2,D2;
      cin>>M1>>D1>>M2>>D2;              //外部入力読み込み方法

  if (D2==1){
    cout <<1 << end1;
     } 
   else{
    cout << 0;
   }

 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'end1' was not declared in this scope
   10 |     cout <<1 << end1;
      |                 ^~~~
Language: C++

#include<bits/stdc++.h>

#define fread freopen("in.txt","r",stdin)
#define fwrite freopen("out.txt","w",stdout)
#define PI acos(-1)
#define ll long long
#define MAX 100005

using namespace std;

int main()
{
    int m1, m2 , d1, d2;
    cin>>m1>>d1>>m2>>d2;
    int x == m2-m1;
    if(d1 == 30 && x == 1 )cout<<"1"<<endl;
    else cout<<"0"<<endl;
//    if(m1 == 12 && m2 == 1)
//    {
//        if((d1 == 29 && d2 == 1) || (d1 == 30 && d2 == 1) || (d1 == 28 && d2 == 1))
//            cout<<"1"<<endl;
//        else cout<<"0"<<endl;
//    }
//    else
//    {
//        int x = m2-m1;
//        if(x == 1)
//        {
//            if((d1 == 29 && d2 == 1) || (d1 == 30 && d2 == 1) || (d1 == 28 && d2 == 1))
//            cout<<"1"<<endl;
//            else cout<<"0"<<endl;
//        }
//        else
//        {
//            cout<<"0"<<endl;
//        }
//    }
//
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: expected initializer before '==' token
   15 |     int x == m2-m1;
      |           ^~
a.cc:16:20: error: 'x' was not declared in this scope
   16 |     if(d1 == 30 && x == 1 )cout<<"1"<<endl;
      |                    ^
Language: C++

{
fastIO
lli t=1;
//cin>>t;
while(t--){
    lli m1,m2,d1,d2;
    cin>>m1>>d1>>m2>>d2;
    lli a[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
    if(m2==m1){
        if(d1==a[m1])
            cout<<1<<endl;
        else
            cout<<0<<endl;
    }
    else{
        if(d1==a[m1])
            cout<<1<<endl;
        else
            cout<<0<<endl;
    }
}
return 0;
}

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

#include<iostream>

using namespace std;

int main(){
  int M1,D1,M2,D2;
      cin>>M1>>D1>>M2>>D2;              //外部入力読み込み方法

  If (D2== 1) {
    cout <<1 << end1;
     } 
   Else{
    cout << 0;
   }

 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'If' was not declared in this scope
    9 |   If (D2== 1) {
      |   ^~
a.cc:12:4: error: 'Else' was not declared in this scope
   12 |    Else{
      |    ^~~~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(void) {
	int i;
	int a[4];
	for (i = 0; i < 4; i++) {
		scanf("%d", a+i);
	}
	if (a[0] == a[2]||a[3==1]) {
		printf("0");
	}
	else {
		printf("1");
	}

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

#include<iostream>

using namespace std;

int main(){
  int M1,D1,M2,D2;
      cin>>M1>>D1>>M2>>D2              //外部入力読み込み方法

  If(D2== 1) {
    cout <<1 << end1
     } 
   Else{
    cout << 0
   }

 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before 'If'
    7 |       cin>>M1>>D1>>M2>>D2              //外部入力読み込み方法
      |                          ^
      |                          ;
    8 | 
    9 |   If(D2== 1) {
      |   ~~                      
a.cc:12:4: error: 'Else' was not declared in this scope
   12 |    Else{
      |    ^~~~
Language: C++

include <bits/stdc++.h>

using namespace std;

int main() {
    int m1, d1, m2, d2;
    cin >> m1 >> d1;
    cin >> m2 >> d2;
    auto ans = (m1 != m2) ? 1 : 0;
    cout << ans << endl;
    return 0;
}

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:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> m1 >> d1;
      |     ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << ans << endl;
      |     ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout << ans << endl;
      |                    ^~~~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(void) {
	int i;
	int a[4];
	for (i = 0; i < 4; i++) {
		scanf("%d", a+i)
	}
	if (a[0] == a[2]||a[3==1]) {
		printf("0");
	}
	else {
		printf("1");
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before '}' token
    8 |                 scanf("%d", a+i)
      |                                 ^
      |                                 ;
    9 |         }
      |         ~                        
a.cc:15:10: error: expected '}' at end of input
   15 |         }
      |          ^
a.cc:4:16: note: to match this '{'
    4 | int main(void) {
      |                ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(void) {
	int i;
	int a[4];
	for (i = 0; i < 4; i++) {
		scanf("%d", &a[i]);
	}
	if (a[0] == a[2]||a[3==1]) {
		printf("0");
	}
	else {
		printf("1");
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected '}' at end of input
   15 |         }
      |          ^
a.cc:4:16: note: to match this '{'
    4 | int main(void) {
      |                ^
Language: C

#include<cstdio>
int main()
{
	int m1,d1,m2,d2;
	scanf("%d%d%d%d",&m1,&d1,&m2,&d2);
	if(m1==1||m1==3||m1==5||m1==7||m1==8||m1==10||m1==12)
	{
		if(d1==31)
		{
			if(m2==m1+1&&d2==1)
			printf("1\n");
			else
			printf("0\n");
		}
		else
		printf("0\n");
	}
	else if(m1==4||m1==6||m1==9||m1==11)
	{
		if(d1==30)
		{
			if(m2==m1+1&&d2==1)
			printf("1\n");
			else
			printf("0\n");
		}
		else
		printf("0\n");
	}
	else
	{
		if(d1==28)
		{
			if(m2==m1+1&&d2==1)
			printf("1\n");
			else
			printf("0\n");
		}
		else
		printf("0\n");
	}
	return 0;
}

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

#include <bits/sdtc++.h>
using namespace std;
int main(){
	int m1,d1,m2,d2;
  	cin>>m1>>d1;
  	cin>>m2>>d2;
  	if(m1+1==m2)cout<<1<<endl;
  	else if(m1==12 && d1==31)cout<<1<<endl;
  	else cout<<0<<endl;
}

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

#include<iostream>
using namespace std;
int main(){
    int a,b,c,d;	
    cin>>a>>b>>c>>d;	
    if(a+1==c || a==12 && c==1) cout<<"1\n";
    else cout<<"0\n";
    reutrn(0);
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'reutrn' was not declared in this scope
    8 |     reutrn(0);
      |     ^~~~~~
Language: Java

import java.util.*;

class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int M1 = sc.nextInt();
    int D1 = sc.nextInt();
    int M2 = sc.nextInt();
    int D2 = sc.nextInt();

    if(D1 == 31 && D2 == 1){
       if(M2 == M1+1){
         System.out.println(1);
       }
       else{
         System.out.println(0);
       }
    }
    else if(D1 == 30 && D2 == 1){
       if(M2 == M1+1){
         System.out.println(1);
       }
       else{
         System.out.println(0);
       }
    else{
         System.out.println(0);
    }
  }
}



Compiler output:
Main.java:28: error: 'else' without 'if'
    else{
    ^
Main.java:32: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int m1 = sc.nextInt();
		int d1 = sc.nextInt();
		int m2 = sc.nextInt();
		int d2 = sc.nextInt();
		sc.close();
		if (m1 == m2){
			System.out.println(0);
		} else {
			System.out.println(1);
		}
	}


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

#include<iostream>
using name space std;
int main(){
    int a,b,c,d;	
    cin>>a>>b>>c>>d;	
    if(a+1==c || a==12 && c==1) cout<<"1\n";
    else cout<<"0\n";
    reutrn(0);
    }

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name space std;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a>>b>>c>>d;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:33: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     if(a+1==c || a==12 && c==1) cout<<"1\n";
      |                                 ^~~~
      |                                 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:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     else cout<<"0\n";
      |          ^~~~
      |          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:5: error: 'reutrn' was not declared in this scope
    8 |     reutrn(0);
      |     ^~~~~~
Language: Java

import java.util.*;

public class AtCoder1201 {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int m1 = sc.nextInt();
		int d1 = sc.nextInt();
		int m2 = sc.nextInt();
		int d2 = sc.nextInt();
		sc.close();
		if (m1 == m2){
			System.out.println(0);
		} else {
			System.out.println(1);
		}
	}
}

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

/*
  author:@Prashant Singh
  created on : 30/11/2019 00:39 AM


*/

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


typedef long long int ll;

vector<ll> adj[1000001]; 

ll i;
#define mod 747474747
#define pb push_back
#define endl cout<<"\n";
#define prt1(a) cout<<a<<" "
#define prt2(a,b) cout<<a<<" "<<b<<" "
#define prt3(a,b,c) cout<<a<<" "<<b<<" "<<c<<" "
#define rep(i,st,end) for( i=st;i<end;i++)
#define repv(i,st,end) for( i=st;i>=end;i--)
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)

// to find root  call using root(arr,element)





int main()
{
  fio;
  ll m1,d1,m2,d2;
  cin>>m1>>d1>>m2>>d2;
  ll arr[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
  if(d1==arr[m1] )
  {
    if((d2==1 && m2-m1==1) ||(d2==1 && m1==12 && m2==1)
      prt1(1);
    

  }
  else
    prt1(0);
 

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:56: error: expected ';' before 'cout'
   41 |     if((d2==1 && m2-m1==1) ||(d2==1 && m1==12 && m2==1)
      |                                                        ^
      |                                                        ;
a.cc:45:3: error: expected primary-expression before '}' token
   45 |   }
      |   ^
a.cc:42:15: error: expected ')' before '}' token
   42 |       prt1(1);
      |               ^
      |               )
......
   45 |   }
      |   ~            
a.cc:41:7: note: to match this '('
   41 |     if((d2==1 && m2-m1==1) ||(d2==1 && m1==12 && m2==1)
      |       ^
a.cc:45:3: error: expected primary-expression before '}' token
   45 |   }
      |   ^
Language: Java

		Scanner sc = new Scanner(System.in);
		int m1 = sc.nextInt();
		int d1 = sc.nextInt();
		int m2 = sc.nextInt();
		int d2 = sc.nextInt();
		sc.close();
		if (m1 == m2){
			System.out.println(0);
		} else {
			System.out.println(1);
		}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
		Scanner sc = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
		sc.close();
		^
Main.java:7: error: class, interface, enum, or record expected
		if (m1 == m2){
		^
Main.java:9: error: class, interface, enum, or record expected
		} else {
		^
Main.java:11: error: class, interface, enum, or record expected
		}
		^
5 errors
Language: C++

#include<iostream>

int main(){
  std::string nday;
  int m1, d1;
  int m2, d2;
  

  std::cin >> m1 >> d1;
  std::cin >> m2 >> d2;

  if( d1 > d2 ) std::cout << "1" << std::endl;;
  else          std::cout << "0" << std::endl;;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else          std::cout << "0" << std::endl;;
      |   ^~~~
Language: C

#include <stdio.h>

int main(void){
  
  int m1,d1,m2,d2;
  
  scanf("%d %d",&m1,&d1);
  scanf("%d %d",&m2,&d2);
  
  switch(m1){
    case 1 ||3||5||7||8||10||12:
      if(d1==31){
        printf("1\n");
      }
      break;
    case 2:
      if(d1==28){
        printf("1\n");
      }
      break;
    case 4||6||9||11:
      if(d1==30){
        printf("1\n");
      }
      break;
    default:
      
  }
  printf("1\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:5: error: duplicate case value
   21 |     case 4||6||9||11:
      |     ^~~~
main.c:11:5: note: previously used here
   11 |     case 1 ||3||5||7||8||10||12:
      |     ^~~~
Language: C++

#include<stdc++.h>
using name space std;;
int main(){
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    if(a+1==c || a==12 && c==1) cout<<"1\n";
    else cout<<"0\n";
    reutrn(0);
    }

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