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

    //Catchharsh
    #include<bits/stdc++.h>
    #define ll long long int 
    #define ld long double
    #define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
    #define F first
    #define S second
    #define pb push_back
    #define endl '\n'
    #define see(x) cout<<#x<<" = "<<x<<endl
    const ll MOD = 1e9+7;
    const ll INF = 1011111111;
    const ll LLINF = 1000111000111000111LL;
    const ld EPS = 1e-10;
    const ld PI = 3.14159265358979323;
    using namespace std;
    ll power (ll x,ll n)
    {
        if(n==0)
        return 1;
        else if(n%2==0)
        return power((x*x),n/2);
        else
        return x*power((x*x),(n-1)/2); 
    }
    int main()
    {   
         IOS;
         ll n1,m1,n2,m2,i,j,k;
         string s;
         cin>>m1>>n1>>m2>>n2;

         if(m1==1||m1==3||m1==5||m1==7||m1==8||m1==10||m1==12)
         {
          if(n1==31) cout<<1;
          else cout<<0;
         }
         else
         {
          if(m1==2&& n1==28) return cout<<1;
          else if(m1==2&&n1!=28) return cout<<0;
           if(n1==30) cout<<1;
           else
            cout<<0;
         }

         
         cerr <<endl<< "Time elapsed : " << clock() * 1000.0 / CLOCKS_PER_SEC << " ms" << '\n';             
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:40:41: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   40 |           if(m1==2&& n1==28) return cout<<1;
      |                                     ~~~~^~~
      |                                         |
      |                                         std::basic_ostream<char>
a.cc:41:45: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   41 |           else if(m1==2&&n1!=28) return cout<<0;
      |                                         ~~~~^~~
      |                                             |
      |                                             std::basic_ostream<char>
Language: Java

package Nov01.A;

import jdk.internal.util.xml.impl.Input;

import java.util.Scanner;

/**
 * Created by pc on 2019/12/01.
 */
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int[][] Days= {{0,0},{0,0}};

		for(int i = 0; i<2; i++){
			Days[i][0] = sc.nextInt();
			Days[i][1] = sc.nextInt();
		}

		boolean isLastday = false;
		if(Days[0][0]  != Days[1][0]){
			isLastday = true;
		}
		System.out.print(isLastday ? 1 :0);

	}
}


Compiler output:
Main.java:3: error: package jdk.internal.util.xml.impl is not visible
import jdk.internal.util.xml.impl.Input;
                            ^
  (package jdk.internal.util.xml.impl is declared in module java.base, which does not export it to the unnamed module)
1 error
Language: C++

#include <cmath>
#include<iostream>
#include <functional>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <iomanip>
using namespace std;
 
int main(){    
  int M1,M2,D1,D2;
  cin >> M1 >> D1;
  cin >> M2 >> D2;

  if(M1==2){
    if(D1 == 28){
      if(D2 == 1){
      cout << "1" << endl;
      }else{
	cout << "0" << endl;
      }
      else{
	cout << "0" << endl;
      }
    }else{
      cout << "0" << endl;
    }
  }
  if(M1==4 || M1==6 || M1==9 || M1==11){
    if(D1 == 30){
      cout << "1" << endl;
    }else{
      cout << "0" << endl;
    }
  }
  else{
    if(D1 == 31){
      cout << "1" << endl;
    }else{
      cout << "0" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:7: error: expected '}' before 'else'
   24 |       else{
      |       ^~~~
a.cc:18:17: note: to match this '{'
   18 |     if(D1 == 28){
      |                 ^
a.cc: At global scope:
a.cc:31:3: error: expected unqualified-id before 'if'
   31 |   if(M1==4 || M1==6 || M1==9 || M1==11){
      |   ^~
a.cc:38:3: error: expected unqualified-id before 'else'
   38 |   else{
      |   ^~~~
a.cc:45:1: error: expected declaration before '}' token
   45 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,d;
  cin>>a>>b>>c>>d;
  if(a==2 && b==28 || a==1 && b==31 || a==1 && b==31 a==4 && b==30 || a==5 && b==31 || a==6 && b==30 || a==7 && b==31 ||a==8 && b==31 || a==9 && b==30 || a==10 && b==31 || a==11 && b==30 || a==12 && b==31){
    if(d==1)
      cout<<"1"<<endl;
  }
  else
    cout<<"0"<<endl;
  return(0);
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:53: error: expected ')' before 'a'
    6 |   if(a==2 && b==28 || a==1 && b==31 || a==1 && b==31 a==4 && b==30 || a==5 && b==31 || a==6 && b==30 || a==7 && b==31 ||a==8 && b==31 || a==9 && b==30 || a==10 && b==31 || a==11 && b==30 || a==12 && b==31){
      |     ~                                               ^~
      |                                                     )
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){
        return 1;
      }
      break;
    case 2:
      if(d1==28){
        return 1;
      }
      break;
    case 4||6||9||11:
      if(d1==30){
        return 1;
      }
      break;
    default:
      
  }
  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: Java

import java.util.*
public 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(M1!=12){
if(M1+1==M2&&D2==1){
System.out.println("1");
}else if(M1+1!=M2&&D2!=1){
System.out.println("0");
}
}

if(M1==12){
if(M2==1&&D2==1){
System.out.println("1");
}else if(M2!=1&&D2!=1){
System.out.println("0");
}
}
}
}



Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int m1,d1,m2,d2;
  cin>>m1>>d1>>m2>>d2;
  if(m2-m1==1){
    if(m1==1 && d1==31) cout<<1;
     else if(m1==2 && d1==28) cout<<1;
    else if(m1==3 && d1==31) cout<<1;
     else if(m1==4 && d1==30) cout<<1;
     else if(m1==5 && d1==31) cout<<1;
     else if(m1==6 && d1==30) cout<<1;
     else if(m1==7 && d1==31) cout<<1;
     else if(m1==8 && d1==31) cout<<1;
     else if(m1==9 && d1==30) cout<<1;
     else if(m1==10 && d1==31) cout<<1;
     else if(m1==11 && d1==30) cout<<1;
     else if(m1==12 && d1==31) cout<<1;
  }
  else cout<<0;

Compiler output:
a.cc: In function 'int main()':
a.cc:20:16: error: expected '}' at end of input
   20 |   else cout<<0;
      |                ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include<stdio.h>
#include<stdlib.h>
typedef long long ll;
int main(void){
    int m1, m2, d1, d2;
    int ans = 0;
    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(m1==12){
                if(m2==1&&d2==1)  ans++;
            }else{
                if(m2==m1+1&&d2==1) ans++;
            }
        }
    }else if(m1==2){
        if(d1==28&&m2==3$$d2==1) ans++;
    }else{
        if(m2==m1+1&&d1==30&&d2==1) ans++;
    }
    printf("%d\n",ans);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:17:24: error: invalid suffix "$$d2" on integer constant
   17 |         if(d1==28&&m2==3$$d2==1) ans++;
      |                        ^~~~~
Language: C++

int M1,D1,M2,D2;
cin >> M1>>D1>>M2>>D2;

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

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> M1>>D1>>M2>>D2;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(M1==M2){
      | ^~
a.cc:6:2: error: expected unqualified-id before 'else'
    6 | }else{
      |  ^~~~
Language: C

11 16
11 17
  
  int main()
{
  int mm=0;
  int dd=0;
  
  scanf("%d %d",&mm, &dd);
  if ( dd <28)
    return 0;
  
  if ((mm == 01 || mm == 03 || mm ==05 || mm==07 || mm ==8 || mm == 10 || mm == 12) && (dd <31)) return 0;
  if ((mm == 04 || mm == 06 || mm ==09 || mm==11 ) && (dd <30)) return 0;
  if (mm == 2 & dd < 28) return 0;
  return 1;
}

Compiler output:
main.c:1:1: error: expected identifier or '(' before numeric constant
    1 | 11 16
      | ^~
main.c:14:37: error: invalid digit "9" in octal constant
   14 |   if ((mm == 04 || mm == 06 || mm ==09 || mm==11 ) && (dd <30)) return 0;
      |                                     ^~
Language: C++

#include <bits\stdc++.h>
using namespace std;
const int INF=0x3f3f3f3f,maxn=1;
//vector<int>v[maxn];
//map<int,string>mp;
//queue<int>q;
int a[maxn],n,m;
int main()
{
	//int i,j,k,ans=0;
	int x,y,z,w;
	x=y=z=w=0;
	cin>>n>>n;
	cin>>n>>n;
	if(n==1)
		cout<<"1"<<endl;
	else
		cout<<"0"<<endl;
	return 0;
}


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 's2' was not declared in this scope; did you mean 'd2'?
    8 |     cin >> m2 >> s2;
      |                  ^~
      |                  d2
Language: C++

#include <iostream>

using namespace std;

int main(){

    int m1, d1, m2, d2;
    cin >> m1 >> d1 >> m2 >> d2;

    if (
        (m1 == 1 && d1 == 31) ||
        (m1 == 2 && d1 == 28) ||
        (m1 == 3 && d1 == 31) ||
        (m1 == 4 && d1 == 30) ||
        (m1 == 5 && d1 == 31) ||
        (m1 == 6 && d1 == 30) ||
        (m1 == 7 && d1 == 31) ||
        (m1 == 8 && d1 == 31) ||
        (m1 == 9 && d1 == 30) ||
        (m1 == 10 && d1 == 31) ||
        (m1 == 11 && d1 == 30) ||
        (m1 == 12 && d1 == 31) ||
        
        ){
        cout << 1 << endl;
    } else {
        cout << 0 << endl;
    }




    return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: expected primary-expression before ')' token
   24 |         ){
      |         ^
Language: C

NR==1{m1=$1;d1=$2}
NR==2{m2=$1;d2=$2}
END{
    if(d2<d1)print 1
    else print 0;
}

Compiler output:
main.c:1:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
    1 | NR==1{m1=$1;d1=$2}
      |   ^~
main.c:2:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
    2 | NR==2{m2=$1;d2=$2}
      |   ^~
main.c:3:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | END{
      |    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;	
  cin >> n;
  cout << ((n*100/108)*108 == n*100?(n*100/108):":(";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:36: error: operands to '?:' have different types 'int' and 'const char*'
    6 |   cout << ((n*100/108)*108 == n*100?(n*100/108):":(";
      |            ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
a.cc:6:53: error: expected ')' before ';' token
    6 |   cout << ((n*100/108)*108 == n*100?(n*100/108):":(";
      |           ~                                         ^
      |                                                     )
Language: C++

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

string divide[4] = {"dream", "dreamer", "erase", "eraser"};

int main() {
 int M_1, D_1, M_2, M_2;
  cin >> M_1 >> D_1 >> M_2 >> D_2;

  if (M_1 != M_2) {
    cout << 1 << endl;
  } else {
    cout << 0 << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: redeclaration of 'int M_2'
    9 |  int M_1, D_1, M_2, M_2;
      |                     ^~~
a.cc:9:16: note: 'int M_2' previously declared here
    9 |  int M_1, D_1, M_2, M_2;
      |                ^~~
a.cc:10:31: error: 'D_2' was not declared in this scope; did you mean 'M_2'?
   10 |   cin >> M_1 >> D_1 >> M_2 >> D_2;
      |                               ^~~
      |                               M_2
Language: C++

int main(){
	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
	vector<int>month={0,31,28,31,30,31,30,31,31,30,31,30,31};
	int m1,d1,m2,d2;cin>>m1>>d1>>m2>>d2;
	cout<< (month[m1]==d1? 1:0)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'cin' was not declared in this scope
    2 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |         ^~~
a.cc:2:21: error: 'cout' was not declared in this scope
    2 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |                     ^~~~
a.cc:2:34: error: 'ios_base' has not been declared
    2 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |                                  ^~~~~~~~
a.cc:3:9: error: 'vector' was not declared in this scope
    3 |         vector<int>month={0,31,28,31,30,31,30,31,31,30,31,30,31};
      |         ^~~~~~
a.cc:3:16: error: expected primary-expression before 'int'
    3 |         vector<int>month={0,31,28,31,30,31,30,31,31,30,31,30,31};
      |                ^~~
a.cc:5:17: error: 'month' was not declared in this scope
    5 |         cout<< (month[m1]==d1? 1:0)<<endl;
      |                 ^~~~~
a.cc:5:38: error: 'endl' was not declared in this scope
    5 |         cout<< (month[m1]==d1? 1:0)<<endl;
      |                                      ^~~~
Language: C++

using namespace std;
int main(){
  int m1,d1,m2,d2;
  cin>>m1>>d1;
  cin>>m2>>d2;
  
  if(m1==3||m1==5||m1==7||m1==8||m1==10||m1==12||m1==1){
    if(d1==31){
      cout<<1<<endl;
    }
  }
  else{
    cout<<0<<endl;
  }
  
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>m1>>d1;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout<<1<<endl;
      |       ^~~~
a.cc:9:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:16: error: 'endl' was not declared in this scope
    9 |       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 | using namespace std;
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<0<<endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:14: error: 'endl' was not declared in this scope
   13 |     cout<<0<<endl;
      |              ^~~~
a.cc:13:14: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
using namespace std;
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    int a,b,c,d
    cin>>a>>b>>c>>d;
    if(a!=c){
    cout<<1;
    }else{
        cout<<0;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: expected initializer before 'cin'
   22 |     cin>>a>>b>>c>>d;
      |     ^~~
Language: C++

#include <algorithm>
using namespace std;
int main() {

	int m1,d1,m2,d2;
    cin >> m1 >> d1;
    cin >> m2 >> d2;

    if(m1 != m2){
        cout<<"1";
    } else {
        cout<<"0";
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> m1 >> d1;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <algorithm>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout<<"1";
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<"0";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;
int main(){
  int m1,d1,m2,d2;
  cin>>m1>>d1;
  cin>>m2>>d2;
  
  if(m1==3||m1==5||m1==7||m1==8||m1==10||m1==12||m1==1){
    if(d1==31){
      cout<<1<<endl;
    }
    
  }
  else{
    
    cout<0<<endl;
  }
  
 return 0; 
}

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

import java.util.Scanner;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int M1 = sc.nextInt();
   int N = sc.nextInt();
   int M2 = sc.nextInt();
   int N2 = sc.nextInt();
 
   if (M1!= M2)
     System.out.println(0);
   else System.out.println(1);
 
 
   
 }
}
import java.util.Scanner;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int M1 = sc.nextInt();
   int N = sc.nextInt();
   int M2 = sc.nextInt();
   int N2 = sc.nextInt();

   if (M1!= M2)
     System.out.println(1);
   else System.out.println(0);

 
   
 }
}
提出情報

Compiler output:
Main.java:18: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:35: error: reached end of file while parsing
????
^
2 errors
Language: C++

#include <algorithm>
using namespace std;
int main() {
	cin.tie(0);
   	ios::sync_with_stdio(false);

	int m1,d1,m2,d2;
    cin >> m1 >> d1;
    cin >> m2 >> d2;

    if(m1 != m2){
        cout<<"1";
    } else {
        cout<<"0";
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin.tie(0);
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <algorithm>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:5:9: error: 'ios' has not been declared
    5 |         ios::sync_with_stdio(false);
      |         ^~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<"1";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<"0";
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <fstream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <bitset>
#include <algorithm>
#include <complex>
#include <array>
using namespace std;

#define REP(i,n) for(int i=0; i<n; ++i)
#define FOR(i,a,b) for(int i=a; i<=b; ++i)
#define FORR(i,a,b) for (int i=a; i>=b; --i)
#define ALL(c) (c).begin(), (c).end()

typedef long long ll;
typedef vector<int> VI;
typedef vector<ll> VL;
typedef vector<double> VD;
typedef vector<VI> VVI;
typedef vector<VL> VVL;
typedef vector<VD> VVD;
typedef pair<int,int> P;
typedef pair<ll,ll> PL;
using Graph=vector<vector<int>>;
using edge= struct{int to;ll cost;};


template<class t,class u> void chmax(t&a,u b){if(a<b)a=b;}
template<class t,class u> void chmin(t&a,u b){if(b<a)a=b;}



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

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

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

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> m1 >> d1;
      |   ^~~
a.cc:8:16: error: 'd2' was not declared in this scope; did you mean 'd1'?
    8 |   cin >> m2 >> d2;
      |                ^~
      |                d1
Language: C++

#inclue<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c,d;
	cin >> a >> b >> c >> d;
	if(d==1)
	cout << 1 < <endl;
	else
	cout << 0 << endl;
	return 0;
} 

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> a >> b >> c >> d;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<bits/stdc++.h>
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << 1 < <endl;
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:21: error: expected primary-expression before '<' token
    7 |         cout << 1 < <endl;
      |                     ^
a.cc:7:22: error: 'endl' was not declared in this scope
    7 |         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 | #inclue<bits/stdc++.h>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << 0 << endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |         cout << 0 << endl;
      |                      ^~~~
a.cc:9:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>

int main(void){
	int M_1, D_1, M_2, D_2;
	std::cin >> M_1 >> D_1 >> M_2 >> D_2;
  
  	std::cout << D_2 - D_1 != 1 << "\n";
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
    7 |         std::cout << D_2 - D_1 != 1 << "\n";
      |                                   ~ ^~ ~~~~
      |                                   |    |
      |                                   int  const char [2]
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0;i < (n);++i)
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;

int main() {
    int a,b,c,d;
    cin>>a>>b>>c>>d;
    if(a!=b){
        cout<<1<<endl;
    }else
   cout << 0<< endl;
}
    return 0;    
}

Compiler output:
a.cc:15:5: error: expected unqualified-id before 'return'
   15 |     return 0;
      |     ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

include <algorithm>
#include <array>
#include <cmath>
#include <functional>
#include <iostream>
#include <iomanip>
#include <map>
#include <string>
#include <utility>
#include <vector>

#define rep(i, n) for (int i = 0; i < (int)(n); i++)

using namespace std;

int main() {
  std::cout<<std::fixed<<std::setprecision(10);
  std::string M1, M2, D1, D2;
  cin >> M1 >> D1;
  cin >> M2 >> D2;

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



  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <algorithm>
      | ^~~~~~~
In file included from /usr/include/c++/14/array:39,
                 from a.cc:2:
/usr/include/c++/14/initializer_list:51:15: error: 'size_t' does not name a type
   51 |       typedef size_t            size_type;
      |               ^~~~~~
/usr/include/c++/14/initializer_list:1:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | // std::initializer_list support -*- C++ -*-
/usr/include/c++/14/initializer_list:57:7: error: 'size_type' does not name a type
   57 |       size_type                 _M_len;
      |       ^~~~~~~~~
/usr/include/c++/14/initializer_list:60:54: error: 'size_type' has not been declared
   60 |       constexpr initializer_list(const_iterator __a, size_type __l)
      |                                                      ^~~~~~~~~
/usr/include/c++/14/initializer_list:68:17: error: 'size_type' does not name a type
   68 |       constexpr size_type
      |                 ^~~~~~~~~
/usr/include/c++/14/initializer_list:45:11: fatal error: definition of 'class std::initializer_list<_E>' does not match '#include <initializer_list>'
   45 |     class initializer_list
      |           ^~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int m1, d1, m2, d2;
    read(m1, d1, m2, d2);
    cout << (m1 != m2);
    eol;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: invalid conversion from 'int' to 'void*' [-fpermissive]
    8 |     read(m1, d1, m2, d2);
      |              ^~
      |              |
      |              int
a.cc:8:9: error: too many arguments to function 'ssize_t read(int, void*, size_t)'
    8 |     read(m1, d1, m2, d2);
      |     ~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /usr/include/c++/14/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:116,
                 from a.cc:1:
/usr/include/unistd.h:371:16: note: declared here
  371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
      |                ^~~~
a.cc:10:5: error: 'eol' was not declared in this scope
   10 |     eol;
      |     ^~~
Language: C

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;

// template {{{  0 
// using {{{ 1
using ll = long long int;
using pii = pair<int,int>;
using pll = pair<ll,ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vii = vector<pii>;
using vll = vector<pll>;
// }}} 1
// definition {{{ 1
// scaning {{{ 2
#define Scd(x) scanf("%d", &x)
#define Scd2(x,y) scanf("%d%d", &x, &y)
#define Scd3(x,y,z) scanf("%d%d%d", &x, &y, &z)
#define Scll(x) scanf("%lld", &x)
#define Scll2(x,y) scanf("%lld%lld", &x, &y)
#define Scll3(x,y,z) scanf("%lld%lld%lld", &x, &y, &z)
#define Scc(c) scanf("%c", &c);
#define Scs(s) scanf("%s", s);
#define Scstr(s) scanf("%s", &s);
// }}} 2
// constants {{{ 2
#define EPS (1e-7)
#define INF (2e9)
#define PI (acos(-1))
// }}} 2
// systems {{{ 2
#define Repe(x,y,z) for(ll x = z; x < y; x++)
#define Rep(x,y) Repe(x,y,0)
#define RRepe(x,y,z) for(ll x = y-z-1; x >= 0; x--)
#define RRep(x,y) RRepe(x,y,0)
// }}} 2
// output {{{ 2
#define YesNo(a) (a)?printf("Yes\n"):printf("No\n")
#define YESNO(a) (a)?printf("YES\n"):printf("NO\n")
// }}} 2
// }}} 1
// input {{{ 1
// }}} 1
// }}} 0

int main() {

    int M1,D1,M2,D2;
    Scd2(M1,D1);
    Scd2(M2,D2);

    printf ("%d\n", M1!=M2 );

    return 0;
}



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

M1,D1 = map(int, input().split())
M2,D2 = map(int, input().split())

if M1!=M2:
    print(1)
else:
    print(0)

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

int main(){
    int N1, M1, N2, M2;
    cin >> N1 >> M1;
    cin >> N2 >> M2;
    if (N1 != N2) {
        cout << 1 << endl;
    } else {
        cout << 0 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> N1 >> M1;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << 1 << endl;
      |         ^~~~
a.cc:6:22: error: 'endl' was not declared in this scope
    6 |         cout << 1 << endl;
      |                      ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << 0 << endl;
      |         ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout << 0 << endl;
      |                      ^~~~
Language: C++

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

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int a, b, c, d;
  cin >> a >> b >> c >> d;
  
  if(a == c) cout << 0 << "\n";
  else cout << 1 << "\n"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected ';' before '}' token
   12 |   else cout << 1 << "\n"
      |                         ^
      |                         ;
   13 | }
      | ~
Language: C

#include <iostream>
#include <cstdio>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <iomanip>
#include <stdlib.h>
#include <string.h>
#include <cstring>
#include <cmath>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <set>
#include <stdio.h>
#include <tuple>
#include <bitset>
#include <cfloat>
#include <fstream>
#include <limits.h>
#include <list>
#include <math.h>
#include <random>
#include <unordered_map>
#include <unordered_set>
#include <bitset>
#include <numeric>
#include <utility>
#include <sstream>

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;
}

using namespace std;
#define int long long
#define ll long long
#define rep(i, n) for (ll i = 0; i < (n); i++)
#define FOR(i,a,b) for(ll i=(a);i<(b);i++)
#define FORR(i,a,b)for(ll i=(a);i<=(b);i++)
#define repR(i,n) for(ll i=n;i>=0;i--)
#define P pair<ll, ll>
#define sz(x) (ll)x.size()
#define ALL(x) (x).begin(),(x).end()
#define ALLR(x) (x).rbegin(),(x).rend()
#define VE vector<ll>
#define COUT(x) cout<<(x)<<endl
#define MA map<ll,ll>
#define SE set<ll>
#define PQ priority_queue<ll>
#define PQR priority_queue<ll,VE,greater<ll>>
#define COUT(x) cout<<(x)<<endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define EPS (1e-10)
ll gcd(ll a, ll b) {
	if (a < b)swap(a, b);
	if (b == 0) return a;
	return gcd(b, a % b);
}
ll lcm(ll a, ll b) {
	ll g = gcd(a, b);
	return a / g * b;
}
bool prime(ll n) {
	for (ll i = 2; i <= sqrt(n); i++) {
		if (n%i == 0)return false;
	}
	return n != 1;
}


const long long MOD = 1000000007;
const long long INF = 1LL << 60;


const int MAX_N = 100010;


signed main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	int a, b, c, d; cin >> a >> b >> c >> d;
	if (a != c)cout << 1 << endl;
	else cout << 0 << endl;
	return 0;
}


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

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#include<queue>
#define ll long long
#define itn int
#define co(ans) cout<<ans<<endl;
#define COYE cout<<"YES"<<endl;
#define COYe cout<<"Yes"<<endl;
#define COye cout<<"yes"<<endl;
#define CONO cout<<"NO"<<endl;
#define CONo cout<<"No"<<endl;
#define COno cout<<"no"<<endl;
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,1,n)
#define SORT(V) sort((V).begin(),(V).end())
#define REVERSE(V) reverse((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
using namespace std;


int main(){
  int A,B,C,D;
  cin>>A>>B>>C>>D;
  
  if(D==1) co(1);
  else co(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:3: error: 'else' without a previous 'if'
   36 |   else co(0);
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
int a,b,c,d;
int main(){
    cin>>a>>b>>c>>d;
    if(a!=c)cout<<1<<endl;
    else cout<<0<<endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before '}' token
    9 |     else cout<<0<<endl
      |                       ^
      |                       ;
   10 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using name space std;
 
int main()
{
	int n;
	cin>>n;
	float x=round(n/1.08);
	if(x*1.08==n)
	  cout<<x<<endl;
	else
	  cout<<":("<<endl;
	return 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:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |           cout<<x<<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:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |           cout<<x<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |           cout<<":("<<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:12:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |           cout<<":("<<endl;
      |                       ^~~~
      |                       std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <stdio.h>

int main(void){

  int N;
  double X;
  
  scanf("%d",&N);
  
  X = N / 1.08;
  
  if((int)X=(double)X) printf("%lf",X);
  else printf(":(");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:12:12: error: lvalue required as left operand of assignment
   12 |   if((int)X=(double)X) printf("%lf",X);
      |            ^
Language: C

#include <stdio.h>

int main(void){

  int N;
  double X;
  
  scanf("%d",&N);
  
  X = N / 1.08;
  
  if((int)X=(double)X) printf("%d",(int)X);
  else printf(":(");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:12:12: error: lvalue required as left operand of assignment
   12 |   if((int)X=(double)X) printf("%d",(int)X);
      |            ^
Language: C

#include <stdio.h>

int main(void){

  int N;
  double X;
  
  scanf("%d",&N);
  
  X = N / 1.08;
  
  if((int)X=X) printf("%d",(int)X);
  else printf(":(");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:12:12: error: lvalue required as left operand of assignment
   12 |   if((int)X=X) printf("%d",(int)X);
      |            ^
Language: C

#include <stdio.h>

int main(void){

  int N;
  double X;
  
  scanf("%d",&N);
  
  X = N / 1.08;
  
  if(int(X)=X) printf("%lf",X);
  else printf(":(");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:12:6: error: expected expression before 'int'
   12 |   if(int(X)=X) printf("%lf",X);
      |      ^~~
Language: C

#include <stdio.h>

int main(void){

  int N;
  double X;
  
  scanf("%d",&N);
  
  X = N / 1.08;
  
  if(int(X)=X) printf("%d",int(X));
  else printf(":(");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:12:6: error: expected expression before 'int'
   12 |   if(int(X)=X) printf("%d",int(X));
      |      ^~~
main.c:12:28: error: expected expression before 'int'
   12 |   if(int(X)=X) printf("%d",int(X));
      |                            ^~~
Language: C

#include <stdio.h>

int main(void){

  int N;
  double X;
  
  scanf("%d",&N);
  
  X = N / 1.08;
  
  if(int(X)=X) printf("%f",X);
  else printf(":(");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:12:6: error: expected expression before 'int'
   12 |   if(int(X)=X) printf("%f",X);
      |      ^~~
Language: C

#include <stdio.h>

int main(void){

  int N;
  double X;
  
  scanf("%d",&N);
  
  X = N / 1.08;
  
  if(int(X)=X) printf("%d",X);
  else printf(":(");
  
  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:12:6: error: expected expression before 'int'
   12 |   if(int(X)=X) printf("%d",X);
      |      ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
//二項係数の計算
int nCr(int A, int B) {
    ll ans = 1;
    for (int i = 0; i < B; i++) {
        ans *= A - i;
    }
    for (int i = 0; i < B; i++) {
        ans /= i + 1;
    }
    return ans;
}
int main() {
    ld N;
    cin>>N;
    ld a=1;
    bool b=true;
    while(b==true){
        if(a*1.08==N){
            cout<<a<<endl;
            b=false;
            break;
        }
        else if(N+100<a*1.08)
        else{
            a++;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: expected primary-expression before 'else'
   29 |         else{
      |         ^~~~
Language: C++

#include <bits/stdc++.h>

#define all(x) (x).begin(),(x).end()
#define init() \
  ios::sync_with_stdio(false); \
  cin.tie(0)

#define MOD 1000000007

using namespace std;

using ll = long long;
using ull = unsigned long long;

#ifdef LOCAL

template<typename T>
void show(vector<T>& v) {
    cout << '[';
    for (const T& e : v) {
        cout << e << ',';
    }
    cout << ']' << endl;
}

#endif

template<typename M, typename N>
constexpr common_type_t<M, N> gcd(M a, N b) {
  return a == 0 ? b
    : b == 0 ? a
    : gcd(b, a % b);
}

template <typename M, typename N>
constexpr common_type_t<M, N> lcm(M a, N b) {
  return a * b / gcd(a, b);
}

template <long long MAX>
class CombinationCalculator {
  long long mod_;
  long long fac[MAX];
  long long finv[MAX];
  long long inv[MAX];

public:
  CombinationCalculator(long long mi = MOD): fac(), finv(), inv() {
    mod_ = mi;
    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_;
    }
  }

  long long c(long long n, long long k) const {
    if (n < k) return 0;
    if (n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % mod_) % mod_;
  }
};

template <long long MAX = 210000>
using CC = CombinationCalculator<MAX>;

template<typename T>
T modpow(T a, T n, T mod = MOD) {
    T res = 1;
    while (n > 0) {
        if (n & 1) res = res * a % mod;
        a = a * a % mod;
        n >>= 1;
    }
    return res;
}

template<typename T>
T modinv(T a, T m = MOD) {
    T b = m, u = 1, v = 0;
    while (b) {
        T t = a / b;
        a -= t * b; swap(a, b);
        u -= t * v; swap(u, v);
    }
    u %= m; 
    if (u < 0) u += m;
    return u;
}

template<typename T>
vector<T> read_n(const size_t n) {
    T dummy;
    vector<T> v(n);
    for (size_t i = 0; i < n; i++) {
        cin >> dummy;
        v[i] = dummy;
    }
    return v;
}

template<typename T>
vector<T> read_n() {
    size_t n;
    cin >> n;
    return read_n<T>(n);
}

int main() {
  init();

  int n;
  cin >> n;
  const int m = round(50000 / 1.08);

  for (int i = 0; i <= m; i++) {
      if (i * 1.08 == n) {
          cout << i << endl;
          return;
      }
  }

  cout << ":(" << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:122:11: error: return-statement with no value, in function returning 'int' [-fpermissive]
  122 |           return;
      |           ^~~~~~
Language: Java

import java.io.BufferedReader
import java.io.InputStreamReader
import java.io.PrintWriter

object Solve {

  private val br = BufferedReader(InputStreamReader(System.`in`))
  private val out = PrintWriter(System.out)

  fun solve() {

    val n = br.readLine()!!.toInt()

    var ans = -1

    for (i in 1..5000){
      if(i * 108 / 100 == n){
        ans = i
      }
    }

    out.println(if(ans == -1) ":(" else ans)
    out.flush()
  }
}

fun main(args: Array<String>){
  Solve.solve()
}

Compiler output:
Main.java:1: error: ';' expected
import java.io.BufferedReader
                             ^
Main.java:2: error: ';' expected
import java.io.InputStreamReader
                                ^
Main.java:3: error: ';' expected
import java.io.PrintWriter
                          ^
Main.java:7: error: illegal character: '`'
  private val br = BufferedReader(InputStreamReader(System.`in`))
                                                           ^
Main.java:7: error: illegal character: '`'
  private val br = BufferedReader(InputStreamReader(System.`in`))
                                                              ^
5 errors
Language: C++

#include<bits/stdc++.h>
#define int long long
using namespace std;
int32_t main()
{
  int N;
  cin>>N;
  
  for( i=1;i<=50000;i++)
  {
    if((i*1.08)==N)
    {
        
        cout<<i<<endl;
        return 0;
    }
  }
  cout<<":("<<endl;
  return 0;
} 


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for( i=1;i<=50000;i++)
      |        ^
Language: C++

#include<bits/stdc++.h>
#define int long long
using namespace std;
int32_t main()
{
  int N;
  cin>>N;
  
  for( i=1;i<=N;i++)
  {
    if((i*1.08)==N)
    {
        
        cout<<i<<endl;
        return 0;
    }
  }
  cout<<":("<<endl;
  return 0;
} 


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for( i=1;i<=N;i++)
      |        ^
Language: C++

#include<bits/stdc++.h>
#define int long long
using namespace std;
int32_t main()()
{
  int N;
  cin>>N;
 
  for( int i=1;i<=N;i++)
  {
    if((i*1.08)==N)
    {
        cout<<i<<endl;
        return 0;
    }
  }
  cout<<":("<<endl;
  return 0;
} 


Compiler output:
a.cc:4:1: error: 'main' declared as function returning a function
    4 | int32_t main()()
      | ^~~~~~~
Language: C++

#include<bits/stdc++.h>
#define int long long
using namespace std;
int32_t main()()
{
  int N;
  cin>>N;
  int f=0,i;
  for( i=1;i<=N;i++)
  {
    if((i*1.08)==N)
    {
        f==1;
        cout<<i<<endl;
        return 0;
    }
  }
  cout<<":("<<endl;
  
} 

Compiler output:
a.cc:4:1: error: 'main' declared as function returning a function
    4 | int32_t main()()
      | ^~~~~~~
Language: C++

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

int main(){
  int N;cin>>N;
  int ans=1;
  bool ncan=true;
  while(can){
    ans++;
    if(ans*108/100==N) ncan=false;
    if(ans==50000) break;
  }
  if(ncan) cout<<":("<<endl;
  else cout<<ans<<endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'can' was not declared in this scope; did you mean 'ncan'?
    8 |   while(can){
      |         ^~~
      |         ncan
Language: C++

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

int main(){
  int A,B,C;
  cin >> A;
  B = 0;
  C = 0;
  
  double B = A / 1.08;
  double C = B * 1.08;
  if(A == C){
    cout << B << endl;
  }
  else if(A != C){
    cout << ":(" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: conflicting declaration 'double B'
   10 |   double B = A / 1.08;
      |          ^
a.cc:5:9: note: previous declaration as 'int B'
    5 |   int A,B,C;
      |         ^
a.cc:11:10: error: conflicting declaration 'double C'
   11 |   double C = B * 1.08;
      |          ^
a.cc:5:11: note: previous declaration as 'int C'
    5 |   int A,B,C;
      |           ^
Language: C++

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

int main(void){
   int N;
   cin>>N;
   if((double)N%1.08==0){
      cout<<N/1.08<<endl;
   }else{
      cout<<":("<<endl;
   }
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'double' and 'double' to binary 'operator%'
    7 |    if((double)N%1.08==0){
      |       ~~~~~~~~~^~~~~
      |       |         |
      |       double    double
Language: C++

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

int main(){
  int A,B;
  cin >> A >> B;　
  
  B = A / 1.08;
    cout << B << endl;
  	
}


Compiler output:
a.cc:6:17: error: extended character 　 is not valid in an identifier
    6 |   cin >> A >> B;　
      |                 ^
a.cc: In function 'int main()':
a.cc:6:17: error: '\U00003000' was not declared in this scope
    6 |   cin >> A >> B;　
      |                 ^~
Language: C++

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

int main(){
  int A,B;
  cin >> A,B;　
  
  B = A / 1.08;
    cout << B << endl;
  	
}


Compiler output:
a.cc:6:14: error: extended character 　 is not valid in an identifier
    6 |   cin >> A,B;　
      |              ^
a.cc: In function 'int main()':
a.cc:6:14: error: '\U00003000' was not declared in this scope
    6 |   cin >> A,B;　
      |              ^~
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        
        double ans = Math.round(N/1.08);
        System.out.println(ans);
        
        if(Math.floor(ans*1.08)==N){
            System.out.println((int)ans);
        }else{
            System.out.println(":(");
        }
        
    }
}


Compiler output:
Main.java:9: error: cannot find symbol
        double ans = Math.round(N/1.08);
                                ^
  symbol:   variable N
  location: class Main
Main.java:12: error: cannot find symbol
        if(Math.floor(ans*1.08)==N){
                                 ^
  symbol:   variable N
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#define pi 3.14159265358979323846264338327950L
using namespace std;

int main() {
  int N, ans;
  cin >> N;
  ans=0;
  for (int X=0; X<=N; X++) {
    if (floor(1.08*X)==N) {
      ans=X;
    }
  }
  if (X==0) {
    cout << ":(" << endl;
  }
  else {
    cout << X << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:7: error: 'X' was not declared in this scope
   29 |   if (X==0) {
      |       ^