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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc:13:5: error: expected unqualified-id before 'return'
   13 |     return 0;
      |     ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<iostream>

using namespace std;
int main()
{
    string s;
    string r("");
    cin >> s;
    for (i = 0; i < s.size(); i++) {
      r.append(s[i]);
    }
    cout << r << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'i' was not declared in this scope
    9 |     for (i = 0; i < s.size(); i++) {
      |          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: no matching function for call to 'max(int, long int)'
    9 |     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:9:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
    9 |     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:2:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   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:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    9 |     cout << max(0, x - t) << endl;
      |             ~~~^~~~~~~~~~
Language: C++

#include <cstdio>

int main()
{
    int X, t;
    scanf_s("%d %d", &X, &t);
    printf("%d", std::max(X-t, 0));
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |     scanf_s("%d %d", &X, &t);
      |     ^~~~~~~
      |     scanf
a.cc:7:23: error: 'max' is not a member of 'std'
    7 |     printf("%d", std::max(X-t, 0));
      |                       ^~~
Language: C

#include<stdio.h>

int x, t;

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

Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected ';' before 'if'
   11 |         n = x - t
      |                  ^
      |                  ;
   12 |         if ( n < 0 ) n = 0;
      |         ~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: 'endle' was not declared in this scope
    7 |         if(X>t) cout<<X-t<<endle;
      |                            ^~~~~
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;
	
	
	
	
	return0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: 'endle' was not declared in this scope
    7 |         if(X>t) cout<<X-t<<endle;
      |                            ^~~~~
a.cc:13:9: error: 'return0' was not declared in this scope
   13 |         return0;
      |         ^~~~~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: 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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(X>t) cout<<X-t<<endle;
      |                 ^~~~
      |                 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:28: error: 'endle' was not declared in this scope
    7 |         if(X>t) cout<<X-t<<endle;
      |                            ^~~~~
a.cc:8:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         else cout<<0<<endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         else cout<<0<<endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:9: error: 'return0' was not declared in this scope
   13 |         return0;
      |         ^~~~~~~
Language: C

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

int main()
{
	int i, j, imax, jmax = 0, count = 0;
	int *buf = calloc(1, 100001 * sizeof(int));
	
	scanf("%d", &imax);
	
	for (i = 0; i < imax; i++) {
		int tmp;
		scanf("%d", &tmp);
		if (jmax < tmp) {
			jmax = tmp;
		}
		if (tmp == 0) {
			buf[tmp] = buf[tmp] + 1;
			buf[tmp + 1] = buf[tmp + 1] + 1;
		} else {
			buf[tmp - 1] = buf[tmp - 1] + 1;
			buf[tmp] = buf[tmp] + 1;
			buf[tmp + 1] = buf[tmp + 1] + 1;
		}
	}
	
	for (j = 0; j < jmax; j++) {
		if (count < buf[j]) {
			count = buf[j]
		}
	}
	
	printf("%d", count);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:30:39: error: expected ';' before '}' token
   30 |                         count = buf[j]
      |                                       ^
      |                                       ;
   31 |                 }
      |                 ~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'x' was not declared in this scope
    8 |     cout << x - t << endl;
      |             ^
Language: C

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

int main()
{
  int x, t;
  scanf("%d %d", &x, &t);
  printf("%d\n", max(0, x - t));
  
  return 0;
}

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

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

int main()
{
  int x, t;
  scanf("%d %d", &x, &t);
  printf("%d\n", max(0, x - t));
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
    8 |   printf("%d\n", max(0, x - t));
      |                  ^~~
Language: Java

import java.util.Scanner;

public class Hello {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int t = sc.nextInt();
		if(x>t){
		System.out.println(x-t);
		} else
			System.out.println(0);
	}
}


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

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ul;
typedef signed long long ll;
ul over = 1000000007;

int main(void)
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed;
  ll x, t;
  cin >> x >> t;
  cout << max(0, x-t) << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: no matching function for call to 'max(int, ll)'
   14 |   cout << max(0, 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:   template argument deduction/substitution failed:
a.cc:14:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   14 |   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:
/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:14:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   14 |   cout << max(0, x-t) << endl;
      |           ~~~^~~~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
int[] p=new int[N];
int c=0;
int d=0;
		// スペース区切りの整数の入力
for(i=0;i<N;i++){
		int p[i] = sc.nextInt();
}
		// 出力
if(p[N-1]==N){
c++;
d=p[N-2];
p[N-2]=p[N-1];
p[N-1]=d;
 
}
for(i=0;i<N-1;i++){
if(p[i]==i+1){
c++;
d=p[i];
p[i]=p[i+1];
p[i+1]=d;
}
}
		System.out.println(c);
	}
}

Compiler output:
Main.java:12: error: ']' expected
		int p[i] = sc.nextInt();
		      ^
Main.java:12: error: ';' expected
		int p[i] = sc.nextInt();
		       ^
2 errors
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'return0' was not declared in this scope
    9 |         return0;
      |         ^~~~~~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
int[] p;
int c=0;
int d=0;
		// スペース区切りの整数の入力
for(i=0;i<N;i++){
		int p[i] = sc.nextInt();
}
		// 出力
if(p[N-1]==N){
c++;
d=p[N-2];
p[N-2]=p[N-1];
p[N-1]=d;

}
for(i=0;i<N-1;i++){
if(p[i]==i+1){
c++;
d=p[i];
p[i]=p[i+1];
p[i+1]=d;
}
}
		System.out.println(c);
	}
}


Compiler output:
Main.java:12: error: ']' expected
		int p[i] = sc.nextInt();
		      ^
Main.java:12: error: ';' expected
		int p[i] = sc.nextInt();
		       ^
2 errors
Language: C++

#include <bits/stdc++.h>

int main() {
    
    long int x,t;
    
    scanf("%ld %ld",&x,&t);
    
    x = std::max(x-t,0);
    
    printf("%ld\n",x);
    
    return 0;
}

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

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

int main(){
	int i,j;
	string str;

	cin>> str;
	
	for (size_t i = 0; i < str.size; i++)
	{
		if(i%2==0){
			cout<<str[i];
		}
	}
	


	return 0;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |         for (size_t i = 0; i < str.size; i++)
      |                                ~~~~^~~~
      |                                        ()
Language: C++

#include <iostream>
#include <cstdlib>
#include<vector>
#include<string.h>
using namespace std;

int main(){
	int i,j;
	string str;

	cin>> str;
	
	for (size_t i = 0; i < str.size; i++)
	{
		if(i%2==0){
			cout<<str[i];
		}
	}
	


	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:36: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   13 |         for (size_t i = 0; i < str.size; i++)
      |                                ~~~~^~~~
      |                                        ()
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	ll 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:4:9: error: 'll' was not declared in this scope
    4 |         ll x, t;
      |         ^~
a.cc:5:16: error: 'x' was not declared in this scope
    5 |         cin >> x >> t;
      |                ^
a.cc:5:21: error: 't' was not declared in this scope; did you mean 'tm'?
    5 |         cin >> x >> t;
      |                     ^
      |                     tm
Language: C++

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: C++

#include <stdio.h>


int main() {
  int X,t,sum;
  scan("%d %d",&X,&t);
  if(X < t) {
    sum = 0;
  }else {
    sum = X -t;
  }
  printf("%d",sum);
  return 0;
}

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

#include<stdio.h>
int main(void)
{
  int i;
  char s[];
  gets(s);
  for(i=0;s[i]!='\0';i+=2){
    printf("%c",s[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 's'
    5 |   char s[];
      |        ^
main.c:6:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |   gets(s);
      |   ^~~~
      |   fgets
Language: C++

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

#define int long long

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



Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: 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/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:9:16: 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:
/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:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    9 |     cout << max(x-t, 0) << endl;
      |             ~~~^~~~~~~~
Language: C++

#include <stdio.h>

int main(){
  int X,t;
  scanf("%d%d",&X,&t);
  if(X <= t ){
    prinf(0);
  }else {
    printf("%d",X-t);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'prinf' was not declared in this scope; did you mean 'printf'?
    7 |     prinf(0);
      |     ^~~~~
      |     printf
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> x >> t;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if (a < 0){a = 0;
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else (cout << a << endl;)
      | ^~~~
a.cc:6:25: error: expected unqualified-id before ')' token
    6 | else (cout << a << endl;)
      |                         ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cstdlib>
using namespace std;
int n,m,a[100005];
int main(){
	cin>>n>>m;
	if(n<m)cout<<0<<endl;
	else cout<<n-m<<ednl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'ednl' was not declared in this scope
   11 |         else cout<<n-m<<ednl;
      |                         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:14: error: implicit declaration of function 'x' [-Wimplicit-function-declaration]
   10 |         ans =x(int)-t(int);
      |              ^
main.c:10:16: error: expected expression before 'int'
   10 |         ans =x(int)-t(int);
      |                ^~~
main.c:10:23: error: expected expression before 'int'
   10 |         ans =x(int)-t(int);
      |                       ^~~
main.c:10:21: error: called object 't' is not a function or function pointer
   10 |         ans =x(int)-t(int);
      |                     ^
main.c:4:18: note: declared here
    4 |         double X,t;
      |                  ^
main.c:13:7: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   13 |       print("0");
      |       ^~~~~
      |       printf
Language: C++

#include <iosteam>

itn main(){
  long long X,t;
  std::cin >> X >> t;
  std::cout << X-t << std::endl;
  return 0;
}

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

#include<stdio.h>

int main() {
  int X,t,l;
  scanf("%d%d",&X,%t);
  if(X > t) {
    l = X-t;
  }
  else {
    l = 0
  }
  prinf("%d",l);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected primary-expression before '%' token
    5 |   scanf("%d%d",&X,%t);
      |                   ^
a.cc:10:10: error: expected ';' before '}' token
   10 |     l = 0
      |          ^
      |          ;
   11 |   }
      |   ~       
a.cc:12:3: error: 'prinf' was not declared in this scope; did you mean 'printf'?
   12 |   prinf("%d",l);
      |   ^~~~~
      |   printf
Language: C++

#include<stdio.h>

int main(){
  int X,t;
  if(X > t){
    l = X-t;
  }
  else {
    l = 0
  }
  printf("%d",l);
  return 0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'l' was not declared in this scope
    6 |     l = X-t;
      |     ^
a.cc:9:5: error: 'l' was not declared in this scope
    9 |     l = 0
      |     ^
a.cc:11:15: error: 'l' was not declared in this scope
   11 |   printf("%d",l);
      |               ^
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C++

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

Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

#include <cstdio>
 
int main ()
{
    int a,b;
    while (scanf("%d%d",&a,&b)!=EOF)
  {
    if (a>b)
      printf("%d\n",a-b);
    else printf("0\n");
  }
  return 0;
}
Submission

Compiler output:
a.cc:14:1: error: 'Submission' does not name a type
   14 | Submission
      | ^~~~~~~~~~
Language: C++

#include <cstdio>
 
int main ()
{
    int a,b;
    while (scanf("%d%d",&a,&b)!=EOF)
  {
    if (a>b)
      printf("%d\n",a-b);
    else printf("0\n")
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before '}' token
   10 |     else printf("0\n")
      |                       ^
      |                       ;
   11 |   }
      |   ~
Language: C

#include <iostream>

using namespace std;

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


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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'ss' was not declared in this scope
   14 |                 cout<<k;ss
      |                         ^~
Language: C++

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

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

Compiler output:
a.cc:8:4: error: extended character ≧ is not valid in an identifier
    8 | if(x≧t) cout << x-t << endl;
      |    ^
a.cc: In function 'int main()':
a.cc:8:4: error: 'x\U00002267t' was not declared in this scope
    8 | if(x≧t) cout << x-t << endl;
      |    ^~~
Language: C++

#include <iostream.h>
#include <string.h>
#include <stdio.h>
#define N 10
void main()
{char A[N],B[N/2];
int i,j;
j=0;
for(i=0;i<N;i++)
cin>>A[i];
for(i=0;A[i]!='\0';i++)
if(i%2)
{B[j]=A[i];
j++;}
for(j=0;j<N/2;j++)
cout<<B[j];
cout<<endl;}

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

#include <stdio>
#include <iostream>
//#include <string>

void main()
{
 char str[1000];
 cin.getline(str,sizeof(str),'\n');

 for(static int i=0;str[i]!='\0';i++);
 cout<<"the number of characters in the string:   "<<i<<endl;

 char string[1000];
 for(int j=0;(2*j+1)<i;j++)
 {
  string[j]=str[2*j+1];
  cout<<string[j];
 }
 cout<<endl;
}

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

#include <iostream>

using namespace std;

#define fi first
#define se second
#define mp make_pair
#define pb push_back



int main(){
    int n,t,ans;
    cin>>x>>t;
    ans = x - t;
    cout<<ans;
}

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

#include <bits/stdc++.h>

using namespace std;

#define fi first
#define se second
#define mp make_pair
#define pb push_back



int main(){
    int n,t,ans;
    cin>>x,t;
    ans = x - t;
    cout<<ans;
}

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

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

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

Compiler output:
a.cc:8:4: error: extended character ≧ is not valid in an identifier
    8 | if(x≧t){cout << x-t << endl;}
      |    ^
a.cc: In function 'int main()':
a.cc:8:4: error: 'x\U00002267t' was not declared in this scope
    8 | if(x≧t){cout << x-t << endl;}
      |    ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	itn 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:9: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 |         itn a,b;
      |         ^~~
      |         int
a.cc:6:14: error: 'a' was not declared in this scope
    6 |         cin>>a>>b;
      |              ^
a.cc:6:17: error: 'b' was not declared in this scope
    6 |         cin>>a>>b;
      |                 ^
Language: C

#include <stdio.h>
int main(void)
{
  int i;
  char s[];
  gets(s);
  
  for(i=0;s[i]!='\0';i+=2){
    printf("%c",s[i]);
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: array size missing in 's'
    5 |   char s[];
      |        ^
main.c:6:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |   gets(s);
      |   ^~~~
      |   fgets
Language: C++

#include "stdafx.h"
#include "stdio.h"
#include <iostream>
using namespace std;

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



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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected ';' before 'if'
    6 |     cin >> a >> b
      |                  ^
      |                  ;
    7 |         if (a <= b){
      |         ~~        
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else{
      |         ^~~~
Language: Java


import java.io.*;
import java.util.StringTokenizer;

public class Main {

    void solve() {
        long X = in.nextLong();
        long t = in.nextLong();
        if (t >= X) {
            out.println(0);
        } else {
            out.println(X - t);
        }
    }


    FastScanner in;
    PrintWriter out;

    void run() {
        in = new FastScanner();
        out = new PrintWriter(System.out);
        solve();
        out.close();
    }

    public class FastScanner {
        BufferedReader br;
        StringTokenizer st;

        public FastScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastScanner(String s) {
            try {
                br = new BufferedReader(new FileReader(s));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }
        }

        public String nextToken() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                }
            }
            return st.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(nextToken());
        }

        public long nextLong() {
            return Long.parseLong(nextToken());
        }

        public double nextDouble() {
            return Double.parseDouble(nextToken());
        }
    }

    public static void main(String[] args) {
        new Main().run();
    }


Compiler output:
Main.java:69: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

#include "stdafx.h"
#include <iostream>
#include <string>
#include <math.h>
#include <cstdlib>

using namespace std;

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

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

#include <iostream>
using namespace std;

int main()
{
   int i1, i2;
   cin >> i1;
   cin >> i2;
   if i1 - i2 > 0:
   {
      cout << 0 << endl;
   }
   else
   {
      cout << i1 - i2 << endl;
   }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: expected '(' before 'i1'
    9 |    if i1 - i2 > 0:
      |       ^~
      |       (
a.cc:13:4: error: 'else' without a previous 'if'
   13 |    else
      |    ^~~~
Language: C++

#include<stdio.h>
#include<vector>
#include<algorithm>
#include<iostream>
#include<stack>
#include<queue>

using namespace std;

int name()
{
    int a[2];
    cin>>a[0]>>a[1];
    if(a[0]<a[1])
    cout<<0<<endl;
    else cout<<a[0]-a[1]<<endl;
}



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

#include <iostream>
#include <String>
#include <vector>


using namespace std;

vector<int> order{ 0,1,2,3 };


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

	return 0;
}

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

#include<stdio.h>
#include<vector>
#include<algorithm>
#include<iostream>
#include<stack>
#include<queue>

using namespace std;

int name()
{
    int a[2];
    cin>>a[0]>>a[1]
    if(a[0]<a[1])
    cout<<0<<endl;
    else cout<<a[0]-a[1];
}



Compiler output:
a.cc: In function 'int name()':
a.cc:13:20: error: expected ';' before 'if'
   13 |     cin>>a[0]>>a[1]
      |                    ^
      |                    ;
   14 |     if(a[0]<a[1])
      |     ~~              
a.cc:16:5: error: 'else' without a previous 'if'
   16 |     else cout<<a[0]-a[1];
      |     ^~~~
a.cc:17:1: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    long long cnt = 0, n, m,sum=0;
    cin >>n >> m;
    cout << max(0,n-m);
    return 0;
}

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

#include <iostream>
#include <string>
#include <cmath>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
#include <queue>
#define ll long long
#define INF 10000000

using namespace std;

//ifstream cin ("input.txt"); ofstream cout ("output.txt");

int main() {
    cin.tie(0);
    ios_base::sync_with_stdio(false);
    ll a, b;
    cin >> a >> b;
    cout << max(0, a-b);
}

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

#include <stdio.h>

int main(){
    unsigned long long x t;
    scanf("%llu %llu", &x, &t);
    printf("%llu", x-t);
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
#define opt ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define lli long long int
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
#define trace4(a, b, c, d)       cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<endl
#define trace5(a, b, c, d, e)    cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<endl
#define trace6(a, b, c, d, e, f) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<" | "<<#f<<": "<<f<<endl
#define mod		1000000007
#define inf     1000000000000000000
#define MX1		100005
#define MX2		10000004
#define pi		acos(-1)
#define pb      push_back
#define vlli    vector<lli>
#define plli    vector<pair<lli,lli> >
#define mp      make_pair
#define all(v)  v.begin(),v.end()
#define setbits(n) __builtin_popcount(n)
#define test    int t;cin>>t;
lli gcd(lli a, lli b){return b?gcd(b,a%b):a;}
lli power(lli a,lli b){lli ans=1;while(b){if(b&1){ans=(ans*a)%mod;}a=(a*a)%mod;b>>=1;}return ans;}
int main()
{
	opt;
	lli i,j,k,l;
	lli n,k;
	cin>>n>>k;
	if(k>=n)
	cout<<"0\n";
	else
	cout<<n-k<<"\n";

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:15: error: redeclaration of 'long long int k'
   29 |         lli n,k;
      |               ^
a.cc:28:17: note: 'long long int k' previously declared here
   28 |         lli i,j,k,l;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include <bits/stdc++.h>
#define  rep(i,n) for(li i=0;i<(n);i++)
#define  red(i,n) for(li i=(n)-1;i>=0;i--)
#define  all(a)   begin(a),end(a)
#define  pb(a)    push_back(a) 
using namespace std;
using li = long long;
using ul = unsigned long long;
using vi = vector<li>;
using vs = vector<string>;
inline ul gcd(ul a,ul b) { return b?gcd(b,a%b):a; }


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


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

#include<cstdio>
#include<cmath>
#include<cstring>
#include<iostream>
#include<vector>
#include<map>
#include<queue> 
#include<algorithm>
using namespace std;
#define maxn
#define ll long long
int read(){
    int x=0,f=1;char ch=getchar();
    while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
    while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
    return x*f;
}
int n,m;
int a[maxn];
int main(){
	int x=read(),y=read();
	printf("%d\n",max(x-y,0));
}

Compiler output:
a.cc:19:5: error: storage size of 'a' isn't known
   19 | int a[maxn];
      |     ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: unable to find string literal operator 'operator""a' with 'const char [4]', 'long unsigned int' arguments
    7 |     if(a>b) printf("%d\n"a-b);
      |                    ^~~~~~~
Language: C++

/* Murad Eynizade */
#include <bits/stdc++.h>
#define ll long long 
#define pb push_back
#define mp make_pair
using namespace std;
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:10:18: 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/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/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:18: 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:
/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:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   10 |         cout<<max(0,x-t)<<endl;
      |               ~~~^~~~~~~