criyle/codenet-compile-errors huggingface dataset:
Language: Java

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


Compiler output:
Main.java:1: error: class JavaApplication14 is public, should be declared in a file named JavaApplication14.java
public class JavaApplication14 {
       ^
Main.java:3: error: cannot find symbol
        Scanner in=new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class JavaApplication14
Main.java:3: error: cannot find symbol
        Scanner in=new Scanner(System.in);
                       ^
  symbol:   class Scanner
  location: class JavaApplication14
3 errors
Language: C++

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

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

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using ll = long long;
const int mod = 1000000007;
const double PI = acos(-1);

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


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

#include<bits/stdc++.h>

int main(){
  int n;
  cin>>n;
  if(n==0)
     cout<<0;
  else
     cout<<1;
  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>>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:7:6: 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:9:6: 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<bits/stdc++.h>

int main(){
  int n;
  cin>>n;
  if(n==0)
     cout<<0;
  else
     cout<<1;
  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>>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:7:6: 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:9:6: 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<bits/stdc++.h>
using namespace std;
int main()
{ int X;
  cin>>X;
 cout<<!X
  
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before '}' token
    6 |  cout<<!X
      |          ^
      |          ;
    7 | 
    8 | }
      | ~
Language: C++

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

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

	cout<<x^1<<endl;
}

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

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

#define ll long long int
#define fun() ll t; cin>> t; while (t--)
#define arr() ll n;cin>> n;
#define ip() ll a[n]; for(ll x=0;x<n;x++){cin>>a[x];} 
#define MOD 1000000007

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'xin' was not declared in this scope; did you mean 'sin'?
   14 |         ll x;xin>>x;
      |              ^~~
      |              sin
Language: C++

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

int main() {
  int A,B;
  cin >> A;
  if(A==1) {
    B = 0
  }
  if(A==0) {
    B = 1
  }
  cout << B << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before '}' token
    8 |     B = 0
      |          ^
      |          ;
    9 |   }
      |   ~       
a.cc:11:10: error: expected ';' before '}' token
   11 |     B = 1
      |          ^
      |          ;
   12 |   }
      |   ~
Language: C

#include <stdio.h>
 
int main(int argc, char *argv[])
{
int x;
scanf("%d", &x);
if(x==0) printf("1");
else print("0");
}


Compiler output:
main.c: In function 'main':
main.c:8:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 | else print("0");
      |      ^~~~~
      |      printf
Language: C

#include <stdio.h>

int main(int argc, char *argv[])
{
if(x==0) printf("1");
else print("0");
}


Compiler output:
main.c: In function 'main':
main.c:5:4: error: 'x' undeclared (first use in this function)
    5 | if(x==0) printf("1");
      |    ^
main.c:5:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:6: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 | else print("0");
      |      ^~~~~
      |      printf
Language: C

if(x==0) printf("1");
else print("0");


Compiler output:
main.c:1:1: error: expected identifier or '(' before 'if'
    1 | if(x==0) printf("1");
      | ^~
main.c:2:1: error: expected identifier or '(' before 'else'
    2 | else print("0");
      | ^~~~
Language: C++

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

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

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


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

#include <bits/stdc++.h>
using namespace std;
using namespace atcoder;
using ll = long long;
using ull = unsigned long long;
#define REP(i,n) for (ll i = 0; i < (n); ++i)
#define RREP(i, n) for (ll i = (n) - 1; i >= 0; --i)
#define ALL(v) (v).begin(), (v).end()
template<class T>
using reverse_priority_queue = priority_queue<T, vector<T>, greater<T>>;


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


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

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ull = unsigned long long;
#define REP(i,n) for (ll i = 0; i < (n); ++i)
#define RREP(i, n) for (ll i = (n) - 1; i >= 0; --i)
#define ALL(v) (v).begin(), (v).end()
template<class T>
using reverse_priority_queue = priority_queue<T, vector<T>, greater<T>>;


int main(){
    ll x;
    cin >> x;
    cout << 1 - 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<stdio.h>
int main(void){
  double a,b,c,d;
  scanf("%lf%lf%lf%lf",&a,&b,&c,&d);
  long mass[4];
  mass[0]=a*d;
  mass[1]=a*c;
  mass[2]=b*c;
  mass[3]=b*d;
  double i,max,min;
  max = 0; min = 0;
  for(i=0;i<=3;i++){
    if(mass[i] > max)
      max = mass[i];
  }
  for(i=0;i<=3;i++){
    if(mass[i] < min)
      min = mass[i];
  }
  printf("%lf",max);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:12: error: array subscript is not an integer
   13 |     if(mass[i] > max)
      |            ^
main.c:14:17: error: array subscript is not an integer
   14 |       max = mass[i];
      |                 ^
main.c:17:12: error: array subscript is not an integer
   17 |     if(mass[i] < min)
      |            ^
main.c:18:17: error: array subscript is not an integer
   18 |       min = mass[i];
      |                 ^
Language: C

#include <cstdio>
 
int main()
{
    int a;
    scanf ("%d",&a);
    if (a==0) putchar('0');
  	else if (a==1) putchar('1');
	return 0;
}

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

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

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

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

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacestd'
    2 | using namespacestd;
      |       ^~~~~~~~~~~~
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 >> 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:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if (a==1) 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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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>
using namespacestd;
int main () {
  int a;
  cin >> a;
  if (a==1) cout << 0;
  else cout << 1;
  return 0;
}

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

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

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


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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected ';' before 'cout'
   14 |   else (x == 1)
      |                ^
      |                ;
   15 |     cout << 0 << '\n';
      |     ~~~~
Language: Java

import java.io.*;
public class not
{
  public static void main(String args[])throws IOException
  {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    int n=Integer.parseInt(br.readLine());
    if(n==0)
      System.out.println("1");
    else
      System.out.println("0");
  }
}


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

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

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

#include <bits/stdc++.h>

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


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 /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:6:15: 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:28: 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/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: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++

//---------------------------------------------------------MANAS UNIYAL---------------------------------------------------------
//                                                        NEVER  GIVE  UP
#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false);	cin.tie(NULL);	cout.tie(NULL);
#define ll long long
#define pb push_back
#define fi first 
#define se second
#define pii pair<ll,ll>
#define INF 0x3f3f3f3f
#define LINF 98765432123456789
#define testcases() ll t; cin>>t; while(t--)
#define debug cout<<"Hello\n";
#define debug1(x) cout<<#x<<" "<<x<<"\n";
#define debug2(x,y) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<"\n";
#define debug3(x,y,z) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<"\n";
#define debug4(w,x,y,z) cout<<#w<<" "<<w<<" "<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<"\n";
#define rep(i,start,end) for(ll i=start;i<end;i++)
#define sz(x) (ll)((x).size())
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
//------------------------------------------------------------------------------------------------------------------------------

int main()
{
	
	#ifndef ONLINE_JUDGE
	freopen("C:/Users/DELL/Desktop/input.txt", "r", stdin);
	#endif

	fast;
	cin>>n;
	cout<<!n;
	return 0;
}


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

#include <bits/stdc++.h>

int main(){
  int x;
  cin>>x;
  if(x==0) printf("%d",x+1);
  	else printf("%d",x-1);
  
}

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

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

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

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

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

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

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

#include<iostream>
using namesapce std;
int main()
{
  int x;
  cin>>x;
  cout<<(!x);
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>x;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<(!x);
      |   ^~~~
      |   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;
int main()
{
  int x;
  cin>>x;
  cout<<(x==0)?1:0<<endl;
}

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

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

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

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nmespace'
    2 | using nmespace std;
      |       ^~~~~~~~
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(}
      |     ^~~~
a.cc:3:10: error: expected primary-expression before '}' token
    3 | int main(}
      |          ^
a.cc:3:10: error: expected declaration before '}' token
a.cc:4:10: error: expected unqualified-id before '{' token
    4 |          {
      |          ^
a.cc:8:15: error: 'cout' does not name a type
    8 |               cout<<1<<endl;
      |               ^~~~
a.cc:9:15: error: expected unqualified-id before 'else'
    9 |               else
      |               ^~~~
a.cc:11:15: error: expected declaration before '}' token
   11 |               }
      |               ^
Language: C++

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

int main(){

  int a,b,c,d;
  cin >> a >> b >> c >> d;
  
  
  if(a>=0 && c>=0){
  	cout << b*d << endl;
  }else if(b<=0 && d<=0){
  	cout << a*c << endl;
  }else if(b>=0 && c>=0){
  	cout << a*b << endl;
  }else cout << b*c << endl;
}

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

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


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

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


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int t; cin >> t;
  while(t--){
	int x; cin >> x;
    if(x == 1){
      int a = 0;
    }
    if(x==1){
      int a = 1;
    }
    return a;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'a' was not declared in this scope
   13 |     return a;
      |            ^
Language: C++

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

Compiler output:
a.cc:3:1: error: 'define' does not name a type
    3 | define ll long long int
      | ^~~~~~
Language: C

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

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

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

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

Compiler output:
a.cc:3:1: error: 'define' does not name a type
    3 | define ll long long int
      | ^~~~~~
Language: C

#include <stdio.h>
int main(void){
	int A,B,C,D,K;
	scanf("%d%d%d%d",&A&B&C&D);
	if (B>=0&&D>=0){
		K=B*C;
		printf("%d\n",K);
	{
	else if (B<=0&&D<=0){
		K=A*C;
		printf("%d\n",K);
	}
	else if (B>=0&&D<=0){
		K=B*D;
		printf("%d\n",K);
	}
	else if (B<=0&&D>=0){
		K=B*C;
		printf("%d\n",K);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:28: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d%d%d%d",&A&B&C&D);
      |                          ~~^
      |                          |
      |                          int *
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else if (B<=0&&D<=0){
      |         ^~~~
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
main.c:22:1: error: expected declaration or statement at end of input
Language: C++

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



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf' was not declared in this scope
    4 | scanf("%d",&X);
      | ^~~~~
a.cc:5:11: error: 'printf' was not declared in this scope
    5 | 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 | #includ<stdio.h>
a.cc:6:6: error: 'printf' was not declared in this scope
    6 | else printf("0");
      |      ^~~~~~
a.cc:6:6: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:7:10: error: expected '}' at end of input
    7 | return 0;
      |          ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespce std;
int main(){
  int x;
  cin>>x;
  cout<<!x;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce 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>>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:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout<<!x;
      |   ^~~~
      |   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 <stdio.h>

int main(int argc, char *argv[])
{
  int x;
  
  scanf("%d", %x);
  printf("%d\n", !x);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:15: error: expected expression before '%' token
    7 |   scanf("%d", %x);
      |               ^
Language: C

#include<stdio.h>

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

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

#include <iostream>
using namespace std;

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

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

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

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


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

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

#pragma region Macros
using ll = long long;
#define int ll
using pii = pair<int, int>;
using tiii = tuple<int, int, int>;
template<class T = ll> using V = vector<T>;
template<class T = ll> using VV = V<V<T>>;
#define IOS\
    ios::sync_with_stdio(false);\
    cin.tie(0);\
    cout.tie(0);
#define FOR(i,l,r) for(ll i=(l);i<(r);++i)
#define REP(i,n) FOR(i,0,n)
#define REPS(i,n) FOR(i,1,n+1)
#define RFOR(i,l,r) for(ll i=(l);i>=(r);--i)
#define RREP(i,n) RFOR(i,n-1,0)
#define RREPS(i,n) RFOR(i,n,1)
#define mp make_pair
#define mt make_tuple
#define pb push_back
#define eb emplace_back
#define all(x) (x).begin(),(x).end()
#define SORT(name) sort(name.begin(), name.end())
#define RSORT(name)\
    SORT(name);\
    reverse(all(name));
#define ZERO(p) memset(p, 0, sizeof(p))
#define MINUS(p) memset(p, -1, sizeof(p))
inline void Yes(bool b = true) {cout << (b ? "Yes" : "No") << '\n';}
inline void YES(bool b = true) {cout << (b ? "YES" : "NO") << '\n';}
template <class T> inline void print(T x){ cout << x << '\n';}
template<typename T1,typename T2> inline void chmin(T1 &a, T2 b){ if(a > b) a = b; }
template<typename T1,typename T2> inline void chmax(T1 &a, T2 b){ if(a < b) a = b; }

const ll LLINF = (1LL<<60);
const int INF = (1LL<<30);
const double DINF = std::numeric_limits<double>::infinity();
#pragma endregion

#if 1
#  define DBG(fmt, ...) printf(fmt, ##__VA_ARGS__)
#else
#  define DBG(fmt, ...)
#endif

const int MOD = 1000000007;
const int MAX_N = 100010;

signed main() {
    IOS;

    int T;
    cin >> T;
    REP(i, T) {
        int N, M, A, B;
        cin >> N >> M >> A >> B;
        print(floor_sum(N, M, A, B));
    }

    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 <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using namespace std;

#pragma region Macros
using ll = long long;
#define int ll
using pii = pair<int, int>;
using tiii = tuple<int, int, int>;
template<class T = ll> using V = vector<T>;
template<class T = ll> using VV = V<V<T>>;
#define IOS\
    ios::sync_with_stdio(false);\
    cin.tie(0);\
    cout.tie(0);
#define FOR(i,l,r) for(ll i=(l);i<(r);++i)
#define REP(i,n) FOR(i,0,n)
#define REPS(i,n) FOR(i,1,n+1)
#define RFOR(i,l,r) for(ll i=(l);i>=(r);--i)
#define RREP(i,n) RFOR(i,n-1,0)
#define RREPS(i,n) RFOR(i,n,1)
#define mp make_pair
#define mt make_tuple
#define pb push_back
#define eb emplace_back
#define all(x) (x).begin(),(x).end()
#define SORT(name) sort(name.begin(), name.end())
#define RSORT(name)\
    SORT(name);\
    reverse(all(name));
#define ZERO(p) memset(p, 0, sizeof(p))
#define MINUS(p) memset(p, -1, sizeof(p))
inline void Yes(bool b = true) {cout << (b ? "Yes" : "No") << '\n';}
inline void YES(bool b = true) {cout << (b ? "YES" : "NO") << '\n';}
template <class T> inline void print(T x){ cout << x << '\n';}
template<typename T1,typename T2> inline void chmin(T1 &a, T2 b){ if(a > b) a = b; }
template<typename T1,typename T2> inline void chmax(T1 &a, T2 b){ if(a < b) a = b; }

const ll LLINF = (1LL<<60);
const int INF = (1LL<<30);
const double DINF = std::numeric_limits<double>::infinity();
#pragma endregion

#if 1
#  define DBG(fmt, ...) printf(fmt, ##__VA_ARGS__)
#else
#  define DBG(fmt, ...)
#endif

const int MOD = 1000000007;
const int MAX_N = 100010;

signed main() {
    IOS;

    int T;
    cin >> T;
    REP(i, T) {
        int N, M, A, B;
        cin >> N >> M >> A >> B;
        print(floor_sum(N, M, A, B));
    }

    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: Java

x=int(input('x(0<=x<=1)='))
  if x==0:
print('1')
  else x==1:
print('0')

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
x=int(input('x(0<=x<=1)='))
^
Main.java:1: error: unclosed character literal
x=int(input('x(0<=x<=1)='))
            ^
Main.java:1: error: unclosed character literal
x=int(input('x(0<=x<=1)='))
                        ^
3 errors
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #bits
    1 | #bits/stdc++.h
      |  ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #bits/stdc++.h
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << 1 ; }
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << 0; } }
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
#define ALL(A) (A).begin(), (A).end()
#define ll long long
#define rep(i, n) for (int i = 0; i < (n); i++)

using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int dx[] = { 0, 1, -1, 0, 1, -1, 1, -1 };  // i<4:4way i<8:8way
int dy[] = { 1, 0, 0, -1, 1, -1, -1, 1 };

const ll mod = 1e9 + 7;
const ll INF = -1 * ((1LL << 63) + 1);
const int inf = -1 * ((1 << 31) + 1);

int main(void){
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
    int x;
    cin >> x;
    cout << x^1 << endl;
}

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

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

int main(void){
  long long a, b, c, d, x, y, ans;
  cin >> a >> b >> c >> d;
  
  x=max(a, b);
  y=max(c, d);
  
  
  ans = max(x*y, min(a, b)*min(c, d);
  ans = max(ans,min(a, b)*max(c, d) );
  ans = max(ans,max(a, b)*min(c, d) );        

  cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:37: error: expected ')' before ';' token
   13 |   ans = max(x*y, min(a, b)*min(c, d);
      |            ~                        ^
      |                                     )
Language: C++

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

int main(void){
  long long a, b, c, d, x, y, ans;
  cin >> a >> b >> c >> d;
  
  x=max(a, b);
  y=max(c, d);
  
  
  ans =max([x*y, min(a, b)*min(c, d),min(a, b)*max(c, d), max(a, b)*min(c, d) ] );
  cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ',' before '*' token
   13 |   ans =max([x*y, min(a, b)*min(c, d),min(a, b)*max(c, d), max(a, b)*min(c, d) ] );
      |              ^
      |              ,
a.cc:13:14: error: expected identifier before '*' token
a.cc:13:16: error: expected ']' before ',' token
   13 |   ans =max([x*y, min(a, b)*min(c, d),min(a, b)*max(c, d), max(a, b)*min(c, d) ] );
      |                ^
      |                ]
a.cc: In lambda function:
a.cc:13:16: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:13:78: error: expected ')' before ']' token
   13 |   ans =max([x*y, min(a, b)*min(c, d),min(a, b)*max(c, d), max(a, b)*min(c, d) ] );
      |           ~                                                                  ^~
      |                                                                              )
Language: C++

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

int main(void){
  long long a, b, c, d, x, y, ans;
  cin >> a >> b >> c >> d;
  
  x=max(a, b);
  y=max(c, d);
  
  
  ans =max(x*y,min(a, b)*mmin(c, d) );
  cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: 'mmin' was not declared in this scope; did you mean 'main'?
   13 |   ans =max(x*y,min(a, b)*mmin(c, d) );
      |                          ^~~~
      |                          main
Language: C++

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

long long main(void){
  long long a, b, c, d, x, y, ans;
  cin >> a >> b >> c >> d;
  
  x=max(a, b);
  y=max(c, d);
  
  
  ans =x*y;
  cout << ans;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

long long main(void){
  long long a, b, c, d, x, y;
  cin >> a >> b >> c >> d;
  
  x=max(a, b);
  y=max(c, d);
  
  
  ans = max(x*y);
  cout << ans;
}
  


Compiler output:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:13:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |   ans = max(x*y);
      |   ^~~
      |   abs
a.cc:13:12: error: no matching function for call to 'max(long long int)'
   13 |   ans = max(x*y);
      |         ~~~^~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
a.cc:13:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   13 |   ans = max(x*y);
      |         ~~~^~~~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <iostream>
using namespace std;

int main(void){
  cin << x;

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


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

#include <iostream>
using namespace std;

int main(void){
  cin << x;

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


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

#include <iostream>
using namespace std;

void main{
  cin << x;

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


Compiler output:
a.cc:4:6: error: variable or field 'main' declared void
    4 | void main{
      |      ^~~~
a.cc:5:10: error: 'x' was not declared in this scope
    5 |   cin << x;
      |          ^
a.cc:5:11: error: expected '}' before ';' token
    5 |   cin << x;
      |           ^
a.cc:4:10: note: to match this '{'
    4 | void main{
      |          ^
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if (x==1){
      |   ^~
a.cc:9:4: error: expected unqualified-id before 'else'
    9 |   }else{
      |    ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: Java

import java.util.*;

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


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

import java.util.*;

public class Not {
    public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.next();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    }
}


Compiler output:
Main.java:3: error: class Not is public, should be declared in a file named Not.java
public class Not {
       ^
Main.java:7: error: incompatible types: String cannot be converted to int
        input = sc.next();
                       ^
2 errors
Language: Java

import java.io.*;

public class Not {
    public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.next();
        if (input == 0)
            System.out.println(1);
        if (input == 1)
            System.out.println(0);
    }
}


Compiler output:
Main.java:3: error: class Not is public, should be declared in a file named Not.java
public class Not {
       ^
Main.java:6: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Not
Main.java:6: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Not
3 errors
Language: Java

import java.io.*;
public class Solution {
    public static void main(String[] args) {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.next();
        if (x == 0)
            System.out.println(1);
        if (x == 1)
            System.out.println(0);
    }
}


Compiler output:
Main.java:2: error: class Solution is public, should be declared in a file named Solution.java
public class Solution {
       ^
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Solution
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Solution
Main.java:7: error: cannot find symbol
        if (x == 0)
            ^
  symbol:   variable x
  location: class Solution
Main.java:9: error: cannot find symbol
        if (x == 1)
            ^
  symbol:   variable x
  location: class Solution
5 errors
Language: Java

import java.io.*;
public class Solution{
    public static void main(String[] args)
    {
        int input = 0;
        Scanner sc = new Scanner(System.in);
        input = sc.next();
        if (x == 0)
            System.out.println(1);
        if (x == 1)
            System.out.println(0);
    }


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

import java.io.*;

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

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args)
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

#include <iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include <atcoder/all>
#include <iostream>
#include <numeric>
#include <cmath>
#include <limits>
#include <stdio.h>
#include <iomanip>
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
using namespace std;
using namespace atcoder;
using ll = long long;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
ll Max(ll(a), ll(b), ll(c)) {
	return max(max(a, b), c);
}
ll Min(ll(a), ll(b), ll(c)) {
	return min(min(a, b), c);
}
ll mod = 998244353;
int main() {
	ll x;
	cin >> x;
	cout << (1 - x) << endl;
}

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