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

#include <stdio.h>
#include <iostream>

using nammspace std;

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

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'nammspace'
    4 | using nammspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin >> i;
      |   ^~~
      |   std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 'i' was not declared in this scope
    8 |   cin >> i;
      |          ^
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   if(i) 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:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else 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>

int main()
{
int n;

cin >> n;

cout << (n+1)%2;
}

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

#incrude <iostream>

int main()
{
int n;

cin >> n;

cout << (n+1)%2;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incrude; did you mean #include?
    1 | #incrude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin >> n;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout << (n+1)%2;
      | ^~~~
Language: Java

//package Test;

import java.util.*;

public class A {

    static class Solution {

        void solve(int t){
            System.out.println(t == 1 ? 0 : 1);
        }
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int t = scanner.nextInt();
        Solution solution = new Solution();
        solution.solve(t);

    }
}


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

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


Compiler output:
main.c: In function 'main':
main.c:7:22: error: 'n' undeclared (first use in this function)
    7 |     printf("%d", i+1/n);
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:15: error: expected ';' before 'printf'
    8 |   else(i == 1)
      |               ^
      |               ;
    9 |         printf("%d", i-1/n);
      |         ~~~~~~
Language: C++

#include <bits/stdc++.h>
#include<vector>
#include<cmath>
using namespace std;
#include<set>
auto sgn = [&](int x) {
		if (x > 0) return 1;
		else return -1;
	};
int main()
{
        int a;
        cin>>a;
        cout<<!a;
        
        
}


Compiler output:
a.cc:6:13: error: non-local lambda expression cannot have a capture-default
    6 | auto sgn = [&](int x) {
      |             ^
Language: C++

#include <bits/stdc++.h>
#include<vector>
#include<cmath>
using namespace std;
#include<set>
auto sgn = [&](int x) {
		if (x > 0) return 1;
		else return -1;
	};
int main()
{
        int a;
        cin>>a;
        if(a==0)       
        {
        	cout<<1;
        }
        if(a==1)
        {
        	cout<<0;
        }
        
}

Compiler output:
a.cc:6:13: error: non-local lambda expression cannot have a capture-default
    6 | auto sgn = [&](int x) {
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected declaration or statement at end of input
   12 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ull unsigned long long int
#define ll long long int
#define ld long double
#define pb push_back 
#define ff first 
#define ss second
#define all(c) c.begin(), c.end()
#define sz(z) (int)z.size()
#define rep(i,a,b) for(int i=a; i<b; ++i)
#define rev(i,a,b) for(int i=a; i>=b; i--)
//Debugging tools 
#define debug(v) cout<<#v<<endl;for(ll i=0; i<v.size(); i++) cout<<v[i]<<" "; cout<<endl;
#define debugn(v,n) cout<<#v<<endl;for(ll i=0; i<n; i++) cout<<v[i]<<" "; cout<<endl;
#define deb(sum) cout<<#sum<<" = "<<sum<<endl;
//Predefined values
#define INF (ll)243000000000000001
#define endl "\n"
#define pi 3.142857142857143
const ll MOD = 1e9 + 7;


int main() { 
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    #ifndef ONLINE_JUDGE
        freopen("input.in","r",stdin);
        freopen("output.in","w",stdout);
    #endif
    int t=1;    
    cin>>t;
    while(t--){
        int x;
        cin>>x;
        cout<<x^1<<endl;
    }
    return 0;
}
        
        

















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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pi 3.14159265358979323846
#define fr(i,a,b) for (ll i=a; i<(b);++i)
#define frr(i,a,b) for(ll i=(a-1);i>=(b);--i)
#define vi vector<int>
#define vl vector<ll>
#define pb push_back
#define ppb pop_back()
#define pf push_front
#define ppf pop_front()
#define mp(a, b) make_pair((a), (b))
#define F first
#define S second
#define pii pair<int,int>
#define rev(a) reverse(a.begin(),a.end())
#define srt(a) sort(a.begin(),a.end())
#define rsrt(a) sort(a.begin(),a.end(),greater<int>())
#define removeDuplicates(a) a.resize(unique(all(a))-a.begin())
#define lsOne(S) (S & (-S))
#define isbitset(S, i) ((S >> i) & 1)
#define sz(a) (ll)a.size()
#define po(a,b) (ll)(pow(a,b)+0.5)
#define double long double
#define print(a) for(auto x:a)cout<<x<<" ";cout<<endl;

ll power(ll x, ll y, ll p)
{
    ll res = 1;
    x = x % p;
    while (y > 0)
    {
        if (y & 1)
            res = (res*x) % p;

        y = y>>1;
        x = (x*x) % p;
    }
    return res;
}
const ll M=1e18+7;
const ll MOD=1e9+7;
const int MX=2e5+5;

ll best(ll s,ll w,ll cnts,ll cntw,ll f)
{
	if(s>w)
	{
		swap(s,w);
		swap(cnts,cntw);
	}
	if(s*cnts>=f)
	{
		return f/s;
	}
	
	return cnts+min((f-cnts*s)/w,cntw);
}

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




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

	int t=1;
    //cin >> t;
    while(t--) {

        solve();
    }
    return 0;
}









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

#include <iostream>

using namespase std;

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     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;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected '}' before 'else'
    9 |                 else if(n==0){
      |                 ^~~~
a.cc:7:17: note: to match this '{'
    7 |         if(n==1){
      |                 ^
a.cc:11:25: error: expected '}' before 'else'
   11 |                         else{
      |                         ^~~~
a.cc:9:30: note: to match this '{'
    9 |                 else if(n==0){
      |                              ^
a.cc: At global scope:
a.cc:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <iostream>

using namespase std;

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespase'
    3 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if(x == 0) 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:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   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:9:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else 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:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   else 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>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;


using namespace std;

#define debug(x) cout << '>' << #x << ':' << x << endl;
#define loop(i,n) for(int i=0;i<(int)(n);i++)
#define foi(i,k,n) for(int i=(k); i<(int)(n); i+=1)
#define fod(i,n,k) for(int i=k; i>=(int)n; i-=1)
#define fast_io ios_base::sync_with_stdio(false) , cin.tie(NULL);
#define all(x) x.begin(), x.end()
#define tr(it, a) for(auto it = a.begin(); it != a.end(); it++)
#define endl "\n"

#define int long long
#define INF 0x3f3f3f3f
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007

#define fir first
#define sec second
#define pb push_back
#define mp make_pair

typedef long long llint;
typedef pair<int, int> PII;
typedef vector<int> VI;
typedef vector<llint> VL;
typedef vector<string> VS;
typedef vector<PII> VII;
typedef vector<VI> VVI;
typedef map<int,int> MII;
typedef set<int> SI;
string tostr(int n) {stringstream rr;rr<<n;return rr.str();}
llint toint(string s) {stringstream ss(s); llint x; ss >> x; return x;}
//typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;
//gp_hash_table<string, llint> table;


//int mpow(llint base, llint exp) {
  //base %= MOD;
  //llint result = 1;
  //while (exp > 0) {
    //if (exp & 1) result = ((llint)result * base) % MOD;
    //base = ((llint)base * base) % MOD;
    //exp >>= 1;
  //}
  //return result;
//}


//void makegraph(int n, int m){
	//int i, u, v;
	//while(m--){
		//cin>>u>>v;
		//u--, v--;
		//g[u].pb(v);
		//g[v].pb(u);
	//}
//}

//void dfs(int u, int par){
	//for(int v:g[u]){
		//if (v == par) continue;
		//dfs(v, u);
	//}
//}


// ------------------------------------------------------------------ILB----------------------------------------------------------------  //



void solve(){
	int x;
	cin >> x;
	cout (x ^ 1);
}




int32_t main() {
	fast_io;
    int t = 1;
    //cin >> t;
    //int xx = 0
    while(t--) {
		//xx++;
		//cout << "Case ";
      solve();
    }
    return 0;
}



Compiler output:
a.cc: In function 'void solve()':
a.cc:79:14: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (long long int)'
   79 |         cout (x ^ 1);
      |         ~~~~~^~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: 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:8:1: 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:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | 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<iostream>
int main(){
  int a;
  cin >> a;
  if(a=1){
    cout << "1" <<endl;
    }
  else{
    cout << "0" <<endl;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> a;
      |   ^~~
      |   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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     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:6:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:9:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     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<stdio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#define STR 10
int main(){
    int x = 0;
    scanf("%d",&x);
    if(x==1){
        printf(1);
    }else{
        print(0);
    }
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   11 |         printf(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:13:9: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   13 |         print(0);
      |         ^~~~~
      |         lrint
Language: C

#include<stdio.h>
#include<math.h>
#include<string.h>
#include<ctype.h>
#include<stdlib.h>
#define STR 10
int main(){
    int x = 0;
    if(x==1){
        printf(1);
    }else{
        print(0);
    }
}

Compiler output:
main.c: In function 'main':
main.c:10:16: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   10 |         printf(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:12:9: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   12 |         print(0);
      |         ^~~~~
      |         lrint
Language: Java

int x;
if(x==0){
  System.out.println("1")}
if(x==1){
  System.out.println("0")}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int x;
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
if(x==0){
^
2 errors
Language: C++

#include<iostream>
 
using namesapce std;
 
int main(){
	int n;
	cin>>n;
	if(n==0) cout<<"1";
	else cout<<"0"<<endl;
	return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from 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:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if(n==0) 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:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         else 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:9:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         else cout<<"0"<<endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<algorithm>

using namesapce std;

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

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin>>n;
      |         ^~~
      |         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:9:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         if(n==0) 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:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         else 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:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         else cout<<"0"<<endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>

using namesapce std;

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from 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:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if(n==0) 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:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         else 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:9:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         else cout<<"0"<<endl;
      |                         ^~~~
      |                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>

using namesapce std;

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         if(n==0) 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:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         else 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:9:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         else cout<<"0"<<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)
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

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


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

#inlcude <iostream>

using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   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 <iostream>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << 0 << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     cout << 0 << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <iostream>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << 1 << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout << 1 << endl;
      |                  ^~~~
a.cc:11:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#pragma GCC optimze("Ofast")
#include <bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
#define mod 1000000007
#define md 998244353
#define trace(...)
#define ll long long int
#define ld long double
#define fi first
#define se second
#define fr(i,a,b) for(ll i=a;i<=b;i++)
#define frr(i,b,a) for(ll i=b;i>=a;i--)
#define mem(a) memset(a, 0, sizeof(a))
#define vpi std::vector<pair<int,int>>
#define pii pair<int,int>
#define pll pair<ll,ll> 
#define pb push_back
#define sall(v) sort(v.begin(),v.end())
#define all(v) (v.begin(),v.end())
#define minf -10000000
#define vi vector<int>
const ll infl=0x3f3f3f3f3f3f3f3fLL;
const int infi=0x3f3f3f3f;
typedef tree<pii, null_type, less<pii>, rb_tree_tag, tree_order_statistics_node_update> oset;
auto clk=clock();
mt19937_64 rang(chrono::high_resolution_clock::now().time_since_epoch().count());
int rng(int lim) {
    uniform_int_distribution<int> uid(0,lim-1);
    return uid(rang);
}
ll power(ll x, ll y,ll p) { 
    ll res = 1;      // Initialize result 
    x = x % p;  // Update x if it is more than or equal to p 
    while (y > 0) {  
        if (y & 1) // If y is odd, multiply x with result
            res = (res*x) % p;  
        y = y>>1; // y = y/2 // y must be even now
        x = (x*x) % p;   
    } 
    return res; 
}
ll power(ll x, ll y) { 
    ll res = 1;      // Initialize result 
    while (y > 0) {    
        if (y & 1)// If y is odd, multiply x with result 
            res = (res*x) ;  
        y = y>>1; // y = y/2 // y must be even now 
        x = (x*x);   
    } 
    return res; 
}
 
ll max3(ll a,ll b,ll c){
    return max(a,max(b,c));
}
ll min3(ll a,ll b,ll c){
    return min(a,min(b,c));
}
bool isPrime(ll n) { // Corner cases 
    if (n <= 1) 
        return false; 
    if (n <= 3) 
        return true; 
    if (n % 2 == 0 || n % 3 == 0) 
        return false; 
    for (ll i = 5; i * i <= n; i = i + 6) 
        if (n % i == 0 || n % (i + 2) == 0) 
            return false; 
    return true; 
}
const int d4i[4]={-1, 0, 1, 0}, d4j[4]={0, 1, 0, -1};
const int d8i[8]={-1, -1, 0, 1, 1, 1, 0, -1}, d8j[8]={0, 1, 1, 1, 0, -1, -1, -1};
const int nax=1e5+10;

void solve(){
    int x;cin>>x;
    cout<<x^1<<endl;
    return;
}

int main(){
    ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
    srand(chrono::high_resolution_clock::now().time_since_epoch().count());
    cout<<fixed<<setprecision(8);
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    #endif
    int t;
    // cin>>t;
    t=1;
    while(t--){
        solve();
    }
    #ifndef ONLINE_JUDGE
    cout<<endl<<endl<<endl<<endl<<"Time elapsed: "<<(double)(clock()-clk)/CLOCKS_PER_SEC<<endl;
    #endif
    return 0;
}

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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   bool x; 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
      |                  ^~~
Language: C++

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

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

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


}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 | int x;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:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | 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:7:1: 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
      |                  ^~~~
Language: C++

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 | int x;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:5:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | 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:7:1: 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:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<cmath>
#include<numeric>
#include<functional>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<iomanip>
#include<queue>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<n;i++)
#define ll long long
#define INF 2147483647
using namespace std;
using Graph=vector<vector<int>>;

int main(){
  int n; cin>>n; ll x[n],y[n],candx[4],candy[4],ans=0;
  rep(i,n){
    cin>>x[i]>>y[i];
  }
  vector<pair<ll,ll>> vx,vy;
  rep(i,n){
    vx.push_back(make_pair(x[i],y[i]));
    vy.push_back(make_pair(y[i],x[i]));
  }
  sort(vx.begin(),vx.end());
  sort(vy.begin(),vy.end());
  candx[0]=vx[0].first;
  candy[0]=vx[0].second;
  candx[1]=vx[n-1].first;
  candy[1]=vx[n-1].second;
  candx[2]=vy[0].second;
  candy[2]=vy[0].first;
  candx[3]=vy[n-1].second;
  candy[3]=vy[n-1].first;
  rep(i,4){
    rep(j,n){
      ans=max(ans,abs(candx[i]-x[j])+abs(candy[i]-candy[j]));
    }
  }
  cout<<ans;
}
}


Compiler output:
a.cc:45:1: error: expected declaration before '}' token
   45 | }
      | ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     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:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       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:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       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
      |                  ^~~~
Language: C

#include <bits/stdc++.h>

using namespace std;

const int mod = 1e9 + 7;

long long add(long long a, long long b) {
    long long res = a + b;
    if (res >= mod) res -= mod;
    return res;
}

long long sub(long long a, long long b) {
    long long res = a - b + mod;
    if (res >= mod) res -= mod;
    return res;
}

long long mul(long long a, long long b) {
    return (((a % mod) * (b % mod)) % mod);
}

long long potolok(long long a, long long b){   // ���������� ����� ��� �����
    return (a + b - 1) / b;
}


long long gcd(long long x, long long y){
    if(y == 0){
        return x;
    }
    if(x > y){
         return gcd(y, x % y);
    }
    else{
         return gcd(x, y % x);
    }
}

bool cmpr(int x, int y){            // ���������� �� ���������� ��������
    if(abs(x) < abs(y)) return true;
    else{
        return false;
    }
}

bool comp(pair<int, int> x, pair<int, int> y){  // ���������� �� ������ ����������
    if(x.first < y.first)return true;
    else if(x.first == y.first){
        if(x.second < y.second)return true;
        else return false;
    }
    else{
        return false;
    }
}

int main(){
    long long a, b, c, d;
    cin >> a >> b >> c >> d;
    long long tmp1 = a * c, tmp2 = a * d, tmp3 = b * c, tmp4 = b * d;
    vector<long long> v;
    v.push_back(tmp1);
    v.push_back(tmp2);
    v.push_back(tmp3);
    v.push_back(tmp4);
    cout << *max_element(v.begin(), v.end()) << endl;
 }


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++

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using mint = modint1000000007;

int main(){
    int n;
    cin >> n;
    mint aa[4010];
    rep(i,2000){
        aa[i] = 0;
    }
    aa[0] =1;
    for(int i = 0; i <= n; i++){
         for(int j = 3;j <= n; j++){
            aa[i+j]=(aa[i+j]+aa[i]);
         }
    }
    cout << aa[n].val() << endl;
}


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

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

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

Compiler output:
a.cc: In function 'int mian()':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    
  int x;
  scanf("%d", &x);
  
  int y = (x+1)%2;
  printf("%d\n", y);

  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 <stdio.h>
#include <iostream>
#include <string>
#include <vector>
 
using namespace std;
 
int main() {
    
  int x;
  scanf("%d", &x);
  
  int y = (x+1)%2;
  printf("%d\n", y);

  return 0;
}

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

#include <iostream>
#include <string>
#include <vector>
 
using namespace std;
 
int main() {
    
  int x;
  scanf("%d", &x);
  
  printf("%d\n", (x+1)%2);
  return 0;
}

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

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

using namespace std;

int main() {
    
  int x;
  scanf("%d", &x);
  
  print("%d\n", (x+1)%2);
  return 0;
}

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

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

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

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

#include <atcoder/all>
#include <bits/stdc++.h>

#define repd(i, a, b) for (ll i = (a); i < (b); i++)
#define repb(i, n) for (ll i = (n)-1; i >= 0; i--)
#define rep(i, n) repd(i, 0, n)

using namespace std;

using ll = long long;
using ul = unsigned long long;
using ld = long double;
const ul mod = 1000000007;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    bool x;
    cin >> x;
    cout << !x << endl;
    return 0;
}



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

#ifndef ONLINE_JUDGE
    #include "debug.cpp"
#endif

#include <bits/stdc++.h>

using namespace std;

#define int long long
#define ar array



void solve(){
	int x;
	cin >> x;
	cout << x^1 << "\n";
}

int32_t main()
{
    ios::sync_with_stdio(false);
    cin.tie(nullptr); cout.tie(nullptr);

    int TC = 1;
//    cin>>TC;
    while(TC--)
        solve();

    return 0;
}



Compiler output:
a.cc:2:14: fatal error: debug.cpp: No such file or directory
    2 |     #include "debug.cpp"
      |              ^~~~~~~~~~~
compilation terminated.
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cout'
    9 |   cout<<a<<endl;
      |   ^~~~
Language: C++

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


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


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

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


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


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

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


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

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

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

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&x);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&x);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:11: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   if(x==0)printf("1");
      |           ^~~~~~
main.c:5:11: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:11: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:11: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |   else printf("0");
      |        ^~~~~~
main.c:6:8: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:3: error: expected declaration or statement at end of input
    6 |   else printf("0");
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before '}' token
    7 |     else printf("0")
      |                     ^
      |                     ;
    8 | }
      | ~