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

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

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include stdio.h
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%d",&x);
      |         ^~~~~
a.cc:6:17: error: 'printf' was not declared in this scope
    6 |         if(x!=0)printf("1");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include stdio.h
a.cc:7:14: error: 'printf' was not declared in this scope
    7 |         else printf("0");
      |              ^~~~~~
a.cc:7:14: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

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

#include <stdio.h>

int main() {
	int x;
	scanf("d", &x);
	if(x==0)printf("1";)
	else printf("1");
}

Compiler output:
main.c: In function 'main':
main.c:6:27: error: expected ')' before ';' token
    6 |         if(x==0)printf("1";)
      |                       ~   ^
      |                           )
main.c:6:29: error: expected ';' before 'else'
    6 |         if(x==0)printf("1";)
      |                             ^
      |                             ;
    7 |         else printf("1");
      |         ~~~~
Language: C

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


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

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:10:9: error: expected declaration or statement at end of input
   10 |         }
      |         ^
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:22: error: expected '}' at end of input
    7 |     else printf("0");
      |                      ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C

#include <stdio.h>

int main() {
	int x;
	scanf("d", &x);
	if(x==0) {
		printf("1");
	} else {
		printf("0");
	}


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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:13: error: expected '}' at end of input
    3 | int main() {
      |            ~^
Language: C++

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

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

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

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

Compiler output:
a.cc:4:2: error: 'cin' does not name a type
    4 |  cin >> x;
      |  ^~~
a.cc:5:2: error: expected unqualified-id before 'if'
    5 |  if(x == 1) {
      |  ^~
a.cc:8:2: error: expected unqualified-id before 'if'
    8 |  if(x == 0) {
      |  ^~
Language: C++

#include<iostream>
int main(){
  int sex;
  cin >> sex;
  if(sex==1){
    cout << '0' << endl;
  }
  else{
    cout << '1' << 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 >> sex;
      |   ^~~
      |   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 << '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:6:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     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)
      |     ^~~~
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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << '1' << 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<iostream>
int main(){
  int sex;
  cin >> sex;
  if(sex==1){
    cout << 0 << endl;
  }
  else{
    cout << 1 << 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 >> sex;
      |   ^~~
      |   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 << 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:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     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)
      |     ^~~~
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
/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 x;
 cin >> x;
 if(x == 1) {
   cout << 0 << endl;
   }
 if(x == 0) {
   cout << 1 << endl;
   }


Compiler output:
a.cc:4:2: error: 'cin' does not name a type
    4 |  cin >> x;
      |  ^~~
a.cc:5:2: error: expected unqualified-id before 'if'
    5 |  if(x == 1) {
      |  ^~
a.cc:8:2: error: expected unqualified-id before 'if'
    8 |  if(x == 0) {
      |  ^~
Language: C++

#include<iostream>
int main(){
  int sex;
  cin >> sex;
  if(sex==1){
    cout << 0;
  }
  else{
    cout << 1 << 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 >> sex;
      |   ^~~
      |   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 << 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: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)
      |     ^~~~
Language: C++

#include<iostream>
int main(){
  int sex;
  cin >> sex;
  if(sex=1){
    cout << 0;
  }
  else{
    cout << 1 << 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 >> sex;
      |   ^~~
      |   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 << 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: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)
      |     ^~~~
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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> x;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x==0){
    cout << "1" << endl;
  }
  else{
    cout << "0" << endl;
  }
}
#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:15:5: error: redefinition of 'int main()'
   15 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x=0){
    cout << "1" << endl;
  }
  else{
    cout << "0" << endl;
  }
}
#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:15:5: error: redefinition of 'int main()'
   15 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

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

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define vi vector<int>
#define vp vector<pair<int,int>>
#define eb emplace_back
#define mp(x,y) make_pair(x,y)
#define ull unsigned long long
#define ld long double
#define all(x) x.begin(),x.end()
#define cmp(t,x) [](const t& _a,const t& _b) {return _a.x<_b.x;}
#define pq priority_queue


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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:5: error: 'cn' was not declared in this scope; did you mean 'yn'?
   17 |     cn.tie(NULL);
      |     ^~
      |     yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define vi vector<int>
#define vp vector<pair<int,int>>
#define eb emplace_back
#define mp(x,y) make_pair(x,y)
#define ull unsigned long long
#define ld long double
#define all(x) x.begin(),x.end()
#define cmp(t,x) [](const t& _a,const t& _b) {return _a.x<_b.x;}
#define pq priority_queue
#define be(x) *(next(x.begin()))
#define en(x) *(next(x.rbegin()))
#define in insert
set<int> x; multiset<int> l;
set<int>::iterator pos;
int n,q,T,ip,len,mode,t,_r,_l;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: 'cn' was not declared in this scope; did you mean 'yn'?
   22 |     cn.tie(NULL);
      |     ^~
      |     yn
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fastio ios_base::sync_with_stdio(false);cin.tie(0)
int main() {
    fastio ;
    ll x;
    cin>>x;
     cout<< (x == 1) ? "0" : "1" <<endl;
}
c

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: invalid operands of types 'const char [2]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |      cout<< (x == 1) ? "0" : "1" <<endl;
      |                              ~~~~^~~~~~
a.cc: At global scope:
a.cc:11:1: error: 'c' does not name a type
   11 | c
      | ^
Language: C++

// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
// #pragma GCC optimize("Ofast,no-stack-protector")
// #pragma GCC optimize("unroll-loops")
// #pragma GCC optimize("fast-math")
// #pragma GCC optimize("vpt")
// #pragma GCC optimize("rename-registers")
// #pragma GCC optimize("move-loop-invariants")
// #pragma GCC optimize("unswitch-loops")
// #pragma GCC optimize("btr-bb-exclusive")

#include <bits/stdc++.h>

#define _CRT_DISABLE_PERFCRIT_LOCKS
#define _USE_MATH_DEFINES
#define rall(a)      a.rbegin(), a.rend()
#define all(a)       a.begin(), a.end()
// #define int          long long
#define pb           push_back
#define pf           push_front
#define eb           emplace_back 
#define vi           vector<int>
#define vvi          vector<vi>
#define pii          pair<int, int>
#define fi           first
#define se           second
#define rep(i, a, n) for (int i = a; i < n; ++i)
#define per(i, a, n) for (int i = n - 1; i >= a; --i)
#define unique(v)    v.erase(unique(v.begin(), v.end()), v.end());

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:34:10: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (int)'
   34 |     cout (n == 0 ? 1 : 0);
      |     ~~~~~^~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
namespace std;

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


Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> num;
      |   ^~~
      |   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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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:13:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     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<iostream>
namespace std;
int main() {
  int num = 0;
  cin >> num;
  
  if (num == 0) {
    cout << 1 << endl;
  }
  
  else {
    cout << 0 << endl;
  }
}

Compiler output:
a.cc:2:14: error: expected '{' before ';' token
    2 | namespace std;
      |              ^
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> num;
      |   ^~~
      |   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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << 1 << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout << 1 << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:12:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     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: Java

import java.util.*;
public class anot
{
  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:2: error: class anot is public, should be declared in a file named anot.java
public class anot
       ^
1 error
Language: Java

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

#include<bits/stdc++.h>
int main(){
  int x;
  cin>>x;
  return 1-x;
}

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>>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
      |                  ^~~
Language: C++

/**
 *    author:  silentnoob69      
**/
#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;

typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;

const int MAX_N = 1e5 + 5;
const int MAX_L = 20; // ~ Log N
const long long MOD = 1e9 + 7;
const long long INF = 1e9 + 7;

typedef long long ll;
typedef unsigned long long ull;s
typedef long long int llint;
typedef unsigned long long int ullint;
typedef vector<int> vi;
typedef pair<int,int> ii;
typedef vector<ii> vii;
typedef vector<vi> vvi;

#define LSOne(S) (S & (-S))
#define isBitSet(S, i) ((S >> i) & 1)
#define MAX 100000

void solve() {
    int a;
    cin>>a;
    if(a==1)
        cout<<"0";
    else if(a==0)
        cout<<"1";


}
int main() {
        solve();
   return 0;
   } 

Compiler output:
a.cc:19:32: error: 's' does not name a type
   19 | typedef unsigned long long ull;s
      |                                ^
Language: C++

#include<iostream>
using namespace std;
 
int main()
{
    int x;
    cin>>x;
    cout<<(x==1?"0":"1)<<'\n';
}

Compiler output:
a.cc:8:21: warning: missing terminating " character
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |                     ^
a.cc:8:21: error: missing terminating " character
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |                     ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:8:21: error: expected ')' before '}' token
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |           ~         ^
      |                     )
    9 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main()
{
    int x;
    cin>>x;
    cout<<(x==1?"0":"1)<<'\n';
}

Compiler output:
a.cc:8:21: warning: missing terminating " character
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |                     ^
a.cc:8:21: error: missing terminating " character
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |                     ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:8:21: error: expected ')' before '}' token
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |           ~         ^
      |                     )
    9 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc:8:21: warning: missing terminating " character
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |                     ^
a.cc:8:21: error: missing terminating " character
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |                     ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:8:21: error: expected ')' before '}' token
    8 |     cout<<(x==1?"0":"1)<<'\n';
      |           ~         ^
      |                     )
    9 | }
      | ~
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        long mod = 1000000007;
        long ans = (long)Math.pow(10, n) - (long)Math.pow(9, n) - (long)Math.pow(9, n) + (long)Math.pow(8, n);
        System.out.println(ans%mod);
        sc.close();
    }
}

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

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: 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:6:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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:6:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   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 <atcoder/all>
using namespace std;
using namespace atcoder;

using ll = long long;
// using mint = modint1000000007;
// using mint = modint998244353;
// using mint = modint;

constexpr int inf = 0x3f3f3f3f;
constexpr ll linf = 0x3f3f3f3f3f3f3f3fLL;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);

    int x; cin >> x;
    cout << !x << 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.h>
int main()
{ int x;
  cin>>x;
  if (x==0)
    cout<<1;
  else if (x==1)
    cout<<0;
 else 
   cout<<"Error";
}

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

 #include<iostream.h>
void main()
{ int x;
  if (x==0)
     cout<<1;
  else if (x==1)
     cout<<0;
  else cout<<"error";
}

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

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

	
	int main() {

		#ifndef ONLINE_JUDGE
	        freopen("input.txt","r",stdin);
	        // freopen("output.txt","w",stdout);
	    #endif
	    ios::sync_with_stdio(false);
	    cin.tie(0);
	    cout.tie(0);
	   
	    int n;
	    cin>>n;
	    if(n==0){
	    	cout<<1<<enld;
	    }
	    else{
	    	cout<<0<<endl;
	    }
}



	


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ')' before numeric constant
    7 |   if(a--1)
      |     ~   ^
      |         )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: expected initializer before 'cin'
    6 | cin>>a;
      | ^~~
a.cc:7:6: error: 'a' was not declared in this scope
    7 |   if(a--1)
      |      ^
a.cc:7:9: error: expected ')' before numeric constant
    7 |   if(a--1)
      |     ~   ^
      |         )
Language: C

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

int main() {
  int a
cin>>a;
  if(a--1)
    cout << "0" << endl;
  
  else
  cout << "1" << 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++

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

Compiler output:
a.cc:1:1: error: '::main' must return 'int'
    1 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>x;
      |   ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout<<1;
      |     ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<0;
      |     ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#define N 5
 
char str[N];
int num;
char str_dummy[N];
 
void main(){
  str_dummy = fgets(str, N, stdin);
  num = atoi(str);
  if(num==0) printf("%d",1);
  else if(num==1) printf("%d",0); 
  else{
  }
}

Compiler output:
main.c: In function 'main':
main.c:10:13: error: assignment to expression with array type
   10 |   str_dummy = fgets(str, N, stdin);
      |             ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#define N 5

char str[N];
int num;
char str_dummy[N];

void main(){
  dummy = fgets(str, N, stdin);
  num = atoi(str);
  if(num==0) printf("%d",1);
  else if(num==1) printf("%d",0); 
  else{
  }
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: 'dummy' undeclared (first use in this function)
   10 |   dummy = fgets(str, N, stdin);
      |   ^~~~~
main.c:10:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <stdlib.h>

char str[5];
int num;
char *dummy;

void main(){
  dummy = fgets(str, N, stdin);
  num = atoi(str);
  if(num==0) printf("%d",1);
  else if(num==1) printf("%d",0); 
  else{
  }
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: 'N' undeclared (first use in this function)
    9 |   dummy = fgets(str, N, stdin);
      |                      ^
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

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



		#include<bits/stdc++.h>
		#include<ext/pb_ds/assoc_container.hpp>
		#include<ext/pb_ds/tree_policy.hpp>
		#define int long long
		#define w(t) int t;cin>>t;while(t--)
		#define pb push_back
		#define mk make_pair
		#define ascSort(v) sort(v.begin(), v.end())
		#define descSort(v) sort(v.begin(), v.end(), greater<int>())
		#define ff first
		#define ss second
		#define pi pair<int,int>
		#define vi vector<int>
		#define umapi unordered_map<int,int>
		#define INF 1000000007
		const int m=998244353;
		using namespace std;
		using namespace __gnu_pbds;

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

		void FIO(){
			#ifndef ONLINE_JUDGE
				freopen("input.txt", "r", stdin);
				freopen("output.txt", "w", stdout);
			#endif
			ios_base::sync_with_stdio(false);
		    cin.tie(NULL);	
		}
		
		int32_t main(){
			
			//FIO();
			
				int x;cin>>x;
				cout<<int(1)-x<<"\n";
			
			

			

			return 0;
			
				
		}


					

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:6:29: error: expected primary-expression before 'long'
    6 |                 #define int long long
      |                             ^~~~
a.cc:38:39: note: in expansion of macro 'int'
   38 |                                 cout<<int(1)-x<<"\n";
      |                                       ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ':' before ';' token
    7 |   n == 1? cout<<"0"<<endl; : cout<<"1"<<endl;;
      |                          ^
      |                          :
a.cc:7:26: error: expected primary-expression before ';' token
a.cc:7:28: error: expected primary-expression before ':' token
    7 |   n == 1? cout<<"0"<<endl; : cout<<"1"<<endl;;
      |                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define gc getchar_unlocked
#define fo(i, n) for (i = 0; i < n; i++)
#define Fo(i, k, n) for (i = k; k < n ? i < n : i > n; k < n ? i += 1 : i -= 1)
#define ll long long
#define si(x) scanf("%d", &x)
#define sl(x) scanf("%lld", &x)
#define ss(s) scanf("%s", s)
#define pi(x) printf("%d\n", x)
#define pl(x) printf("%lld\n", x)
#define ps(s) printf("%s\n", s)
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << endl
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define clr(x) memset(x, 0, sizeof(x))
#define sortall(x) sort(all(x))
#define tr(it, a) for (auto it = a.begin(); it != a.end(); it++)
#define PI 3.1415926535897932384626
typedef pair<int, int> pii;
typedef pair<ll, ll> pl;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<char> vc;
typedef vector<vc> vcc;
typedef vector<pii> vpii;
typedef vector<pl> vpl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
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);
}

int mpow(int base, int exp);
void ipgraph(int n, int m);
void dfs(int u, int par);

const int mod = 1'000'000'007;
const int N = 3e5, M = N;
//=======================

vi g[N];
int a[N];

void solve()
{
    1 ll i, j, n, m;

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

int main()
{
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    srand(chrono::high_resolution_clock::now().time_since_epoch().count());

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

    return 0;
}

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

void ipgraph(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);
    }
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:54:6: error: expected ';' before 'long'
   54 |     1 ll i, j, n, m;
      |      ^
      |      ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected identifier before '&' token
    5 |   scanf("%d".&a);
      |              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:12:12: warning: missing terminating " character
   12 |     printf("0\n);
      |            ^
main.c:12:12: error: missing terminating " character
   12 |     printf("0\n);
      |            ^~~~~~
main.c:13:3: error: expected expression before 'return'
   13 |   return 0;
      |   ^~~~~~
main.c:13:12: error: expected ';' before '}' token
   13 |   return 0;
      |            ^
      |            ;
   14 | }
      | ~
Language: C++

#include<bit/stdc++.h>
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:9: fatal error: bit/stdc++.h: No such file or directory
    1 | #include<bit/stdc++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: Java

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

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

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

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

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

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

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

#include <stdio.h>

int main()
{
	int X = 0;
	scanf("%d", &X);
	if (X == 0)
		printf(1);
	else
		printf(0);

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    8 |                 printf(1);
      |                        ^
      |                        |
      |                        int
In file included from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:12:18: error: expected '}' at end of input
   12 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <stdio.h>

int main()
{
	int X = 0;
	scanf("%d", &X);
	if (X == 0)
		printf("1");
	else
		printf("0");

	return 0;

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

#include <stdio.h>

int main()
{
	int X = 0;
	scanf_s("%d", &X);
	if (X == 0)
		printf("1");
	else
		printf("0");

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d", &X);
      |         ^~~~~~~
      |         scanf
a.cc:12:18: error: expected '}' at end of input
   12 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:11: error: implicit declaration of function 'println'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 |   if(x==0)println('0');
      |           ^~~~~~~
      |           printf
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define int               long long
#define endl              "\n"
#define pb                push_back
#define ppb               pop_back
#define pf                push_front
#define ppf               pop_front
#define all(x)            (x).begin(),(x).end()
#define uniq(v)           (v).erase(unique(all(v)),(v).end())
#define sz(x)             (int)((x).size())
#define ff                first
#define ss                second
#define pii               pair<int,int>
#define vi                vector<int>
#define vpi               vector<pair<int,int>>
#define mii               map<int,int>
#define rep(i,a,b)        for(int i=a;i<b;i++)
#define repe(i,a,b)        for(int i=a;i<=b;i++)
#define mem1(a)           memset(a,-1,sizeof(a))
#define mem0(a)           memset(a,0,sizeof(a))
#define ppc               __builtin_popcount
#define ppcll             __builtin_popcountll
#define INF 100000000000
#define mod 1000000007
#define esp 10e-7
const int mx=100005;

signed main()
{
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    //freopen("error.txt" , "w" , stderr);
    #endif
    IOS
     int x;
     cin>>x;
     cout<<x^1<<endl;
    


return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected primary-expression before ';' token
    7 |     cout<<"1"<<;
      |                ^
a.cc:10:16: error: expected primary-expression before ';' token
   10 |     cout<<"0"<<;
      |                ^
Language: C++

#pragma GCC optimize("Ofast")  
#pragma GCC target("avx,avx2,fma") 
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define ALL(x) x.begin(),x.end()
#define PB push_back
#define EB emplace_back
#define F first
#define S second
#define ll long long
#define MP make_pair
// #define int long long
// #define MAX LONG_LONG_MAX
// #define MIN LONG_LONG_MIN
#ifdef LOCAL // setting up print debugging (yes lol)
template<class K, class V>ostream& operator<<(ostream&s,const pair<K,V>&p){s<<'<'<<p.x<<','<<p.y<<'>';return s;}
template<class T, class=typename T::value_type, class=typename enable_if<!is_same<T,string>::value>::type>
ostream& operator<<(ostream&s,const T&v){s<<'[';for(auto&x:v){s<<x<<", ";}if(!v.empty()){s<<"\b\b";}s<<']';return s;}
void __prnt(){cerr<<endl;} template<class T, class...Ts>void __prnt(T&&a,Ts&&...etc){cerr<<a<<' ';__prnt(etc...);}
#define print(...) __prnt(__VA_ARGS__)
#else
#define print(...)
#endif
using namespace std;

const size_t MAXN = 1e5 +7;


void check(){
	cout << !x;
}

int32_t main(){
	ios_base::sync_with_stdio(false); cin.tie(NULL); 
	cin.exceptions(cin.failbit);
	int t = 1;	
	// cin >> t;
	for(int i = 1 ; i <= t ;i++){
		// cout << "Case "<< i << ":\n";
		check();
	}
	return 0;
}


Compiler output:
a.cc: In function 'void check()':
a.cc:31:18: error: 'x' was not declared in this scope
   31 |         cout << !x;
      |                  ^
Language: Java

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

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>
#include<string>
using namespace std;
int main()
{
  int n;
  cin>>n;
  cout<<n^1<<endl;
}

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<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n;
  cout<<n^1<<endl;
}

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

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

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

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