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

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int x,t;
    cin >> x >> t;
    cout << max(x-t) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: no matching function for call to 'max(int)'
    8 |     cout << max(x-t) << endl;
      |             ~~~^~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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:
/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:8:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    8 |     cout << max(x-t) << endl;
      |             ~~~^~~~~
/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 <bits/stdc++.h>
using namespace std；
int main()
{
    long long n,t;
    cin>>n>>t
    if(n-t<=0){
        printf("0\n");
        return 0;
    }
    printf("%lld\n",n-t);
    return 0;
}

Compiler output:
a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name
    2 | using namespace std；
      |                 ^~~~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std；
      |                      ^
      |                      ;
    3 | int main()
      | ~~~                   
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>n>>t
      |     ^~~
      |     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++

#include<bits/stdc++.h>
using namespace std;
long long a,b;
int main()
{
    cin>>a>>b;
    cout<<max(a-b,0)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: no matching function for call to 'max(long long int, int)'
    7 |     cout<<max(a-b,0)<<endl;
      |           ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 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:   template argument deduction/substitution failed:
a.cc:7:14: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    7 |     cout<<max(a-b,0)<<endl;
      |           ~~~^~~~~~~
/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, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/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:   candidate expects 1 argument, 2 provided
/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:   template argument deduction/substitution failed:
a.cc:7:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    7 |     cout<<max(a-b,0)<<endl;
      |           ~~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a,b;
	cin>>a>>B;
	if(a>=b)cout<<a-b<<endl;
    else cout<<0<<endl;
	return 0;
}


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

#include <bits/stdc++.h>

int main(){
  int a,b;cin>>a>>b;
  cout<<max(0,a-b)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int a,b;cin>>a>>b;
      |           ^~~
      |           std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<max(0,a-b)<<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:5:9: error: 'max' was not declared in this scope; did you mean 'std::max'?
    5 |   cout<<max(0,a-b)<<endl;
      |         ^~~
      |         std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:5:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout<<max(0,a-b)<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#incldude<iostream>
using namespace std;

int main(void){
  int X, t;
  cin >> X >> t;
  cout << X - t << endl;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldude; did you mean #include?
    1 | #incldude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> X >> t;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldude<iostream>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << X - t << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |   cout << X - t << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldude<iostream>
Language: C++

#include<iostream>

int main(void){
  int n, t; std::cin>>n>>t;
  std::cout << ((n-t)>0) ? (n-t) : (0) << std::endl;
}


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

#include<iostream>

int main(void){
  int n, t; std::cin>>n>>t;
  std::cout << ((n-t)>0) ? (n-t) : ('0') << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:42: error: invalid operands of types 'char' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |   std::cout << ((n-t)>0) ? (n-t) : ('0') << std::endl;
      |                                    ~~~~~~^~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;
#define ll long long
int main(){
    ll x,t;
    cin >> x>> t;
    cout << max(0,x-t)<< endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: no matching function for call to 'max(int, long long int)'
    8 |     cout << max(0,x-t)<< endl;
      |             ~~~^~~~~~~
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:   template argument deduction/substitution failed:
a.cc:8:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
    8 |     cout << max(0,x-t)<< endl;
      |             ~~~^~~~~~~
/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, 2 provided
Language: C++

#include <instream>
using namespace std;

int main(){
  int X, t;
  cin >> X >> t;
  
  if(X-t<0){
    cout << 0 << endl;}
  else{cout << X-t << endl;}
}

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

#include<iostream>
#include<algorithm>
#include<math.h>
#include<set>
#include<vector>
#include<string>
using namespace std;
int main() {
int a,b;
cin>>a>>b;
cout<<a-b<<endl:
}

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

#include <cstdio>
using namespace std;
int main(void){
  int a,b;
  scanf("%d%d",&a,&b);
  printf("%d\n",a-b>0:a-b:0);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ')' before ':' token
    6 |   printf("%d\n",a-b>0:a-b:0);
      |         ~            ^
      |                      )
Language: C++

#include<algorithm>
#include <bits/stdc++.h>
#include <math.h>
#include <queue>
using namespace std;
int main(void){
	long long int x,t;
	cin>>x>>t;
	if(x<t) cou<<"0"<<endl;
	else cout<<x-t<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'cou' was not declared in this scope; did you mean 'cos'?
    9 |         if(x<t) cou<<"0"<<endl;
      |                 ^~~
      |                 cos
Language: C++

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

int main()
{
	int X,t;
	cin >> X >> t;
	if(x-t < 0){
		cout << 0 << endl;
	}else{
		cout << X-t << endl;
	}
	return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before '}' token
   10 |     printf("%d\n",x-t)
      |                       ^
      |                       ;
   11 |   }
      |   ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected ';' before 'return'
   10 |   printf("%d\n",x-t)
      |                     ^
      |                     ;
   11 | 
   12 |     return 0;
      |     ~~~~~~
Language: Java

import java.util.*;
import java.io.*; 
 
class Main { 
    public static void main(String[] args) {
        FastScanner sc = new FastScanner();
      	int x = sc.nextInt();
      	int t = sc.nextInt();
      	PrintWriter out = new PrintWriter(System.out);
        out.println(Math.max(x - t, 0));
      	out.flush();
    }
}

class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    private void skipUnprintable() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;}
    public boolean hasNext() { skipUnprintable(); return hasNextByte();}

    public long nextInt() {
        if (!hasNext()) throw new NoSuchElementException();
        int n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while(true){
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            }else if(b == -1 || !isPrintableChar(b)){
                return minus ? -n : n;
            }else{
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }
}


Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from long to int
      	int x = sc.nextInt();
      	                  ^
Main.java:8: error: incompatible types: possible lossy conversion from long to int
      	int t = sc.nextInt();
      	                  ^
2 errors
Language: Java

import java.util.*;
import java.io.*; //printwiter

//このように絞った方が良いかも
//import java.io.Closeable;
//import java.io.File;
//import java.io.FileInputStream;
//import java.io.FileNotFoundException;
//import java.io.IOException;
//import java.io.InputStream;
//import java.io.PrintWriter;
//import java.util.NoSuchElementException;
//import java.util.Scanner;


/**
 * Base_version with PrintWriter and FastScanner
 */ 
 
class Main { 
    public static void main(String[] args) {
        FastScanner sc = new FastScanner();//Scanner→FastScanner, Delete(System.in)
      	Int x = sc.nextInt();//longをintに戻した
      	Int t = sc.nextInt();//longをintに戻した
      	PrintWriter out = new PrintWriter(System.out);
        out.println(Math.max(x - t, 0));
      	out.flush();
    }
}

//add 
class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
    public long nextLong() {
        if (!hasNext()) throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while(true){
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            }else if(b == -1 || !isPrintableChar(b)){
                return minus ? -n : n;
            }else{
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }
    public int nextInt() {
        long nl = nextLong();
        if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
        return (int) nl;
    }
    public double nextDouble() { return Double.parseDouble(next());}
}

Compiler output:
Main.java:23: error: cannot find symbol
      	Int x = sc.nextInt();//long?int????
      	^
  symbol:   class Int
  location: class Main
Main.java:24: error: cannot find symbol
      	Int t = sc.nextInt();//long?int????
      	^
  symbol:   class Int
  location: class Main
2 errors
Language: Java

import java.util.*;
import java.io.*; //printwiter
 
/**
 * Base_version with PrintWriter
 */ 
 
class Main { 
    public static void main(String[] args) {
        FastScanner sc = new FastScanner(System.in);//Scanner→FastScanner
      	long x = sc.nextLong();
      	//int→long[actually using int is better], nextInt()→nextLong
      	long t = sc.nextLong();//int→long, nextInt()→nextLong
      	PrintWriter out = new PrintWriter(System.out);
        out.println(Math.max(x - t, 0));
      	out.flush();
    }
}

//add 
class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    private void skipUnprintable() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;}
    public boolean hasNext() { skipUnprintable(); return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
    public long nextLong() {
        if (!hasNext()) throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while(true){
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            }else if(b == -1 || !isPrintableChar(b)){
                return minus ? -n : n;
            }else{
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }
}


Compiler output:
Main.java:10: error: constructor FastScanner in class FastScanner cannot be applied to given types;
        FastScanner sc = new FastScanner(System.in);//Scanner?FastScanner
                         ^
  required: no arguments
  found:    InputStream
  reason: actual and formal argument lists differ in length
1 error
Language: Java

import java.util.*;
import java.io.*; //printwiter
 
/**
 * Base_version with PrintWriter
 */ 
 
class Main { 
    public static void main(String[] args) {
        FastScanner sc = new FastScanner(System.in);//Scanner→FastScanner
      	int x = (int)sc.nextLong();//add(int), nextInt()→nextLong
      	int t = (int)sc.nextLong();//add(int), nextInt()→nextLong
      	PrintWriter out = new PrintWriter(System.out);
        out.println(Math.max(x - t, 0));
      	out.flush();
    }
}

//add 
class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    private void skipUnprintable() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;}
    public boolean hasNext() { skipUnprintable(); return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
    public long nextLong() {
        if (!hasNext()) throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while(true){
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            }else if(b == -1 || !isPrintableChar(b)){
                return minus ? -n : n;
            }else{
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }
}

Compiler output:
Main.java:10: error: constructor FastScanner in class FastScanner cannot be applied to given types;
        FastScanner sc = new FastScanner(System.in);//Scanner?FastScanner
                         ^
  required: no arguments
  found:    InputStream
  reason: actual and formal argument lists differ in length
1 error
Language: Java

import java.util.*;

/**
 * Base_version with PrintWriter
 */ 

class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      	int x = sc.nextInt();
      	int t = sc.nextInt();
      	PrintWriter out = new PrintWriter(System.out);
        out.println(Math.max(x - t, 0));
      	out.flush();
    }
}

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

// ------------------------------------
// Date:2018/ 3/10
// Problem:ABC 072 Sandglass2 a.cpp
//
// ------------------------------------

#include <bits/stdc++.h>

using namespace std;

#define EACH(i,a) for (auto&& i : a)
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define ALL(a) (a).begin(),(a).end()
#define debug(x) cerr << #x << ":" << x << endl

typedef long long ll;

static const int MOD = 1000000007;

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

  int x, t;
  cin >> x >> t;
  tmp = x - t;
  if (tmp < 0) tmp = 0;
  cout << tmp << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:3: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   30 |   tmp = x - t;
      |   ^~~
      |   tm
Language: C++

#include <iostream>

int main()
{
  long long a, b;
  cin >> a >> b;
  cout << a - b << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   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 << a - b << 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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << a - b << 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()
{
long long int a,b;
cin>>a>>b;
cout<<(((a-b)<0)?0:a-b);
return 0;
}

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

#include <iostream>
#include <cstring>
#include <cmath> 
#include <vector>
#include <algorithm>
#include <queue>
using namespace std;   
int main()  
{ 
    long long a,b;
    cin>>a>>b;
    cout<<max(0,a-b); 


    system("pause");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: no matching function for call to 'max(int, long long int)'
   12 |     cout<<max(0,a-b);
      |           ~~~^~~~~~~
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:   template argument deduction/substitution failed:
a.cc:12:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   12 |     cout<<max(0,a-b);
      |           ~~~^~~~~~~
/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, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:5:
/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:   candidate expects 1 argument, 2 provided
/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:   template argument deduction/substitution failed:
a.cc:12:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |     cout<<max(0,a-b);
      |           ~~~^~~~~~~
Language: C++

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

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n; 
cin >> n;
int aaa;
vector<int> b(100001);
for(int i=0;i<n;i++)
{cin >> aaa;
 if(0<aaa) b[aaa-1]++;
 b[aaa]++;
 if(aaa<100000)b[aaa+1]++;
}
cout << *max_element(all(b));
}
system ("pause");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'all' was not declared in this scope; did you mean 'std::filesystem::perms::all'?
   15 | cout << *max_element(all(b));
      |                      ^~~
      |                      std::filesystem::perms::all
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:1:
/usr/include/c++/14/bits/fs_fwd.h:158:7: note: 'std::filesystem::perms::all' declared here
  158 |       all               =  0777,
      |       ^~~
a.cc: At global scope:
a.cc:17:8: error: expected constructor, destructor, or type conversion before '(' token
   17 | system ("pause");
      |        ^
a.cc:18:1: error: expected unqualified-id before 'return'
   18 | return 0;
      | ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

include<iostream>
using namespace std;
int judge(int x,int y);
{int z=x-y;
 if(z>0)
 return z;
 else
 return 0;}
int main()
{int a,b;
 cin>>a>>b;
 cout<<judge(a,b);
return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc:4:1: error: expected unqualified-id before '{' token
    4 | {int z=x-y;
      | ^
a.cc: In function 'int main()':
a.cc:11:2: error: 'cin' was not declared in this scope
   11 |  cin>>a>>b;
      |  ^~~
a.cc:12:2: error: 'cout' was not declared in this scope
   12 |  cout<<judge(a,b);
      |  ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
　　int X,t;
　　cin >> X >> t;
　　if (X >= t){　
　　　　cout << (X - t) << endl;
　　}else{
　　　　cout << '0' << endl;
        }
}


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　int X,t;
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　cin >> X >> t;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
a.cc:7:1: error: extended character 　 is not valid in an identifier
    7 | 　　if (X >= t){　
      | ^
a.cc:7:1: error: extended character 　 is not valid in an identifier
a.cc:7:17: error: extended character 　 is not valid in an identifier
    7 | 　　if (X >= t){　
      |                 ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
    8 | 　　　　cout << (X - t) << endl;
      | ^
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:8:1: error: extended character 　 is not valid in an identifier
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　}else{
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　　　cout << '0' << endl;
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000int' was not declared in this scope
    5 | 　　int X,t;
      | ^~~~~~~
a.cc:6:1: error: '\U00003000\U00003000cin' was not declared in this scope
    6 | 　　cin >> X >> t;
      | ^~~~~~~
a.cc:6:12: error: 'X' was not declared in this scope
    6 | 　　cin >> X >> t;
      |            ^
a.cc:6:17: error: 't' was not declared in this scope; did you mean 'tm'?
    6 | 　　cin >> X >> t;
      |                 ^
      |                 tm
a.cc:7:1: error: '\U00003000\U00003000if' was not declared in this scope
    7 | 　　if (X >= t){　
      | ^~~~~~
a.cc:9:6: error: 'else' without a previous 'if'
    9 | 　　}else{
      |      ^~~~
a.cc:10:1: error: '\U00003000\U00003000\U00003000\U00003000cout' was not declared in this scope
   10 | 　　　　cout << '0' << endl;
      | ^~~~~~~~~~~~
Language: C++

#include <iosream>
using namespace std;

int main(){
　　int X,t;
　　cin >> X >> t;
　　if (X >= t){　
　　　　cout << (X - t) << endl;
　　}else{
　　　　cout << '0' << endl;
        }
}


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

#include <iostream>
int main() {
  int a, b;
  cin >> a >> b;
  cout << (a < b ? 0 : a - b) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> a >> b;
      |   ^~~
      |   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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout << (a < b ? 0 : a - b) << 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:5:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout << (a < b ? 0 : a - b) << 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<deque>
#include<queue>
#include<vector>
#include<algorithm>
#include<iostream>
#include<set>
#include<cmath>
#include<tuple>
#include<string>
#include<chrono>
#include<functional>
#include<iterator>
#include<random>
#include<unordered_set>
#include<unordered_map>
#include<array>
#include<map>
#include<bitset>
#include<iomanip>
#include<list>
using namespace std;
typedef unsigned long long int ulint;
typedef long long int llint;
typedef long double lldo;
#define mp make_pair
#define mt make_tuple
#define pub push_back
#define puf push_front
#define pob pop_back
#define pof pop_front
#define fir first
#define sec second
#define res resize
#define ins insert
#define era erase
#define RE return 0
//ios::sync_with_stdio(false);
//std::cin.tie(0);
//<< setprecision(20)
const int mod=1e9+7;
const llint big=1e15+100;
const long double pai=3.141592653589793238462643383279502884197;
const long double ena=2.71828182845904523536;
const long double eps=1e-7;
template <class T,class U>void mineq(T& a,U b){if(a>b){a=b;}}
template <class T,class U>void maxeq(T& a,U b){if(a<b){a=b;}}
template <class T> void soun(T& ar)
{sort(ar.begin(),ar.end());ar.erase(unique(ar.begin(),ar.end()),ar.end());}
llint gcd(llint a,llint b){if(a%b==0){return b;}else{return gcd(b,a%b);}}
llint lcm(llint a,llint b){return a/gcd(a,b) *b;}
template<class T,class U> auto LB(T& ve,U in){return lower_bound(ve.begin(),ve.end(),in);}
template<class T,class U> auto UB(T& ve,U in){return upper_bound(ve.begin(),ve.end(),in);}
template<class T,class U> auto LBI(T& ve,U in){return LB(ve,in)-ve.begin();}
template<class T,class U> auto UBI(T& ve,U in){return UB(ve,in)-ve.begin();}
template<class T> void SO(T& ve){sort(T.begin(),T.end());}
int main(void){
	int x,t;cin>>x>>t;cout<<max(0,x-t)<<endl;
}

Compiler output:
a.cc: In function 'void SO(T&)':
a.cc:55:40: error: expected primary-expression before '.' token
   55 | template<class T> void SO(T& ve){sort(T.begin(),T.end());}
      |                                        ^
a.cc:55:50: error: expected primary-expression before '.' token
   55 | template<class T> void SO(T& ve){sort(T.begin(),T.end());}
      |                                                  ^
Language: C++

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(x,y) (x=min(x,y))
#define chmax(x,y) (x=max(x,y))
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:44:18: error: no matching function for call to 'max(ll, int)'
   44 |         cout<<max(x-y, 0)<<endl;
      |               ~~~^~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 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:   template argument deduction/substitution failed:
a.cc:44:18: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   44 |         cout<<max(x-y, 0)<<endl;
      |               ~~~^~~~~~~~
/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, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/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:   candidate expects 1 argument, 2 provided
/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:   template argument deduction/substitution failed:
a.cc:44:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   44 |         cout<<max(x-y, 0)<<endl;
      |               ~~~^~~~~~~~
Language: C++

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

int main()
{
	string s;
	cin >> s;
	for(int i = 0;i < s.size();i += 2)
	{
		cout << s[i];
	}
	cout << endl;
	return 0;



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

#include<stdio.h>

int main() {
	long x, t;
	scanf_s("%ld %ld", &x, &t);
	if (x > t) {
		printf("%ld\n", x - t);
	}
	else {
		printf("0\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%ld %ld", &x, &t);
      |         ^~~~~~~
      |         scanf
Language: C++

int main() {

	string txt;
	cin >> txt;
	int len = 0;

	len = txt.size();
	//len = strlen(txt.c_str());
	//cout << len;

	string str(txt);
	for (int i = 0; i < len; i++)
	{
		double amari = i % 2;
		if (amari == 0.0){
			cout << str[i];
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string txt;
      |         ^~~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> txt;
      |         ^~~
a.cc:4:16: error: 'txt' was not declared in this scope
    4 |         cin >> txt;
      |                ^~~
a.cc:11:15: error: expected ';' before 'str'
   11 |         string str(txt);
      |               ^~~~
      |               ;
a.cc:16:25: error: 'cout' was not declared in this scope
   16 |                         cout << str[i];
      |                         ^~~~
a.cc:16:33: error: 'str' was not declared in this scope; did you mean 'std'?
   16 |                         cout << str[i];
      |                                 ^~~
      |                                 std
Language: C++

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

int main() {

	string txt;
	cin >> txt;

	int len = strlen(txt.c_str());
	//cout << len;

	string str(txt);
	for (int i = 0; i < len; i++)
	{
		double amari = i % 2;
		if (amari == 0.0){
			cout << str[i];
		}
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'strlen' was not declared in this scope
   10 |         int len = strlen(txt.c_str());
      |                   ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

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

int main() {

	int X;
	cin >> X; //砂時計のパーツの残量
	int x;
	cin >> x; //経過秒数

	int Z = X - x;
	if (Z > 0){
		cout << Z;
	}
	else{
		cout << 0;
	}
	
	return 0;


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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:14:17: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |                 pritnf("%d\n", x - t);
      |                 ^~~~~~
      |                 printf
Language: C++

#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
    int x,t,n;
    scanf("%d%d",&x,&t)；

        if(x>=t)
    {
         n=x-t;
    printf(%d\n",n);
    }
    else 
    {
        printf("0\n");
    }

    return 0;
}


Compiler output:
a.cc:13:14: error: stray '\' in program
   13 |     printf(%d\n",n);
      |              ^
a.cc:13:16: warning: missing terminating " character
   13 |     printf(%d\n",n);
      |                ^
a.cc:13:16: error: missing terminating " character
   13 |     printf(%d\n",n);
      |                ^~~~~
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before '\U0000ff1b'
    8 |     scanf("%d%d",&x,&t)；
      |                        ^~
      |                        ;
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else
      |     ^~~~
Language: C++

#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
    int x,t,n;
    scanf("%d%d",&x,&t)

        if(x>=t)
    {
        n=x-t;
    printf(%d\n",n);
    }
    else 
    {
        printf("0\n");
    }

    return 0;
}


Compiler output:
a.cc:13:14: error: stray '\' in program
   13 |     printf(%d\n",n);
      |              ^
a.cc:13:16: warning: missing terminating " character
   13 |     printf(%d\n",n);
      |                ^
a.cc:13:16: error: missing terminating " character
   13 |     printf(%d\n",n);
      |                ^~~~~
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'if'
    8 |     scanf("%d%d",&x,&t)
      |                        ^
      |                        ;
    9 | 
   10 |         if(x>=t)
      |         ~~              
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else
      |     ^~~~
Language: C++

#include<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
int main()
{
    long long x,t,n;
    scanf("%lld%lld",&x,&t)

        if(x>=t)
    {
        n=x-t;
    printf("%lld\n",n);
    }
    else if(x<t)
    {
        printf("0\n");
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: expected ';' before 'if'
    8 |     scanf("%lld%lld",&x,&t)
      |                            ^
      |                            ;
    9 | 
   10 |         if(x>=t)
      |         ~~                  
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else if(x<t)
      |     ^~~~
Language: C

#include<stdio.h>
int main() {
	int X, t;
	int n;
	scanf("%d", &X);
	scanf("%d", &t);
	n = X - t;
	if (n < 0) {
		printf("0");
	}
	else {
		printf("%d", );
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:30: error: expected expression before ')' token
   12 |                 printf("%d", );
      |                              ^
Language: C

#include<iostream>  
using namespace std;  
int main()  
{  
    long long int x,t;  
    cin>>x>>t;  
    if(x-t==0)  
    {  
        cout<<0<<endl;  
    }  
    if(x-t>0)  
    {  
        cout<<x-t<<endl;  
    }  
    if(x-t<0)  
    {  
        cout<<0<<endl;  
    }  
    return 0;  
}  

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