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

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |         scanf_s("%d", &X);
      |         ^~~~~~~
      |         scanf
main.c:12:30: error: expected expression before ')' token
   12 |                 printf("%d", );
      |                              ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:20: error: expected ';' before '}' token
    8 |       printf("0\n")
      |                    ^
      |                    ;
    9 |     }
      |     ~               
main.c:12:26: error: expected ')' before ';' token
   12 |         printf("%d\n",x-t;)
      |               ~          ^
      |                          )
main.c:12:28: error: expected ';' before '}' token
   12 |         printf("%d\n",x-t;)
      |                            ^
      |                            ;
   13 |     }
      |     ~                       
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '}' token
    8 |       printf("0\n")
      |                    ^
      |                    ;
    9 |     }
      |     ~               
a.cc:12:26: error: expected ')' before ';' token
   12 |         printf("%d\n",x-t;)
      |               ~          ^
      |                          )
a.cc:12:27: error: expected primary-expression before ')' token
   12 |         printf("%d\n",x-t;)
      |                           ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C

#include <iostream>
using namespace std;
int main()
{
 int i, j;
	cin >> i >> j;
	cout << ((i - j) > 0 ? i - j : 0);
	return 0;
}

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

read X t
if [ $X -lt $t ];then
  echo 0
else
  echo $(($X - $t))
fi


Compiler output:
a.cc:1:1: error: 'read' does not name a type
    1 | read X t
      | ^~~~
a.cc:2:18: error: 'then' does not name a type
    2 | if [ $X -lt $t ];then
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>

typedef long long ll;
using namespace std;
int main()
{
	int a, b;
	cin >> a >> b;
	if (a > b) {
		cout << a - b << endl;
	}
	else (a == b) {
		cout << "0" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: expected ';' before '{' token
   14 |         else (a == b) {
      |                      ^~
      |                      ;
Language: C++

#include <iostream>

int main()
{
  int x,t;
  cin >> x>> t;
 cout << x - t << 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 >> x>> t;
      |   ^~~
      |   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:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |  cout << x - t << 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |  cout << x - t << 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<stdio.h>
int main(void)
{
    int X,t;
    printf("please enter F and t:\n")
    scanf("%d %d",&X,&t);
    if(X>=t) printf("%d\n",X-t);
    else     printf("0\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:38: error: expected ';' before 'scanf'
    5 |     printf("please enter F and t:\n")
      |                                      ^
      |                                      ;
    6 |     scanf("%d %d",&X,&t);
      |     ~~~~~
Language: Java

import java.util.Scanner;
 
/**
 *
 * @author kke2
 */
public class Main {
 
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int weight  =sc.nextInt();
    int time    =sc.nextInt();
    int i = weight-time;
    if(weight<time){
    i =0;
    }
    System.out.println(i);
    }
}

Compiler output:
Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:8: error: illegal character: '\u00a0'
?
^
2 errors
Language: Java

import java.util.Scanner;
 
/**
 *
 * @author kke2
 */
public class Main {
 
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int weight  =sc.nextInt();
    int time    =sc.nextInt();
        int i = weight-time;
    if(weight<time){
    i =0;
    }
    System.out.println(i);
    }
}

Compiler output:
Main.java:2: error: illegal character: '\u00a0'
?
^
Main.java:8: error: illegal character: '\u00a0'
?
^
2 errors
Language: Java

import java.util.Scanner;

/**
 *
 * @author kke2
 */
public class main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int weight  =sc.nextInt();
    int time    =sc.nextInt();
        int i = weight-time;
    if(weight<time){
    i =0;
    }
    System.out.println(i);
    }
}

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

import java.util.Scanner;

/**
 *
 * @author kke2
 */
public class main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int weight  =sc.nextInt();
    int time    =sc.nextInt();
        int i = weight-time;
    if(weight<time){
    i =0;
    }
    System.out.println(i);

Compiler output:
Main.java:20: error: reached end of file while parsing
    System.out.println(i);
                          ^
1 error
Language: Java

import java.util.Scanner;

public class PracticeA {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int t = sc.nextInt();
		for(int i = 0; i < t ; i++){
			X --;
		}
		System.out.println(X);
	}
}


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

include <iostream>
using namespace std;

int a,b;

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a;
      |         ^~~
a.cc:11:20: error: 'cout' was not declared in this scope
   11 |         if(a > b){ cout << a-b <<endl;}
      |                    ^~~~
a.cc:11:34: error: 'endl' was not declared in this scope
   11 |         if(a > b){ cout << a-b <<endl;}
      |                                  ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "0" <<endl;
      |         ^~~~
a.cc:13:23: error: 'endl' was not declared in this scope
   13 |         cout << "0" <<endl;
      |                       ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:21: error: expected ';' before '}' token
    6 |     printf("&d",X-t)};
      |                     ^
      |                     ;
main.c:7:3: error: 'else' without a previous 'if'
    7 |   else printf("0");
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: request for member 'X' in something not a structure or union
    7 |     printf("&d".X-t);
      |                ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |     scanf("%d",&X);
      |     ^~~~~
main.c:5:17: error: 't' undeclared (first use in this function)
    5 |     scanf("%d",&t);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

int main()
{
	long  int x, t;

	scanf("%li %li", &x, &t);

	if(t > x){ cout << 0 << endl;}
	else{cout << x-t << endl;}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf' was not declared in this scope
    5 |         scanf("%li %li", &x, &t);
      |         ^~~~~
a.cc:7:20: error: 'cout' was not declared in this scope
    7 |         if(t > x){ cout << 0 << endl;}
      |                    ^~~~
a.cc:7:33: error: 'endl' was not declared in this scope
    7 |         if(t > x){ cout << 0 << endl;}
      |                                 ^~~~
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |         else{cout << x-t << endl;}
      |              ^~~~
a.cc:8:29: error: 'endl' was not declared in this scope
    8 |         else{cout << x-t << endl;}
      |                             ^~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int X,t;
	cin >> X;
	cin >> t;
	if (X - t < 0)
	{
		cout <<"0"<< endl;
	}
	else
	{
		cout << X - t << endl;
	}


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

#include <iostream>
#include <cmath>
#include <algorithm>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: no matching function for call to 'max(int, long long int)'
   10 |         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:10:20: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   10 |         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
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:3:
/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:10:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   10 |         cout << max(0, x - t) << endl;
      |                 ~~~^~~~~~~~~~
Language: Java

public class Main{
  public static void main (String args){
  Scanner sc = new Scanner(System.in);
		// get a integer
		int X = sc.nextInt();
		// get two integers separated with half-width break
		int t = sc.nextInt();
                System.out.println( X - t < 0 ? 0 : X -t ) ;

 }


}

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

#include<iostream>
using namespace std;
int a,b;
int main()
{
  	cin>>a>>b;
  	cout<<a-b;
  r	eturn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'r' was not declared in this scope
    8 |   r     eturn 0;
      |   ^
Language: C++

#include <iostream>
int main()
{
    int x, t;
    cin >> x >> t;
    cout << x-t << endl;
}

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

main(a,b){scanf("%d %d",&a,&b);printf("%d\n",a-b>0?a-b:0)}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){scanf("%d %d",&a,&b);printf("%d\n",a-b>0?a-b:0)}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d %d",&a,&b);printf("%d\n",a-b>0?a-b:0)}
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){scanf("%d %d",&a,&b);printf("%d\n",a-b>0?a-b:0)}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){scanf("%d %d",&a,&b);printf("%d\n",a-b>0?a-b:0)}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:32: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d %d",&a,&b);printf("%d\n",a-b>0?a-b:0)}
      |                                ^~~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:32: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:58: error: expected ';' before '}' token
    1 | main(a,b){scanf("%d %d",&a,&b);printf("%d\n",a-b>0?a-b:0)}
      |                                                          ^
      |                                                          ;
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int X, t, ans=X-t;
    cin X, t;

    if(ans<0){
        cout << 0 << endl;
    }
    else{
        cout << ans << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected ';' before 'X'
    7 |     cin X, t;
      |        ^~
      |        ;
Language: Java

import java.util.Scanner;

public class AtCoder92A{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str1 = sc.next();
    String str2 = sc.next();
    int i1 = Integer.parseInt(str1);
    int i2 = Integer.parseInt(str2);
    int num = i1-i2;
    if(num>=0){
      System.out.println(num);
    }else{
      System.out.println(0);
    }
  }
}

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

#include<bits/sthc++.h>
using namespace std;
int main()
{
    int a,b;
    if(a-b<0)
        cout<<0;
    else
        cout<<a-b;
}

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

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

int main(){
        long long X,t,ans;
        cin >> X >> t;
        cout << max(X-t,0) << endl;
        return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: no matching function for call to 'max(long long int, int)'
    9 |         cout << max(X-t,0) << 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:9:20: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    9 |         cout << max(X-t,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,
                 from a.cc:3:
/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:9:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    9 |         cout << max(X-t,0) << endl;
      |                 ~~~^~~~~~~
Language: C++

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

int main(){
        long long X,t,ans;
        cin >> X >> t;
        ans = max(X-t,0);
        cout << ans << endl;
        return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: no matching function for call to 'max(long long int, int)'
    9 |         ans = max(X-t,0);
      |               ~~~^~~~~~~
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:9:18: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    9 |         ans = max(X-t,0);
      |               ~~~^~~~~~~
/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:3:
/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:9:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    9 |         ans = max(X-t,0);
      |               ~~~^~~~~~~
Language: C++

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

int main()
{
     long long n,m,p;
     cin >> n >> m;
     p=n-m;
     if(p>0) cout << p;
     else cout << 0;




Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected '}' at end of input
   10 |      else cout << 0;
      |                     ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main(void){
	int X;
	int t;

	scanf_s("%d %d", &X, &t);

	if (X >= t) {
		X = X - t;
	}
	else
	{
		X = 0;
	}

	printf("%d\n", X);

	while (0==0)
	{

	}

	return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected '}' at end of input
    9 |                 cout<<0;
      |                         ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: Java

import java.util.Scanner;

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

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

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

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

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






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


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

#include <iostream>
//#include <array>

int X;
int t;
std::cin >> X >> t;
if (X > t) {
  std::cout << X - t << '\n';
} else {
  std::cout << 0 << '\n';
}


Compiler output:
a.cc:6:6: error: 'cin' in namespace 'std' does not name a type
    6 | std::cin >> X >> t;
      |      ^~~
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:1: error: expected unqualified-id before 'if'
    7 | if (X > t) {
      | ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 | } else {
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'string' was not declared in this scope
    3 |     string inStr, oddStr;
      |     ^~~~~~
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> inStr;
      |     ^~~
a.cc:4:12: error: 'inStr' was not declared in this scope; did you mean 'int'?
    4 |     cin >> inStr;
      |            ^~~~~
      |            int
a.cc:5:47: error: 'oddStr' was not declared in this scope
    5 |     for (int i=0; i < inStr.size(); i += 2)   oddStr += inStr[i];
      |                                               ^~~~~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << oddStr << endl;
      |     ^~~~
a.cc:6:13: error: 'oddStr' was not declared in this scope
    6 |     cout << oddStr << endl;
      |             ^~~~~~
a.cc:6:23: error: 'endl' was not declared in this scope
    6 |     cout << oddStr << endl;
      |                       ^~~~
Language: C++

#include <iostream>
using namespace std;
 
int main()
{
    long totalTime = 0, timeLeft = 0;
    cin >> totalTime >> timeLeft;
    cout << (totalTime > timeLeft) ? (totalTime - timeLeft) : 0 << endl;
    return 0;
}

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

#include <iostream>
using namespace std;

int main()
{
    long totalTime = 0, timeLeft = 0;
    cin >> totalTime >> timeLeft;
    cout << (totalTime > timeLeft) ? (totalTime - timeLeft) : 0 << endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> n >> m;
      |         ^~~
a.cc:4:23: error: 'cout' was not declared in this scope
    4 |         if (n - m < 0)cout << 0 << endl;
      |                       ^~~~
a.cc:4:36: error: 'endl' was not declared in this scope
    4 |         if (n - m < 0)cout << 0 << endl;
      |                                    ^~~~
a.cc:5:14: error: 'cout' was not declared in this scope
    5 |         else cout << n - m << endl;
      |              ^~~~
a.cc:5:31: error: 'endl' was not declared in this scope
    5 |         else cout << n - m << endl;
      |                               ^~~~
Language: C++

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

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main{
      |     ^~~~
a.cc:6:5: error: expected primary-expression before 'int'
    6 |     int a,b;
      |     ^~~
a.cc:6:5: error: expected '}' before 'int'
a.cc:5:9: note: to match this '{'
    5 | int main{
      |         ^
a.cc:7:5: error: 'cin' does not name a type
    7 |     cin >> a >> b;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(a>=b)
      |     ^~
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |     else
      |     ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) for(ll i=1;i<=(n);i++)
#define MOD 1000000007
#define int long long
#define all(c) (c).begin(), (c).end()
#define uniq(c) c.erase(unique(all(c)), (c).end())
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
const int INF = 1e9;



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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: no matching function for call to 'max(long long int, int)'
   21 |     cout << max(X - t, 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:21:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   21 |     cout << max(X - t, 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:21:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   21 |     cout << max(X - t, 0) << endl;
      |             ~~~^~~~~~~~~~
Language: C

#include <stdio.h>

int main (void){

	while(1){
		int X, t;

		if(scanf("%d %d", &X, &t) != 2){
			scanf("%*s");
			continue;
		}

		printf("%d\n", (X > t) ? (X - t) : 0);

	return 0;
}

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

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

int main()
{
 std::string str;

 cin >> str;

 for(int i=0;i<100000;i++){
  cout >> s[i];
  }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 's' was not declared in this scope
   12 |   cout >> s[i];
      |           ^
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
 
int main()
{
long long x,t;
cin>>x>>t;
cout<<max(x-t,0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: no matching function for call to 'max(long long int, int)'
   11 | cout<<max(x-t,0);
      |       ~~~^~~~~~~
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:11:10: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   11 | cout<<max(x-t,0);
      |       ~~~^~~~~~~
/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:3:
/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:11:10: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   11 | cout<<max(x-t,0);
      |       ~~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main()
{
long long x,t;
cin>>x>>t;
cout<<max(x-t,0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: no matching function for call to 'max(long long int, int)'
    8 | cout<<max(x-t,0);
      |       ~~~^~~~~~~
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:10: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    8 | cout<<max(x-t,0);
      |       ~~~^~~~~~~
/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 <iostream>
#include <string>
using namespace std;

int main()
{
  std::string s;
  char s[];
  int size;

  cin >> s[];

  size = sizeof(s[])

  for(int i=0,i<=size,i+2)
  {
  cout << s[i] << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: conflicting declaration 'char s []'
    8 |   char s[];
      |        ^
a.cc:7:15: note: previous declaration as 'std::string s'
    7 |   std::string s;
      |               ^
a.cc:11:12: error: expected primary-expression before ']' token
   11 |   cin >> s[];
      |            ^
a.cc:13:19: error: expected primary-expression before ']' token
   13 |   size = sizeof(s[])
      |                   ^
Language: C++

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

int main()
{
  //std::string s;
  char s[];
  int size;

  cin >> s[];

  size = sizeof(s[])

  for(int i=0,i<=size,i+2)
  {
  cout << s[i] << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: storage size of 's' isn't known
    8 |   char s[];
      |        ^
a.cc:11:12: error: expected primary-expression before ']' token
   11 |   cin >> s[];
      |            ^
a.cc:13:19: error: expected primary-expression before ']' token
   13 |   size = sizeof(s[])
      |                   ^
Language: C++

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

int main()
{
  std::string s;
  char = s[];
  int size;

  cin >> s[];

  size = sizeof(s[])

  for(int i=0,i<=size,i+2)
  {
  cout << s[i] << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected unqualified-id before '=' token
    8 |   char = s[];
      |        ^
a.cc:11:12: error: expected primary-expression before ']' token
   11 |   cin >> s[];
      |            ^
a.cc:13:19: error: expected primary-expression before ']' token
   13 |   size = sizeof(s[])
      |                   ^
Language: C++

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

int main()
{
  char = s[];
  int size;

  cin >> s[];

  size = sizeof(s[])

  for(int i=0,i<=size,i+2)
  {
  cout << s[i] << endl;
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected unqualified-id before '=' token
    7 |   char = s[];
      |        ^
a.cc:10:10: error: 's' was not declared in this scope
   10 |   cin >> s[];
      |          ^
a.cc:10:12: error: expected primary-expression before ']' token
   10 |   cin >> s[];
      |            ^
a.cc:12:19: error: expected primary-expression before ']' token
   12 |   size = sizeof(s[])
      |                   ^
Language: C++

#include <iostream>
 
using namespace std;
 
int main() {
string k;
 
cin>>k;
 
for(int i=1;i<k.length;i+=2){cout<<k[i];}
 
 
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   10 | for(int i=1;i<k.length;i+=2){cout<<k[i];}
      |               ~~^~~~~~
      |                       ()
Language: C++

#include <iostream>

using namespace std;

int main() {
string k;

cin>>k

for(int i=1;i<k.length;i+=2){cout<<k[i];}



}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected ';' before 'for'
    8 | cin>>k
      |       ^
      |       ;
    9 | 
   10 | for(int i=1;i<k.length;i+=2){cout<<k[i];}
      | ~~~    
a.cc:10:13: error: 'i' was not declared in this scope
   10 | for(int i=1;i<k.length;i+=2){cout<<k[i];}
      |             ^
Language: C++

#include <iostream>

using namespace std;

int main() {

long long x,t;
cin>>x>>t;

cout<<max(x-t,0);




}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: no matching function for call to 'max(long long int, int)'
   10 | cout<<max(x-t,0);
      |       ~~~^~~~~~~
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:10:10: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   10 | cout<<max(x-t,0);
      |       ~~~^~~~~~~
/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++

import java.util.*;
import java.math.*;
import java.io.*;


public class Main {
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        long a, b;
        a = sc.nextLong();
        b = sc.nextLong();
        if(b > a){
            System.out.println("0");
        }else{
            System.out.println(a - b);
        }
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.math.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.*;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: expected unqualified-id before 'public'
    6 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
#include<string>
#include<cmath>
#include<queue>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<functional>
#include<algorithm>
#include<cstdio>
#include<unordered_map>
using namespace std;
//---------------------------------------------------
//ライブラリゾーン！！！！
#define int long long
#define str string
#define rep(i,j) for(int i=0;i<(int)(j);i++)
typedef long long ll;
typedef long double ld;
const ll inf = 4523372036854775807;
const ld pi = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989;
struct P {
	ll pos, cost;
};
bool operator<(P a, P b) { return a.cost < b.cost; }
bool operator>(P a, P b) { return a.cost > b.cost; }
struct B {//隣接リスト表現
	ll to, cost;
};
struct S {//辺の情報を入れる変数
	int from, to, cost;
};
ll gcm(ll i, ll j) {//最大公約数
	if (i > j) swap(i, j);
	if (i == 0) return j;
	return gcm(j%i, i);
}
ld radian(ld a, ld b, ld c, ld d) {
	return sqrt(pow(a - c, 2) + pow(b - d, 2));
}
//---------------------------------------------------
//+++++++++++++++++++++++++++++++++++++++++++++++++++
signed main() {
	int x, y;
	cin >> x >> y;
	cout << max(0, x - t) << endl;
	getchar(); getchar();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:28: error: 't' was not declared in this scope
   48 |         cout << max(0, x - t) << endl;
      |                            ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <tchar.h>
#include <string>
using namespace std;

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

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

#include <iostream>
#include <string>
2.using namespace std;
3. 
4.int main() {
5.	string a, b;
6.	cin >> a;
7.	for (int i = 0; i < a.size(); i++) {
8.		if (i % 2 == 0) {
9.			b += a[i];
10.		}
11.	}
12.	cout << b << endl;
13.    return 0;
14.}


Compiler output:
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 2.using namespace std;
      | ^~~~~~~
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 3.
      | ^~
Language: C++

#include <iostream>
2.using namespace std;
3. 
4.int main() {
5.	int X, t;
6.	cin >> X >> t;
7.	if (X < t) {
8.		cout << 0 << endl;
9.	}
10.	else {
11.	cout << X - t << endl;
12.}
13.    return 0;
14.}


Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.using namespace std;
      | ^~~~~~~
a.cc:3:1: error: expected unqualified-id before numeric constant
    3 | 3.
      | ^~