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

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


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

#include<iostream.h>

using namespace std;

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

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

import java.io.*;
class solution{
  public static int solution(int x){
    if(x == 0)
      return 1;
    if(x == 1)
      return 0;
  }

public static void main(String[] args) throws Exception{
		BufferedReader buff=new BufferedReader(new InputStreamReader(System.in));
		int n=Integer.parseInt(buff.readLine());
		System.out.println(solution(n));
	}
}

Compiler output:
Main.java:8: error: missing return statement
  }
  ^
1 error
Language: C++

#include<stdio.h>


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

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'priintf' was not declared in this scope; did you mean 'printf'?
    8 |   priintf("%d\n",0);
      |   ^~~~~~~
      |   printf
Language: C++

std::cout << !x;

Compiler output:
a.cc:1:6: error: 'cout' in namespace 'std' does not name a type
    1 | std::cout << !x;
      |      ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | std::cout << !x;
Language: Java

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

public class contest178 {
    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:
Main.java:5: error: class contest178 is public, should be declared in a file named contest178.java
public class contest178 {
       ^
1 error
Language: C++

#include <algorithm>
#include <array>
#include <atcoder/all>
#include <bitset>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <functional>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <regex>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <valarray>
#include <vector>
using namespace std;
using namespace atcoder;

using ll = long long;
using ld = long double;
using mint = modint;
const int INF = 1e9;
const double EPS = 1e-9;
const int MOD = 1e9 + 7;

int main()
{
  long long x;
  scanf("%lld", &x);

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

  return 0;
}


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

#include <bits/stdc++.h>
using namespace std ;
typedef long long ll
#define pii pair<int,int>
#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
int main(){
    int n ;
    cin >> n ;
    if(n == 1){
        cout << 0;
    }
    else{
        cout << 1 ;
    }
    return 0;
}



Compiler output:
a.cc:10:1: error: expected initializer before 'int'
   10 | int main(){
      | ^~~
Language: Java

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

public class contest178 {
    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:
Main.java:5: error: class contest178 is public, should be declared in a file named contest178.java
public class contest178 {
       ^
1 error
Language: C++

#include<bits/stdcc++.h>
using namespace std;
int main()
{
	int t;
	cin>>t;
	if(t==0)
	cout<<1;
	else
	cout<<0;
}
		

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

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

int main()
{
  bool x;
  cin>>x;
  cout<<!x;
  return 0;
}


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

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

int main(){
    int x;
    cin >> x;
    cout << a1-x;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'a1' was not declared in this scope; did you mean 'y1'?
   10 |     cout << a1-x;
      |             ^~
      |             y1
Language: Java

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

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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> 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:7:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |                 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:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |                 cout << 1
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define T() long long t;cin>>t;for(long long i=1;i<=t;i++)
#define INF (int)MAX_INT
#define INFS (int)MIN_INT
#define mod 1000000007
#define FOR(a, b, n) for(int a = b; a < n; a++)
#define REP(a,c, b) for(int a = c; a < b; a++)
#define FORD(a, b, c) for(int a = b; a >= c; a--)
#define REPD(a, c,b) for(int a = b-1; a >= c; a--)
#ifdef HOHOHO
#define DEBUG(x) cerr << #x << " : " << x << '\n'
#define DEBUGV(x) cerr << #x << " : { "; REP(_it, x.size()) cerr << x[_it] << ' '; cerr << "}" << '\n'
#define DEBUGA(x, y) cerr << #x << " : { "; REP(_it, y) cerr << x[_it] << ' '; cerr << "}" << '\n'
#define PRINTF(...) fprintf(stderr,__VA_ARGS__)
#define CHECKPOINT cerr << "OK LINE #" << __LINE__ << '\n'
#else
#define DEBUG(x) {}
#define DEBUGV(x) {}
#define DEBUGA(x, y) {}
#define PRINTF(...) {}
#define CHECKPOINT {}
#endif
#define RESET(a, b) memset(a, b, sizeof a)
#define EPS 1e-9
#define m_p make_pair
#define pb push_back
#define fi first
#define se second
#define RALL(x) x.rbegin(), x.rend()
#define all(x) x.begin(), x.end()
#define ALL(x, y) x, x+y
#define SZ(x) ((int)x.size())
#define  pi(a)  pair<a, a> 
#define  vi(a)  vector<a> 
#define  vii vector<pi>
#define  vs vector<string>
template<class T> T sqr(T x){ return x*x; }
template<class T> T binPow(T p, int q, int MOD) {
    if(q == 1) return p % MOD;
    if(q & 1) return p*(binPow(p, q-1, MOD) % MOD) % MOD;
    else return sqr(binPow(p, q/2, MOD) % MOD) % MOD;
}

ll nxt() {
    ll TemporaryVariable;
    cin >> TemporaryVariable;
    return TemporaryVariable;
}
const double PI = acos(-1.0);
#define MAXN 100001
const int G = 2e5 + 5;

 
int main(){
  ios::sync_with_stdio(false);

   int n;cin>>n;
   if(x==1)cout<<0<<endl;
   else
   cout<<1<<endl;

    #ifdef HOHOHO   
    fprintf(stderr, "%.3lf\n", clock() / (double) CLOCKS_PER_SEC );
#endif
}



























   




























       





















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

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

int main() 
  // ここにプログラムを追記
  int a;
  cin>>a;
  if(a==1){
    cout<<0<<endl;
}else{
	cout<<0<<endl;



Compiler output:
a.cc:6:3: error: expected initializer before 'int'
    6 |   int a;
      |   ^~~
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>a;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(a==1){
      |   ^~
a.cc:10:2: error: expected unqualified-id before 'else'
   10 | }else{
      |  ^~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
      	int d = sc.nextInt();
		// 出力
      	int i = a * c;
      	int j = a * d;
      	int k = b * c;
      	int l = b * d;
      	System.out.println("" + Math.max(Math.max(i, j), Math.max(k, l);));
	}
}

Compiler output:
Main.java:15: error: ')' or ',' expected
      	System.out.println("" + Math.max(Math.max(i, j), Math.max(k, l);));
      	                                                               ^
Main.java:15: error: illegal start of expression
      	System.out.println("" + Math.max(Math.max(i, j), Math.max(k, l);));
      	                                                                ^
2 errors
Language: C++

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

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

#include <bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
#define FOR(i, a, b) for (int i = (a); i <= (b); i++)
#define FORX(i, a, b, x) for (int i = (a); i <= (b); i+=x)
#define debug(x) cerr << #x << " is= " << x << endl; //use for debugging
#define read(a) int a; cin >> a;
#define reads(s) string s; cin >> s;
#define readb(a, b) int a, b; cin >> a >> b;
#define readc(a, b, c) int a, b, c; cin >> a >> b >> c;
#define readarr(a, n) int a[(n) + 5] = {}; FOR(i, 1, (n)) {cin >> a[i];}
#define readmat(a, n, m) int a[n + 1][m + 1] = {}; FOR(i, 1, n) {FOR(j, 1, m) cin >> a[i][j];}
 
#define printarr(a, n) FOR (i, 1, n) cout << a[i] << " "; cout << endl;
#define printv(v) for (int i: v) cout << i << " "; cout << endl;
#define printmat(a, n, m) FOR (i, 1, n) {FOR (j, 1, m) cout << a[i][j] << " "; cout << endl;}
 
#define FORD(i, a, b) for(int i = (a); i >= (b); i--)
#define pb(a) push_back(a)
#define pf(a) push_front(a)
#define mp(a,b) make_pair(a,b)
#define fast_io ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL)
#define ll long long int
#define vi         vector<int>
#define vll        vector<ll>
#define vpii       vector<pair<int,int>>
#define vov        vector<vector<int>> 
#define pr         pair<ll,ll>
#define vpll       vector<pair<ll,ll>>
#define all(v)     v.begin(),v.end()
#define rall(v)    v.rbegin(),v.rend()  //reverse of above;
#define sz(container) int((container).sz())
#define cut(x) {cout<<x<<"\n"; continue;}
#define setprec(x) cout << fixed << showpoint << setprecision(8)<<x<<endl;
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) a*b/__gcd(a,b)
#define time cout << clock() / double(CLOCKS_PER_SEC) << endl;
#define endl "\n"
#define mod 1000000007
using namespace std;
using namespace __gnu_pbds;
typedef tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update> ordered_set; 
typedef tree<int,null_type,less_equal<int>,rb_tree_tag,tree_order_statistics_node_update> ordered_multiset;
//*s.find_by_order(1);
//s.order_of_key() ->number of elements strictly smaller then our item;
//st.rbegin()->second; last element in set
//st.erase(prev(st.end())); delete last element in set;
const int N=1e5+5;
int main()
{
  fast_io;
  #ifndef ONLINE_JUDGE
  freopen("input.txt", "r", stdin);
  freopen("output.txt", "w", stdout);
  #endif
  cin>>x;
  cout<<1-x;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:56:8: error: 'x' was not declared in this scope
   56 |   cin>>x;
      |        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:20: error: expected ';' before ':' token
    8 |     printf("%d", 1):
      |                    ^
      |                    ;
Language: C++

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


int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);


    int x; cin >> x;
    cout << (x == 0 ? 1 : 0) << endl;


    return 0;
}


Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C

#include <iostream>
using namespace std;


int main() {
    int x = 0;
    cin >> x;

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

    return 0;
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt();
      	int b = sc.nextInt();
      	int c = sc.nextInt();
      	int d = sc.nextInt();
		// 出力
      	int i = a * c;
      	int j = a * d;
      	int k = b * c;
      	int l = b * d;
      	System.out.println(Math.max(Math.max(i, j), Math.max(k, l);));
	}
}

Compiler output:
Main.java:15: error: ')' or ',' expected
      	System.out.println(Math.max(Math.max(i, j), Math.max(k, l);));
      	                                                          ^
Main.java:15: error: illegal start of expression
      	System.out.println(Math.max(Math.max(i, j), Math.max(k, l);));
      	                                                           ^
2 errors
Language: Java

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

Compiler output:
Main.java:15: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include<iostream>
using namespace std;
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:7:22: error: expected '}' at end of input
    7 |   else cout<<0<<endl;
      |                      ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
    System.out.prinln(1);
              ^
  symbol:   method prinln(int)
  location: variable out of type PrintStream
Main.java:10: error: package system does not exist
    system.out.println(0);
          ^
2 errors
Language: Java

import java.util.Scanner;

public class A {

	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 A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

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

int main() {
  // ここにプログラムを追記
  int a;
  cin>>a;
  if(a==1){
    cout<<0<<endl;
}else{
	cout<<0<<endl;
}


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

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

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before '}' token
    8 |     printf("1\n")
      |                  ^
      |                  ;
    9 |   }
      |   ~               
main.c:12:18: error: expected ';' before '}' token
   12 |     printf("0\n")
      |                  ^
      |                  ;
   13 |   }
      |   ~
Language: C++

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

#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long int
#define w(t) int t;cin>>t;while(t--)
#define mod 1000000007



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


	return 0;
}





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

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

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

Compiler output:
a.cc:4:10: error: expected initializer before 'void'
    4 | int main void{
      |          ^~~~
Language: C

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'ios_base' has not been declared
    3 |     ios_base::sync_with_stdio(false);
      |     ^~~~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin.tie(0);
      |     ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout.tie(0);
      |     ^~~~
a.cc:6:5: error: 'lll' was not declared in this scope
    6 |     lll x;
      |     ^~~
a.cc:7:12: error: 'x' was not declared in this scope
    7 |     cin >> x;
      |            ^
Language: Java

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int x = Integer.parseInt(scan.next());
    boolean bool = x == 1 ? true : false;
    int result = !bool ? 1 : 0;
    PrintWriter out = new PrintWriter(System.out);
    out.println(result);
    out.flush();
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner scan = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner scan = new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
    PrintWriter out = new PrintWriter(System.out);
    ^
  symbol:   class PrintWriter
  location: class Main
Main.java:7: error: cannot find symbol
    PrintWriter out = new PrintWriter(System.out);
                          ^
  symbol:   class PrintWriter
  location: class Main
4 errors
Language: C

#include<stdio.h>
int main()
{
  int x;
  if(x==0||x==1)
  {
    cout<<1-x;
  }
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'cout' undeclared (first use in this function)
    7 |     cout<<1-x;
      |     ^~~~
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main( void )
{
  int x;
  if(x == 0)
  {
    printf("1\n")
  }
  else if(x == 1)
  {
    printf("0\n")
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before '}' token
    8 |     printf("1\n")
      |                  ^
      |                  ;
    9 |   }
      |   ~               
main.c:12:18: error: expected ';' before '}' token
   12 |     printf("0\n")
      |                  ^
      |                  ;
   13 |   }
      |   ~
Language: Java

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

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

#include<bits/stdc++.h>
using namespace std; 
#define mod 1000000007
#define N 100005
#define ll long long
#define ull unsigned long long
#define loop1(i, j, k, step) for (int i=j; i<k; i+=step)
#define loop(i, j, k) for (int i=j; i<k; i++) 
#define rloop1(i, j, k, step) for (int i=j; i>=k; i-=step)
#define rloop(i, j, k) for(int i=j; i>=k; i--)
#define rep(i, k) for(int i = (0); i < (k); i++ )
#define rrep(i, k) for(int i = k-1; i >= 0; i-- )

#define forall(it, l) for(auto it=l.begin(); it != l.end(); it++)
#define mp make_pair
#define pb push_back
#define pop pop_back
#define F first
#define S second
#define sz(x) (int)(x).size()
#define endl "\n"
#define Max (int)INT_MAX
#define Min (int)INT_MIN
#define MEM(a, b) memset(a, (b), sizeof(a))
#define fast_io ios_base::sync_with_stdio(0), cin.tie(NULL)
typedef vector<int> vi;
typedef pair<int,int> pi;
typedef vector<ll> vl;
typedef pair<ll,ll> pll;


void solve()
{
  int n,i,j,k,l;
  cin>>n;
  if(x==0)
    cout<<1<<endl;
  else
    cout<<0<<endl;
}
int  main() 
{
  auto start=clock();
  fast_io;
    int t=1;
    //cin>>t;
    while(t--){
      solve();
    }
    auto stop =clock();
    cerr<<"time taken:"<<double(stop-start)/double(CLOCKS_PER_SEC)<<" s"<<endl;
  return 0; 
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:36:6: error: 'x' was not declared in this scope
   36 |   if(x==0)
      |      ^
Language: C++

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

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

    if cin == 0 {
      printf("%i", 0);
    }else {
      printf("%i", 1);
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected '(' before 'cin'
    8 |     if cin == 0 {
      |        ^~~
      |        (
a.cc:10:6: error: 'else' without a previous 'if'
   10 |     }else {
      |      ^~~~
Language: C++

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

int main()
{
  int x;
  cin>>x;
  cout<<!x;
}

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

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

return 0;
}


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

//
//  main.cpp
//  앳코
//
//  Created by 김도훈 on 2020/09/13.
//  Copyright © 2020 김도훈. All rights reserved.
//

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |     cin >> x;
      |     ^~~
      |     std::cin
In file included from a.cc:9:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     if (x) 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:15:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     else 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: Java

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include<bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<bits/stdc++.h>
        ^
Main.java:6: error: not a statement
  cin >> t;
      ^
Main.java:7: error: not a statement
  if(t==0) cout<<1;
               ^
Main.java:8: error: not a statement
  else cout<<0;
           ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main() {
^
  (use --enable-preview to enable unnamed classes)
6 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:3: error: expected declaration or statement at end of input
   11 |   return 0;
      |   ^~~~~~
Language: Java

import java.util.*;

 // Compiler version JDK 11.0.2

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


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

#include <iostream>
#include <string>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> x;
      |     ^~~
a.cc:8:13: error: 'x' was not declared in this scope
    8 |         if (x == 1)
      |             ^
Language: C++

#include <iostream>
#include<bits/stdc++.h>
#include <algorithm> 
#include<map>
#include<string>
#include<unordered_map>
#include <set>
#include <unordered_set>
using namespace std;

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


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

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

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include bits/stdc++.h
      |          ^~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>x;
      |   ^~~
a.cc:8:4: error: 'cout' was not declared in this scope
    8 |    cout<<x;
      |    ^~~~
a.cc:13:4: error: 'cout' was not declared in this scope
   13 |    cout<<x;
      |    ^~~~
Language: Java

import java.util.*;

public class Contest{

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


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

// author -> LetsGoAC
#include "bits/stdc++.h"
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
using    namespace std;
using    namespace __gnu_pbds; 
#define  ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update> 
//  ordered_set os;
//  order_of_key (k) : Number of items strictly smaller than k .
//  *find_by_order(k) : K-th element in a set (counting from zero).
typedef  long double ld;
#define  int long long
typedef  pair<int,int> pii;
#define  RAGE ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define  rep(i,n) for(i=0; i <n; i++)
#define  repv(i,k,n) for(int i=k; i<=n; i++)
#define  pb push_back
#define  mp make_pair
#define  F  first
#define  S  second
#define  sz(x)  (int)x.size()
#define  all(v) v.begin(),v.end()
#define  endl '\n'
#define  deb(x) cout<<#x<<" = "<<x<<endl
#define  gcd   __gcd
#define  inf   LLONG_MAX
#define  minf  LLONG_MIN 
#define  gi  greater<int> 
#define  gpi greater<pii>  
#define  sp(n) fixed<<setprecision(n)
vector   <int> Fact(100005 , 0);
const int mod = (int)(1e9+7);
int power(int x,int n)
{   
    if(n==0)    return 1;
    if(n==1)    return x%mod;
    if(n%2==0)  {   int y = power(x,n/2)%mod;return (y*y)%mod;}
    if(n&1)     {   int y = power(x,n-1);return (x%mod * y%mod)%mod;}
    return 0;
}
int modi(int n , int m)
{   //mod = m; // change const mod;
    int mod_inverse = power(n , m-2);
    return mod_inverse;
}
int  pct(int x){return __builtin_popcountll(x);}
int  lcm(int a,int b){return a*b/gcd(a,b);}
bool is_power_2(int n){return log2(n)==floor(log2(n));}
bool is_prime(int n){for(int i=2; i*i<=n; i++)if(n%i==0)return 0; return 1;}
void cal_fac()
{
     Fact[0] = Fact[1] = 1;
     for(int i=2; i<1e5; i++)
         Fact[i] = (Fact[i-1]*i)%mod;
}
int C(int n , int k)
{
    int res = Fact[n];
    res = (res * modi( Fact[k] , mod ))%mod;
    res = (res * modi( Fact[n-k] ,mod ))%mod;
    return res;
}
ld log(int n , int base)
{
    ld ans = 1.0 * log(n)/log(base);
    return ans;
}
void db()
{   
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif
}
void timeit()
{  
    #ifndef ONLINE_JUDGE
        cout<<"\nTime Elapsed: " <<sp(10)<< 1.0*clock() / CLOCKS_PER_SEC << " sec\n";
    #endif
}
int     dx []    =  {-1 , 0 , 1 , 0 ,-1,-1, 1,  1};
int     dy []    =  { 0 , 1 , 0 ,-1 ,-1, 1, 1, -1};
char    dir[]    =  {'U','R','D','L'};
/* ---------------------- 1.cpp --------------------------------- */
const int maxn = 1e6+5;
void solve(int tc)
{   
    //  cout<<"Case #"<<tc<<": ";
    int n,i,j,k,m,q,l,r;
    cin>>n;
    if(x==0)
        cout<<1;
    else 
    if(x==1)
        cout<<0; 
}   
signed main()
{
    // 1.cpp
    RAGE;
    // db();  
    int t=1;
    // cin>>t;
    for(int i=1; i<=t; i++)
    {
        solve(i);
    }
    //timeit();
    return 0;
}
/*
    1. To find 2's complement , inverse all the bits after 1st set bit. (right -> left.)
    2. continue , break;
*/

Compiler output:
a.cc: In function 'void solve(long long int)':
a.cc:91:8: error: 'x' was not declared in this scope
   91 |     if(x==0)
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'eles' was not declared in this scope
    5 |           eles std::cout<<0<<std::endl;
      |           ^~~~
Language: C

#include <iostream>
#include<bits/stdc++.h>
#include <algorithm> 
#include<map>
#include<string>
#include<unordered_map>
#include <set>
#include <unordered_set>
using namespace std;

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


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

// author -> LetsGoAC
#include "bits/stdc++.h"
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
using    namespace std;
using    namespace __gnu_pbds; 
#define  ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update> 
//  ordered_set os;
//  order_of_key (k) : Number of items strictly smaller than k .
//  *find_by_order(k) : K-th element in a set (counting from zero).
typedef  long double ld;
#define  int long long
typedef  pair<int,int> pii;
#define  RAGE ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define  rep(i,n) for(i=0; i <n; i++)
#define  repv(i,k,n) for(int i=k; i<=n; i++)
#define  pb push_back
#define  mp make_pair
#define  F  first
#define  S  second
#define  sz(x)  (int)x.size()
#define  all(v) v.begin(),v.end()
#define  endl '\n'
#define  deb(x) cout<<#x<<" = "<<x<<endl
#define  gcd   __gcd
#define  inf   LLONG_MAX
#define  minf  LLONG_MIN 
#define  gi  greater<int> 
#define  gpi greater<pii>  
#define  sp(n) fixed<<setprecision(n)
vector   <int> Fact(100005 , 0);
const int mod = (int)(1e9+7);
int power(int x,int n)
{   
    if(n==0)    return 1;
    if(n==1)    return x%mod;
    if(n%2==0)  {   int y = power(x,n/2)%mod;return (y*y)%mod;}
    if(n&1)     {   int y = power(x,n-1);return (x%mod * y%mod)%mod;}
    return 0;
}
int modi(int n , int m)
{   //mod = m; // change const mod;
    int mod_inverse = power(n , m-2);
    return mod_inverse;
}
int  pct(int x){return __builtin_popcountll(x);}
int  lcm(int a,int b){return a*b/gcd(a,b);}
bool is_power_2(int n){return log2(n)==floor(log2(n));}
bool is_prime(int n){for(int i=2; i*i<=n; i++)if(n%i==0)return 0; return 1;}
void cal_fac()
{
     Fact[0] = Fact[1] = 1;
     for(int i=2; i<1e5; i++)
         Fact[i] = (Fact[i-1]*i)%mod;
}
int C(int n , int k)
{
    int res = Fact[n];
    res = (res * modi( Fact[k] , mod ))%mod;
    res = (res * modi( Fact[n-k] ,mod ))%mod;
    return res;
}
ld log(int n , int base)
{
    ld ans = 1.0 * log(n)/log(base);
    return ans;
}
void db()
{   
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif
}
void timeit()
{  
    #ifndef ONLINE_JUDGE
        cout<<"\nTime Elapsed: " <<sp(10)<< 1.0*clock() / CLOCKS_PER_SEC << " sec\n";
    #endif
}
int     dx []    =  {-1 , 0 , 1 , 0 ,-1,-1, 1,  1};
int     dy []    =  { 0 , 1 , 0 ,-1 ,-1, 1, 1, -1};
char    dir[]    =  {'U','R','D','L'};
/* ---------------------- 1.cpp --------------------------------- */
const int maxn = 1e6+5;
void solve(int tc)
{   
    //  cout<<"Case #"<<tc<<": ";
    int n,i,j,k,m,q,l,r;
    cin>>n;
    if(x==0)
        cout<<1;
    else 
    if(x==1)
        cout<<0; 
}   
signed main()
{
    // 1.cpp
    RAGE;
    db();  
    int t=1;
    // cin>>t;
    for(int i=1; i<=t; i++)
    {
        solve(i);
    }
    timeit();
    return 0;
}
/*
    1. To find 2's complement , inverse all the bits after 1st set bit. (right -> left.)
    2. continue , break;
*/

Compiler output:
a.cc: In function 'void solve(long long int)':
a.cc:91:8: error: 'x' was not declared in this scope
   91 |     if(x==0)
      |        ^
Language: Java

package com.hsb.leetcode.atcoder;

import java.util.Scanner;

public class Not {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(true){
            int n = scanner.nextInt();
            if (n == 0) {
                System.out.println("1");
            } else if (n == 1) {
                System.out.println("0");
            }
        }
    }
}


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<bits/stdc++.h>

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


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

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

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

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

return 0;
}


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

import java.util.*;

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

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

import java.util.*;
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==1)
            System.out.println(0);
        else
            System.out.println(1);


        }
    }




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

import java.util.Scanner;

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

Compiler output:
Main.java:12: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;

public class Contest{

  Scanner sc=new Scanner(System.in);
  int x=sc.nextInt();
  if(x==1)System.out.print(1);
  else{
  System.out.print(0);
  }

}

Compiler output:
Main.java:7: error: illegal start of type
  if(x==1)System.out.print(1);
  ^
Main.java:7: error: <identifier> expected
  if(x==1)System.out.print(1);
      ^
Main.java:7: error: <identifier> expected
  if(x==1)System.out.print(1);
                          ^
Main.java:7: error: illegal start of type
  if(x==1)System.out.print(1);
                           ^
Main.java:8: error: illegal start of type
  else{
  ^
5 errors
Language: C++

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

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

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

#include<bits/stdc++.h>
#include <string> 

using namespace std;
const int mod = 1e9 + 7;
const long long INF = 1e18;
#define PI 3.141592653589793
#define REP(i, n) for(long long i = 0;i < n;i++)
int main()
{
  long long N;
  int A[300000];
  long long  sum=0;
  long long  ans=0;
  cin>>N;
  if(N==0)cout<<0;
  else cout<<1:
  return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before ':' token
   17 |   else cout<<1:
      |               ^
      |               ;
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
 
using namespace std;
 
#define int long long
#define rep(i, a, b) for (int i = (a); i < (b); ++i)
#define trav(i, a) for (auto &i: (a))
#define sz(x) (int)(x).size()
#define all(v) (v).begin(), (v).end()
#define fr(i, a, b) for (int i = (a); i <= (b); ++i)

void solve();
signed main () {
    clock_t beg = clock();
    cout << fixed << setprecision(15);
    ios_base::sync_with_stdio(false);
    cin.tie(0); cout.tie(0);
    #ifdef LOCAL
    freopen("input.txt", "r", stdin);
    #endif 
    int t=1; 
    // cin >> t;    
    int tt = t;
    while (t--) {
        // cout << "Case #" << tt - t << ": "; 
        solve();
    }
    // cerr << "\nExecution time: " << (clock() - beg) / 1000 << '\n';
    return 0;
}
// int arr[(int)1e5+2];
void solve(){
    int a;
    cin>>a;
    if(a==0){
        cout<<"1"<<endl;
    }
    else{.  
        cout<<"0"<<endl;
    }
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:39:10: error: expected primary-expression before '.' token
   39 |     else{.
      |          ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <cmath>
#define fio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
using namespace std;
int main()
{
  fio;
  int t;
  cin>>t;
  if (t==0)
  {
    cout<<1<<endl;
  }
  else 
  {
    cout<<0<<endl;
  }

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

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

int main()
{
    int num;

    cin>>num;
    
    if(num==0) cout <<"1"<<endl;
    else if (num==1) cout <<"0"<<endl;
    else return;
}

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

import java.util.Scanner;

public class Not {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(true){
            int n = scanner.nextInt();
            if (n == 0) {
                System.out.println("1");
            } else if (n == 1) {
                System.out.println("0");
            }
        }
    }
}

Compiler output:
Main.java:3: error: class Not is public, should be declared in a file named Not.java
public class Not {
       ^
1 error
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 Codeforces {
    public static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

    public static void main(String[] args) throws java.lang.Exception {
        // your code goes here
        FastReader scn = new FastReader();
        int i, j, t, n, x, y, num;
        n = scn.nextInt();
        if (n==0)
        System.out.println("1");
        else if (n==1)
        System.out.println("0");
    }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before ')' token
    6 |         if (a=1;){
      |                 ^
Language: C++

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