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

#include <iostream>
int main(){
  	int x;
  	cin>>x;
  	if(x==0){
      cout<<1<<"\n";
    }else if(x==1){
    	cout<<0<<"\n";
	}
	return;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |         cin>>x;
      |         ^~~
      |         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:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |       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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:10:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |         return;
      |         ^~~~~~
Language: C++

    
void test_case(){
	ll n;
	cin >> n;

	cout << !n ;
	
}


int main() {
    fast;
    // sublime;
    ll T = 1; 
    // cin >> T;
    while(T--)
        test_case(); 

}


Compiler output:
a.cc: In function 'void test_case()':
a.cc:3:9: error: 'll' was not declared in this scope
    3 |         ll n;
      |         ^~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> n;
      |         ^~~
a.cc:4:16: error: 'n' was not declared in this scope
    4 |         cin >> n;
      |                ^
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << !n ;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:12:5: error: 'fast' was not declared in this scope
   12 |     fast;
      |     ^~~~
a.cc:14:5: error: 'll' was not declared in this scope
   14 |     ll T = 1;
      |     ^~
a.cc:16:11: error: 'T' was not declared in this scope
   16 |     while(T--)
      |           ^
Language: Java

package atcoder;

import java.util.Scanner;

public class Not {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt();

		String message = "0";
		if(x == 0) {
			message = "1";
		}

		System.out.println(message);
	}
}


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

#include <stdio.h>
int main(void)
{
    int x;
    scanf("%d",x)
    if(x == 0){
        printf("%d",1);
    }else{
        printf("%d",0);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected ';' before 'if'
    5 |     scanf("%d",x)
      |                  ^
      |                  ;
    6 |     if(x == 0){
      |     ~~
Language: Java

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
		// 出力
      	if(a == 1) {
          System.out.println(0);
        } else {
          System.out.println(1);
        }
	}
}




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

#include<iostream>
int main(){
	std::cin>>x;
  if(x==0)cout<<1<<endl;
  eles cout<<0<<endl;
  return 0;
}

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

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Codechef
{
    
	public static void main (String[] args) throws java.lang.Exception
	{
	    Scanner sc=new Scanner(System.in);
	       int n=sc.nextInt();
	    	if(n==0) System.out.println("1");
      	else System.out.println("0");
	     
	     //System.out.println(ans);
	     
	        // your code goes here
	
	        
	    
	    
	}
}


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

#include<bits/stdc++.h>
using namespqace std;
int main()
{
  int x;
  cin>>x;
  if(x==0)
    cout<<"1";
  else
    cout<<"0";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespqace'
    2 | using namespqace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>x;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"1";
      |     ^~~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"0";
      |     ^~~~
      |     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> 
#include <map>
#include <string>
#include <unordered_map>
#include <set>
#include <cmath>
#include <math.h>
#include <unordered_set>
#include <float.h>
#define all(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
const long long mod = 1000000007;
const long long N = 100001;
vector<int> graph[N];
bool vis[N];

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	long long n,k;
	cin >> n;
	vector<ll>arr;
	if (n == 0) {
		cout << 1;
	}
	else {
		cout << 0;
	}
		
	
	return 0;
}

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

#include <bits/stdc++.h>

int main()
{
  int x;
  cin >> x;
  if(x == 0)
    cout << "1" << endl;
  else
    cout << "0" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> x;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "1" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << "1" << endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << "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:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << "0" << 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 <bits/stdc++.h>

using namespace std;
using llong = long long;
using ldbl = long double;
using lpair = pair<llong, llong>;

#define ALL(x) x.begin(), x.end()

constexpr llong mod = 1e9+7;
constexpr llong inf = mod * mod;

int main() {
  llong x;
  cin >> x;

  cout << x^1 << endl;

  return 0;
}
#include <bits/stdc++.h>

using namespace std;
using llong = long long;
using ldbl = long double;
using lpair = pair<llong, llong>;

#define ALL(x) x.begin(), x.end()

constexpr llong mod = 1e9+7;
constexpr llong inf = mod * mod;

int main() {
  llong x;
  cin >> x;

  cout << (x^1) << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   17 |   cout << x^1 << endl;
      |             ~~^~~~~~~
a.cc: At global scope:
a.cc:30:17: error: redefinition of 'constexpr const llong mod'
   30 | constexpr llong mod = 1e9+7;
      |                 ^~~
a.cc:10:17: note: 'constexpr const llong mod' previously defined here
   10 | constexpr llong mod = 1e9+7;
      |                 ^~~
a.cc:31:17: error: redefinition of 'constexpr const llong inf'
   31 | constexpr llong inf = mod * mod;
      |                 ^~~
a.cc:11:17: note: 'constexpr const llong inf' previously defined here
   11 | constexpr llong inf = mod * mod;
      |                 ^~~
a.cc:33:5: error: redefinition of 'int main()'
   33 | int main() {
      |     ^~~~
a.cc:13:5: note: 'int main()' previously defined here
   13 | int main() {
      |     ^~~~
Language: C++

#include<iostream>
#define F(i,n,a) for(int i=a;i<n;i++)
#define vi vector<int>
#define pb push_back
#define lli long long int
#define mod 1000000007
//realfuhrer10
using namespace std;


int main(){
    int n; cin>>n;
    x==0 ? cout<<"1" : cout<<"0";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'x' was not declared in this scope
   13 |     x==0 ? cout<<"1" : cout<<"0";
      |     ^
Language: C++

#include <bits/stdc++.h>
typedef long long ll
typedef pair<int,int> pii
#define S second
#define F first
#define FASTIO ios_base::sync_with_stdio(false);cin.tie(false);cout.tie(0)
#define pb push_back
#define mp make_pair
using namespace std;



int main(){
    int n ;
    cin >> n ;
    if(n == 1){
        cout << 0;
    }
    else{
        cout << 1 :
    }
    return 0;
}



Compiler output:
a.cc:3:1: error: expected initializer before 'typedef'
    3 | typedef pair<int,int> pii
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:15:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   15 |     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:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         cout << 0;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         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<iostream>
#include<cstdio>
using namespace std;
int main(){
int x;
  sin >> x;
  if(x == 1) cout << 0 << endl;
  else cout << 1 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'sin' was not declared in this scope
    6 |   sin >> x;
      |   ^~~
Language: C++

#include<iostream.h>

using namespace std;

int main(){
  int x = 0;
  cin >> x;
  
  if(x == 0){
  	cout << 1 << endl;
  }else{
    cout << 0 << endl;
  }
}

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

#include <iostream>
int main(){
  int x = 0;
  std::cin >> x;
  std::cout << !x << '\n;
  return 0;
}

Compiler output:
a.cc:5:22: warning: missing terminating ' character
    5 |   std::cout << !x << '\n;
      |                      ^
a.cc:5:22: error: missing terminating ' character
    5 |   std::cout << !x << '\n;
      |                      ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: expected primary-expression before 'return'
    6 |   return 0;
      |   ^~~~~~
Language: Java

import java.util.*;
public class App {
    public static void main(String[] args) throws Exception {
        Scanner sc =new Scanner(System.in);
		int line = sc.nextInt();
		if(line == 0){
			System.out.println(1);
		}else{
            System.out.println(0);
        }
		sc.close();
    }
}


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

#include<stdio.h>
using namespace std;
int main()
{
  
 	int x;
  cin >>x;
  if(x==0)
    cout <<1<<endl;
  if(x==1)
    cout <<0<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >>x;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout <<1<<endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:15: error: 'endl' was not declared in this scope
    9 |     cout <<1<<endl;
      |               ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
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:15: error: 'endl' was not declared in this scope
   11 |     cout <<0<<endl;
      |               ^~~~
a.cc:11:15: 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() {
  int N;
  cin >> N;
  if(N==0){
    cout << 1;
  }else if(N==1){
    cout << 0;
}

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

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

using namespace std;

typedef unsigned int u32;
typedef int i32;
typedef unsigned long long int u64;

//typedef long long int i64; // 9e18
typedef long long int i64; // 9e18

typedef uint16_t u16;
typedef int16_t i16;
typedef uint8_t u8;
typedef int8_t i8;

//const double PI = 3.141592653589793238463;
//const int MAXN = 1000500;
//const int MAXVALUE = 1000000500;
//const long double EPS = 1e-7;
const i64 INF = 1e18;
i64 mod = 1e9 + 7;


i64 T, n, m, k;
//vector <vector<i64>> a;
//vector <i64> b;
//vector <i64> dp;

vector <vector<i64>> dp;


int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.precision(16);

    //cin >> T;
    T = 1;

    for (i64 tt = 0; tt < T; ++tt) {

        cin >> n;

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



    }
    return 0;
}

Compiler output:
a.cc:22:9: error: 'uint16_t' does not name a type
   22 | typedef uint16_t u16;
      |         ^~~~~~~~
a.cc:12:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   11 | #include <stack>
  +++ |+#include <cstdint>
   12 | 
a.cc:24:9: error: 'uint8_t' does not name a type
   24 | typedef uint8_t u8;
      |         ^~~~~~~
a.cc:24:9: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc: In function 'int main()':
a.cc:55:13: error: 'x' was not declared in this scope
   55 |         if (x == 1) {
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
const int mod=1e9+7;
//vector<vector<int>>v;

int main() {
    int x;
    cin>>x;
    if(x)
    cout<<"0"<<endl
    else 
    cout<<"1"<<endl;
   
    
    
    
    
    
    
	// your code goes here
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before 'else'
   11 |     cout<<"0"<<endl
      |                    ^
      |                    ;
   12 |     else
      |     ~~~~
Language: C

#include<stdio.h>
   int main(){
     int n;
       scanf("%d",&n);
       if(n==0) printf(n+1);
       else pritnf(0);
   }

Compiler output:
main.c: In function 'main':
main.c:5:25: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    5 |        if(n==0) printf(n+1);
      |                        ~^~
      |                         |
      |                         int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:6:13: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |        else pritnf(0);
      |             ^~~~~~
      |             printf
Language: C++

include<iostream>
using namespace std;
int main()
{
	int x;
  	cin>>x;
  	if(x==1)
      cout<<"0";
  else
    cout<<"1";
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>x;
      |         ^~~
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout<<"0";
      |       ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"1";
      |     ^~~~
Language: C++

#include <iostream>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;

int main(){
  int n;
  cin >> n;
  
  if(n==1)
  cout << 0 << endl;
  }
  else{
  cout << 1 << endl;
  }
  
  return 0;
}


Compiler output:
a.cc:12:3: error: expected unqualified-id before 'else'
   12 |   else{
      |   ^~~~
a.cc:16:3: error: expected unqualified-id before 'return'
   16 |   return 0;
      |   ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;

#define ff              first
#define ss              second
#define int             long long
#define pb              push_back
#define mp              make_pair
#define pii             pair<int,int>
#define vi              vector<int>
#define mii             map<int,int>
#define pqb             priority_queue<int>
#define pqs             priority_queue<int,vi,greater<int> >
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define mod             1000000007
#define inf             1e18
#define ps(x,y)         fixed<<setprecision(y)<<x
#define mk(arr,n,type)  type *arr=new type[n];
#define w(x)            int x; cin>>x; while(x--)
#define FIO             ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
mt19937                 rng(chrono::steady_clock::now().time_since_epoch().count());

typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;

int32_t main()
{
	FIO;
	int x; cin>>x;
	
	if(x == 1)
		cout << "0";
	else if(x == 0)
		cout << "1"'
	return 0;
}

Compiler output:
a.cc:36:28: warning: missing terminating ' character
   36 |                 cout << "1"'
      |                            ^
a.cc:36:28: error: missing terminating ' character
a.cc: In function 'int32_t main()':
a.cc:36:28: error: expected ';' before 'return'
   36 |                 cout << "1"'
      |                            ^
      |                            ;
   37 |         return 0;
      |         ~~~~~~
Language: C++

#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#include <iostream>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define speed                   \
  ios_base::sync_with_stdio(0); \
  cin.tie(0);                   \
  cout.tie(0);
#define ll long long
#define pb push_back
#define mem1(a) memset(a, -1, sizeof(a))
#define mem0(a) memset(a, 0, sizeof(a))
#define endl "\n"
#define mod1 1000000007
#define mod 998244353
#define ff first
#define ss second
#define MAX 500005
#define N 200005
#define INF 1000000009
#define all(v) v.begin(), v.end()
#define sbit(a) __builtin_popcount(a)
template <typename T>
using ordered_set = tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;
typedef pair<ll, ll> pll;
typedef pair<pll, ll> ppl;
typedef map<ll, ll> mpll;
typedef map<vector<ll>, ll> mpvl;
unordered_map<ll, vector<pll>> mp;
ll power(ll x, ll y, ll p)
{
  ll res = 1;

  x = x % p;

  if (x == 0)
    return 0;
  while (y > 0)
  {

    if (y & 1)
      res = (res * x) % p;

    y = y >> 1;
    x = (x * x) % p;
  }

  return res;
}
void solve()
{
  ll x;
  cin >> x;
  if (x)
    cout << 0 << endl;
  else
    cout << 1 << endl;
}

int main()
{
  speed;
  ll kk;
  kk = 1;
  //cin >> kk;
  while (kk--)
  {
    solve();
  }
  return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:4:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__detail::_Hashtable_ebo_helper<0, std::allocator<std::__detail::_Hash_node<std::pair<const long long int, std::vector<std::pair<long long int, long long int> > >, false> >, true>::~_Hashtable_ebo_helper()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = std::__detail::_Hash_node<std::pair<const long long int, std::vector<std::pair<long long int, long long int> > >, false>]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/bits/hashtable.h:35,
                 from /usr/include/c++/14/bits/unordered_map.h:33,
                 from /usr/include/c++/14/unordered_map:41,
                 from /usr/include/c++/14/functional:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/hashtable_policy.h:1242:12: note: called from here
 1242 |     struct _Hashtable_ebo_helper<_Nm, _Tp, true>
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

int main()
{
  int n;
  cin>>n;
  if(n==0)
    cout<< 1;
  else
   cout<<0;
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C++

#include <cstdio>
#include <cstring>
#include <iostream>

using namespace std;

int main() {
	int x;
	cin >> x;
	cout << x^1 << endl;
	return 0;
}

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

import java.util.Scanner;

public class main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		if(x==0)
		{
			System.out.println(1);
			
		}
		else
		{
			System.out.println(0);
		}

	}

}


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

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

int gcd(long long a, long long b){
	if(a == 0)
	return b;
	if(b == 0)
	return a;

	if(a == b)
	return a;

	if(a > b)
	return gcd(a-b,b);
	return gcd(a,b-a);
}

int lcm(long long a, long long b){
	return (a*b)/gcd(a,b);
}
int arr[10001];
int main(){
	int n;
	cin >> n;
	if(x == 0){
	cout << "1" << endl;
	}
	else{
	cout << "0" << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:12: error: 'x' was not declared in this scope
   25 |         if(x == 0){
      |            ^
Language: C

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

#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define mp(p, q) make_pair(p, q)
#define pb(n) push_back(n)
#define all(a) a.begin(), a.end()

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef string str;

typedef vector<ll> vll;
typedef vector<ld> vd;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<str> vs;
typedef vector<vector<ll>> vvll;
typedef vector<vector<ld>> vvd;
typedef vector<vector<bool>> vvb;
typedef vector<vector<char>> vvc;
typedef vector<vector<str>> vvs;
typedef vector<pair<ll, ll>> vpll;

const ld PI = acos(-1.0);
const ll MAX = 9000000000000000000;
const ll MIN = -9000000000000000000;
const ll MOD = 1000000007;

template <typename T>
void fin(T a)
{
    cout << a << endl;
    exit(0);
}

void Main()
{
   ll x; cin >> x;
  if(x == 0) fin(1);
  else fin(0);
}

//前処理
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(10); //高精度少数表示
    Main();
    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++

#include<bits/stdc++.h>
#define ll long long
#define mod 1000000007
#define pi (3.141592653589)
#define endl ("\n")
using namespace std;


int main() {
  ios::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
  int t;
  cin>>t;
  (t==0)?cout<<1:cout<<0;
  cout<<endl;
  }

 return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define inf 1e18+5
#define mod 1000000007
#define MAXN 100005
#define ll long long
#define pb push_back
#define sortv(v) sort(v.begin(),v.end())
#define tc(t) int t;cin>>t;while(t--)
#define copy copy_n
#define fr(i,a,b) for(long long i=a;i<b;i++)
#define frr(i,a,b) for(long long i=a;i>=b;i--)
#define frn(i,a,b,n) for(long long i=a;i<=b;i=i+n)
#define gcd(x,y) __gcd(x,y)
#define ld long double
#define um unordered_map
#define mkp make_pair
#define b_s binary_search
#define nob __builtin_popcount
#define des greater<ll>()
#define fi first
#define se second
ll mul(ll a, ll b, ll p = mod) {return ((a % p) * (b % p)) % p;}
ll add(ll a, ll b, ll p = mod) {return (a % p + b % p) % p;}
void input(ll a[], ll sz) {fr(i, 0, sz) cin >> a[i];}
void print(ll a[], ll sz) {fr(i, 0, sz) {if (i == sz - 1) cout << a[i] << "\n"; else cout << a[i] << " ";}}
ll maxr(ll a[], ll sz) {ll ma; fr(i, 0, sz) {if (i == 0) ma = a[i]; else if (a[i] > ma) ma = a[i];} return ma;}
ll minr(ll a[], ll sz) {ll mi; fr(i, 0, sz) {if (i == 0) mi = a[i]; else if (a[i] < mi) mi = a[i];} return mi;}
ll isprm(ll n) {
    if (n <= 1)  return 0;
    if (n <= 3)  return 1;
    if (n % 2 == 0 || n % 3 == 0) return 0;

    for (int i = 5; i * i <= n; i = i + 6)
        if (n % i == 0 || n % (i + 2) == 0)
            return 0;
    return 1;
}
/*ll spf[MAXN];
void sieve()
{
    spf[1]=1;
    for (ll i=2; i<MAXN; i++)
        spf[i] = i;
    for (ll i=4; i<MAXN; i+=2)
        spf[i] = 2;

    for(ll i=3;i*i<MAXN;i+=2)
    {
        if (spf[i]==i)
        {
            for (int j=i*i;j<MAXN;j+=i)
                if (spf[j]==j)
                    spf[j]=i;
        }
    }
}*/
ll power(ll x, ll y, ll p = mod)
{
    ll res = 1;
    x = x % p;
    while (y > 0)
    {
        if (y & 1)
            res = (res * x) % p;
        y = y >> 1; // y = y/2
        x = (x * x) % p;
    }
    return res;
}
ll modInverse(ll n, ll p = mod)
{
    return power(n, p - 2, p);
}
ll ncrMod(ll n, ll r, ll p = mod)
{
    if (r == 0)
        return 1;
    ll fac[n + 1];
    fac[0] = 1;
    for (ll i = 1 ; i <= n; i++)
        fac[i] = fac[i - 1] * i % p;
    return (fac[n] * modInverse(fac[r], p) % p *
            modInverse(fac[n - r], p) % p) % p;
}
//a+b=xor(a,b)+2*(a&b)//
struct comp
{
    bool operator()(const pair<ll, ll> &a,
                    const pair<ll, ll> &b)const
    {
        if (a.fi == b.fi)
        {
            return (a.se > b.se); //second elem in descending
        }
        return (a.first < b.first);//first elem in ascending
    }
};




int main()
{
    fio;
    ll x;
    cin>>x;
    cout<<x^1<<"\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:109:14: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
  109 |     cout<<x^1<<"\n";
      |             ~^~~~~~
      |             |  |
      |             |  const char [2]
      |             int
Language: C++

import java.util.*;

public class Main{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
    int x=sc.nextInt();
    if(x==0)
    System.out.println(1);
    else
    System.out.println(0);
  }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define INF 0x3f3f3f3f
#define rep(i, a, n) for (int i=(a); i<(n); i++)
#define per(i, a, n) for (int i=(a); i>(n); i--)
typedef long long ll;
const int maxn = 2e5+5;
const int mod = 1e9+7;
using namespace std;

void solve() {
	if (x == 0) cout << 1;
	else cout << 0;
}

int main(int argc, char * argv[]) 
{
	ios_base::sync_with_stdio(false); cin.tie(0);
#ifdef DEBUG
	freopen("C:/Users/Fish_Brother/Desktop/in", "r", stdin);
	//freopen("C:/Users/Fish_Brother/Desktop/out", "w", stdout);
#endif

	//int t; cin >> t; while(t--)
	solve();

    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:11:13: error: 'x' was not declared in this scope
   11 |         if (x == 0) cout << 1;
      |             ^
Language: C++

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

int main(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);cout.tie(0);
  
  int x;
  cin>>x;
  if(x==0){
  cout<<"1";
  }
  else if(x==1){
  cout<<"0";
  }
 
  return0;
}

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

#include<bits/stdc++.h>
#define F(i,n,a) for(int i=a;i<n;i++)
#define vi vector<int>
#define pb push_back
#define lli long long int
#define mod 1000000007
//realfuhrer10
using namespace std;


int main(){
    int n; cin>>n;
    x==0 ? cout<<"1" : cout<<"0";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'x' was not declared in this scope
   13 |     x==0 ? cout<<"1" : cout<<"0";
      |     ^
Language: C++

int main()
{
	int a = 0;

	std::cin >> a;
	if (a = 0)
	{
		a = 1;
	}
	else
	{
		a = 0;
	}
	std::cout << a << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'cin' is not a member of 'std'
    5 |         std::cin >> a;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:14:14: error: 'cout' is not a member of 'std'
   14 |         std::cout << a << std::endl;
      |              ^~~~
a.cc:14:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:32: error: 'endl' is not a member of 'std'
   14 |         std::cout << a << std::endl;
      |                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
Language: C++

#include <bits/stdc++.h>
using namespace std;
int x;
 
int main() {
	cin >> x;
 	cou << !x << '\n';
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cou' was not declared in this scope; did you mean 'cos'?
    7 |         cou << !x << '\n';
      |         ^~~
      |         cos
Language: C++


#include <bits/stdc++.h>
#include <string.h>
#include <vector>
//s#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;

#define inf    0x3f3f3f3f
#define ll long long
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a; i<n; i++)
#define INF (int)1e15
#define MOD 1000000007

#define access(i) a[i/3][i%3]

 int main(){

  int x;
  cin>>x;


  if(x == 0)
      cout<<"1"<<endl'
  else if(x == 1)
  cout<<"0"<<endl;

 return 0;
 }

Compiler output:
a.cc:28:22: warning: missing terminating ' character
   28 |       cout<<"1"<<endl'
      |                      ^
a.cc:28:22: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:28:22: error: expected ';' before 'else'
   28 |       cout<<"1"<<endl'
      |                      ^
      |                      ;
   29 |   else if(x == 1)
      |   ~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <string>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define Sort(a) sort(a.begin(), a.end())
const int INF = 1<<30;
const ll MOD = 1000000007;

int main(void) {
  　int x; cin >> x;
    if (x == 0) cout << 1 << endl;
    else cout << 0 << endl;

    return 0;
}

Compiler output:
a.cc:18:3: error: extended character 　 is not valid in an identifier
   18 |   　int x; cin >> x;
      |   ^
a.cc: In function 'int main()':
a.cc:18:3: error: '\U00003000int' was not declared in this scope
   18 |   　int x; cin >> x;
      |   ^~~~~
a.cc:18:19: error: 'x' was not declared in this scope
   18 |   　int x; cin >> x;
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
  cin>>n;
  if(n == 0){
    cout<<"1"<<endl;}
  else
    cout<<"0"<<endl;
retuen 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'retuen' was not declared in this scope
   10 | retuen 0;}
      | ^~~~~~
Language: C

#include <stdio.h>

int main(void){
  int num;
  scanf("%d",&num);
  
  if(num==0)printf("1");
  else(num==1)printf("0");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected ';' before 'printf'
    8 |   else(num==1)printf("0");
      |               ^~~~~~
      |               ;
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
typedef long long ll;
const ll mxN = 1e5;
const ll mod = 1e9+7;
 
ll pow(ll a,ll b){
    ll r =1;
    while(b){
        if(b%2!=0) r=(r*a)%mod;
        a=(a*a)%mod;
        b/=2;
    }
    return r;
}
 
const int sz = 5e5+20;
ll fact[sz], inv[sz];
void pre(){
	fact[0] = 1;
	inv[0] = pow(fact[0], mod-2);
	for(int i=1;i<sz;i++){
		fact[i] = (fact[i-1]*i)%mod;
	}
}
 
int spf[10];
void sieve(){
    spf[1]=1;
    for(int i=2;i<mxN;i++) spf[i]=i;
    for(int i=4;i<mxN;i+=2) spf[i]=2;
    for(int i=3;i*i<mxN;i++){
        if(spf[i]==i){
            for(int j=i*i;j<mxN;j+=i){
                if(spf[j]==j) spf[j]=i;
            }
        }
    }
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    bool a;
    cin>>a;

    cout<<a^1<<endl;
}

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

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

int main();
{ int n;
   cin>>n;
 
   if(n==0)
     cout<<"1"<<endl;
   else if(n==1)
     cout<<"0"<<endl;
}

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

/*
lakshaygpt28
Lakshay Gupta
*/

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

const double PI = acos(-1);
const long long LINF = LLONG_MAX;
const int INF = INT_MAX, MOD = 1e9 + 7, N = 1e5 + 10;

int main() {
    ios_base :: sync_with_stdio(0); cin.tie(0); cout.tie(0);
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif
    int x;
    cin >> x;
    cout << x ^ 1 << "\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:19: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<'
   21 |     cout << x ^ 1 << "\n";
      |                 ~ ^~ ~~~~
      |                 |    |
      |                 int  const char [2]
Language: C

/* Author : Harshit Jain a.k.a. iharshit009 */
#include <bits/stdc++.h>
#define vi               vector<int>
#define pb(x)            push_back(x)
#define all(x)           x.begin(), x.end()
#define sortall(x)       sort(all(x))
#define sortrev(x)       sort(all(x), greater<int>())
#define debug(x)         cout << '>' << #x << ':' << x << endl;
#define int              long long
#define ld               long double
#define endl 			 "\n";
#define mp 				 make_pair
#define pii 			 <int, int>
#define lb 				 lower_bound
#define ub				 upper_bound
#define len(a)           int((a).size())
#define prec(n)          fixed<<setprecision(n)
#define cnt(n)           __builtin_popcountll(n)
#define pi               pair<int, int>
const int mod = 1000000007;
using namespace std;
using namespace std::chrono;
// const int N = 1e5 + 5; 
// int n;
// int a[N];



int32_t main(){
auto start = high_resolution_clock::now(); // starting clock
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
int t;
t = 1;
// cin >>t;
while(t--){


int n;
cin >> n;
if(n){
	cout << 0 << endl;
}
else{
	cout << 1 <<endl;
}







}
auto stop = high_resolution_clock::now(); // stop clock
auto duration = duration_cast<microseconds>(stop - start);  // printing duration
cerr << "Time taken by function: " << duration.count() << " milliseconds" << endl; 
return 0;
}

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

#include <stdio.h>

int x;

scanf("%d", &x);

if(x == 1){
  printf(0);
}else{
  printf(1);
}

Compiler output:
main.c:5:7: error: expected declaration specifiers or '...' before string constant
    5 | scanf("%d", &x);
      |       ^~~~
main.c:5:13: error: expected declaration specifiers or '...' before '&' token
    5 | scanf("%d", &x);
      |             ^
main.c:7:1: error: expected identifier or '(' before 'if'
    7 | if(x == 1){
      | ^~
main.c:9:2: error: expected identifier or '(' before 'else'
    9 | }else{
      |  ^~~~
Language: C++

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

int main(){
    if(x==0) cout<<1<<endl;
    if(x==1) cout<<0<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'x' was not declared in this scope
    9 |     if(x==0) cout<<1<<endl;
      |        ^
a.cc:10:8: error: 'x' was not declared in this scope
   10 |     if(x==1) cout<<0<<endl;
      |        ^
Language: C++

#include <stdio.h>

int main(void
{
  int x;
  scanf("%d", &x);
  if (x)
    printf("0\n");
  else
    printf("1\n");
  return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(void
      |     ^~~~
a.cc:5:3: error: compound literal of non-object type 'void'
    5 |   int x;
      |   ^~~
a.cc:3:10: error: expected primary-expression before 'void'
    3 | int main(void
      |          ^~~~
Language: Java

ackage atcoder;

import java.util.Scanner;

public class Not {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int x = scan.nextInt();

		String message = "0";
		if(x == 0) {
			message = "1";
		}

		System.out.println(message);
	}
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
ackage atcoder;
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
import java.util.Scanner;
^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define M 1000000007
#define U 998244353
#define N 1000005
#define ull unsigned long long
#define sz(c) (int)c.size()
#define fr first
#define ll long long 
#define ull unsigned long long 
#define sc second
#define pb push_back
#define mp make_pair
#define sp <<" "
#define all(a) (a).begin(),(a).end()
#define fi(i,a,n) for(int i=a ; i<n ; i++)
#define fd(i,n,a) for(int i=n-1 ; i>=a ; i--)
#define r0 return 0;
#define ln "\n"
#define INF (int)1e15
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);   
int main(){
	fast
      float n;cin>>n;
  if((int)n==0) cout<<1<<"\n;
    else if((int)n==1 cout<<0<<"\n;
	r0;
}


Compiler output:
a.cc:25:26: warning: missing terminating " character
   25 |   if((int)n==0) cout<<1<<"\n;
      |                          ^
a.cc:25:26: error: missing terminating " character
   25 |   if((int)n==0) cout<<1<<"\n;
      |                          ^~~~
a.cc:26:32: warning: missing terminating " character
   26 |     else if((int)n==1 cout<<0<<"\n;
      |                                ^
a.cc:26:32: error: missing terminating " character
   26 |     else if((int)n==1 cout<<0<<"\n;
      |                                ^~~~
a.cc: In function 'int main()':
a.cc:26:5: error: expected primary-expression before 'else'
   26 |     else if((int)n==1 cout<<0<<"\n;
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long int
signed main()
{
  int x;
  cin>>x;
  cout<<1^x<<endl;
}

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

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

int main() {
  int a;
  if(a==0){
    cout << 1 << endl;
  }
  if else(a==1){
    cout << 0 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: expected '(' before 'else'
    9 |   if else(a==1){
      |      ^~~~
      |      (
Language: C++

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

int main(){
    char x,ans=1;
    sin >> x;
    if(x == 1){
        ans = 0
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: invalid operands of types '<unresolved overloaded function type>' and 'char' to binary 'operator>>'
    6 |     sin >> x;
      |     ~~~~^~~~
a.cc:8:16: error: expected ';' before '}' token
    8 |         ans = 0
      |                ^
      |                ;
    9 |     }
      |     ~
Language: Java

import java.util.*;
import java.math.*;
public class hack {
    static Scanner sr = new Scanner(System.in);

    public static void main(String[] args) throws java.lang.Exception {
        int T = sr.nextInt();
        if(T==0)
            System.out.println(1);
        else
            System.out.println(0);


        }
    }




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

#include <bits/stdc++.h>

using namespace std;

int main() {
	int x;
	cin >> x;
	cout << x^1 << endl;
	return 0;
}

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

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

int main()
{
    int n;
    cin >> n;
    if (n)
    {
        cout << 0 << endl;
    }
    else
    {
        cout << 1 << endl;
    }
}


Compiler output:
a.cc:6:17: error: 'atcoder' is not a namespace-name
    6 | using namespace atcoder;
      |                 ^~~~~~~
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <ctime>
#include <cassert>
#include <complex>
#include <string>
#include <cstring>
#include <chrono>
#include <random>
#include <array>
#include <bitset>
#define rep(i,r) for(int i = 0; i < (r); i++)
#define pb push_back
#define all(a) a.begin(), a.end()
#define fastio ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define int long long
#define uint unsigned long long
#define inf 0x3f3f3f3f3f3f3f3f
#define endl '\n'
using namespace std;

signed main() {
    fastio;
    int x; cin >> x;
    if (x == 0) {
        cout << 1 << endl;
        return;
    } else {
        cout << 0 << endl;
        return;
    }
}

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