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

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

/* メモリ食い過ぎ注意 */
#define int long long

typedef long long ll;

ll gcd(ll a, ll b)
{
    if (a < b)
        gcd(b, a);
    if (b == 0)
        return a;
    int r;
    while ((r = a % b))
    {
        a = b;
        b = r;
    }
    return b;
}

/* define const */
const ll INF = (1ll << 60);
const ll MOD = (ll)1e9 + 7;
/* end defineing */

signed main()
{
    int x, t;
    cin >> x >> t;

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


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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define forx(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) for (int i = 0; i < (n); i++)

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

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define forx(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) for (int i = 0; i < (n); i++)

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

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



Compiler output:
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main()
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main()
      |     ^~~~
Language: C++

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

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



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

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

int main()
{
    int X, t;
    cin >> C >> t;

    cout << X - t << endl;
}

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

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

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

#include <bits/stdc++.h>
#define inf 1000000000 //1E+9
#define mod 1000000007
using std::cin;
using std::cout;
using std::endl;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: 'max' was not declared in this scope; did you mean 'std::max'?
    9 |         int x,t;cin>>x>>t;cout<<max(0,x-t)<<endl;
      |                                 ^~~
      |                                 std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: no matching function for call to 'max(ll, int)'
    8 |         cout<<max(a-b,0)<<endl;
      |               ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:8:18: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    8 |         cout<<max(a-b,0)<<endl;
      |               ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:8:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    8 |         cout<<max(a-b,0)<<endl;
      |               ~~~^~~~~~~
Language: C++

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

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

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

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

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

#include<iostream>
#include <algorithm>
#include <string>
#include<math.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
int main() {
    int a, b;
    cin >> a >> b ;
    a -= b;
    cout << (a < 0 ? "0" : a) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: operands to '?:' have different types 'const char*' and 'int'
   11 |     cout << (a < 0 ? "0" : a) << endl;
      |              ~~~~~~^~~~~~~~~
Language: C++

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

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

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

def sandglass2(X: int, t: int)->int:
    return max(0, X-t)


if __name__ == "__main__":
    X, t = map(int, input().split())
    ans = sandglass2(X, t)
    print(ans)


Compiler output:
a.cc:1:1: error: 'def' does not name a type
    1 | def sandglass2(X: int, t: int)->int:
      | ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before '}' token
   10 |                 v = 0
      |                      ^
      |                      ;
   11 |         }
      |         ~
Language: C++

#include <iostream>
#include <functional>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <climits>

using namespace std;
typedef long long int ll;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
ll MOD = 1000000007;
#define INF (1e9)

ll gcd(ll a, ll b) { return b ? gcd(b,a%b) : a;}
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
typedef pair <ll,ll> P;


int main()
{
    ll X, t;
    cout << max(0, X-t) << endl;
    return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int X,t;
  cin >> X >> t;
  if(x > t){
    cout << X - t <<endl;
  }
  else{
    cout << 0 << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'x' was not declared in this scope
    6 |   if(x > t){
      |      ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'inta' was not declared in this scope; did you mean 'int'?
    4 |         inta,b;
      |         ^~~~
      |         int
a.cc:4:14: error: 'b' was not declared in this scope
    4 |         inta,b;
      |              ^
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a>>b;
      |        ^
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int total = scanner.nextInt();
    int time = scanner.nextInt();
    
    int remaining = Math.max(0, total - time);
    System.out.println(remiaining);
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    System.out.println(remiaining);
                       ^
  symbol:   variable remiaining
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;

#define Abs(x)((x) < 0 ? (x) * -1 : (x))

#define rep(x, y) for ((x) = 0; (x) < (y); (x)++)
#define repin(x, y) for ((x) = 0; (x) <= (y); (x)++)
#define nep(x, y) for ((x) = (y) - 1; 0 <= (x); (x)--)
#define nepi(x, y, z) for ((x) = (y) - 1; (z) <= (x); (x)--)
#define repi(x, y, z) for ((x) = (z); (x) < (y); (x)++)
#define repiin(x, y, z) for ((x) = (z); (x) <= (y); (x)++)
#define reps(x, y, z) for ((x) = 0; (x) < (y); (x) += (z))
#define repis(x, y, z, s) for ((x) = (z); (x) < (y); (x) += (s))
#define repit(x) for (__typeof((x).begin()) it = (x).begin(); it != (x).end(); it++)
#define nepit(x) for (__typeof((x).rbegin()) it = (x).rbegin(); it != (x).rend(); it++)

#define All(x) (x).begin(),(x).end()

#define Mem0(x) memset(x, 0, sizeof(x))
#define Mem1(x) memset(x, -1, sizeof(x))

#define Unique(v) v.resize(unique(All(v)) - v.begin())

#define peq(p0, p1)(p0.first == p1.first && p0.second == p1.second)

#define End '\n'
#define Out(x) cout<<(x)<<End
#define OutP(p, sep, end) cout<<p.first<<sep<<p.second<<end

template<typename T> inline bool Max(T &x, const T &y) { return x < y ? x = y, 1 : 0; }
template<typename T> inline bool Min(T &x, const T &y) { return x > y ? x = y, 1 : 0; }
template<typename T> using V = vector<T>;
template<typename T> using VV = V<V<T> >;

#define pb push_back
#define mp make_pair
#define X first
#define Y second
#define lb std::lower_bound
#define ub std::upper_bound

#define lbi(v, x) lb(All(v), (x))-v.begin()
#define ubi(v, x) ub(All(v), (x))-v.begin()

static const ll MOD = 1e9 + 7;
static const double PI = 3.141592653589793;

#define LOCAL 0

int main()
{
#if LOCAL
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    freopen("debug.txt", "w", stderr);
#endif

    cin.tie(0);
    ios::sync_with_stdio(false);
	//std::cout.precision(18);

    ll x, y;

	cin >> x >> t;

	if (x <= t) Out(0);
	else Out(x - t);
	
	return 0;
}


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

#include<iostream>
#include<algorithm>

using namespace std;

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

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

#include<iostream>
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: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(x-t>>=0) cout << x-t << endl;
      |      ~^~
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
typedef long long ll;

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

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

#include <vector>
#include <iostream>
#include <cmath>
#include <map>
#include <algorithm>
#include <fstream>
#include <unistd.h>
#include <string>
#include <numeric>
#include <queue>
using namespace std;
typedef long long ll;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: no matching function for call to 'max(ll, int)'
   16 |   cout << max(X - t, 0) << endl;
      |           ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/vector:62,
                 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:16:14: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   16 |   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:5:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:16:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   16 |   cout << max(X - t, 0) << endl;
      |           ~~~^~~~~~~~~~
Language: C++

#include <iostream>
using namespave std;

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespave'
    2 | using namespave std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>x>>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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<max(x-t,0)<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:9: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   cout<<max(x-t,0)<<endl;
      |         ^~~
      |         std::max
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:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<max(x-t,0)<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <array>
#include <tuple>
#include <random>

using namespace std;
typedef long long int ll;

#define _overload3(_1, _2, _3, name, ...) name
#define _rep(i, n) repi(i, 0, n)
#define repi(i, a, b) for(int i = int(a); i < int(b); i++)
#define rep(...) _overload3(__VA_ARGS__, repi, _rep,)(__VA_ARGS__)
#define all(x) (x).begin(), (x).end()

#define inf 10000000000

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

    ll x, t;
    cin >> x >> t;
    cout << max(0, x - t) << endl;
}


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

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

Compiler output:
a.cc:4:1: error: 'll' does not name a type
    4 | ll A,B;
      | ^~
a.cc: In function 'int main()':
a.cc:7:10: error: 'A' was not declared in this scope
    7 |     cin>>A>>B;
      |          ^
a.cc:7:13: error: 'B' was not declared in this scope
    7 |     cin>>A>>B;
      |             ^
Language: C++

#include<iostream>
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: In function 'int main()':
a.cc:15:13: error: expected ';' before '}' token
   15 |     return 0
      |             ^
      |             ;
   16 | }
      | ~
Language: C++

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

Compiler output:
a.cc:1:26: warning: extra tokens at end of #include directive
    1 | #include <iostream>using namespace std;int main() {int n, t;cin >> n >> t;if (t < n)cout << n - t;else  cout << 0;}
      |                          ^~~~~~~~~
a.cc:1:10: fatal error: iostream>usin: No such file or directory
    1 | #include <iostream>using namespace std;int main() {int n, t;cin >> n >> t;if (t < n)cout << n - t;else  cout << 0;}
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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

#include<iostream>
int main(){
  int X,N; cin>>X>>N;
  cout<<(X>N?X-N:0);
}

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

#include<iostream>
int main(){
  int X,N; cin>>X>>N;
  cout<<(X>=N?X-N:0)

Compiler output:
a.cc: In function 'int main()':
a.cc:3:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |   int X,N; cin>>X>>N;
      |            ^~~
      |            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:4:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   cout<<(X>=N?X-N:0)
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:4:21: error: expected '}' at end of input
    4 |   cout<<(X>=N?X-N:0)
      |                     ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

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

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


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

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

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


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

#include<bits/stdc++.h>
using namespace std;
int nmain() {
	int a, b;
	cin >> a >> b;
	int ans=a-b;
	if (ans >= 0) {
		cout << ans << endl;
	}
	else {
		cout << 0 << endl;
	}


}

Compiler output:
a.cc: In function 'int nmain()':
a.cc:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
/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: Java

import java.util.Scanner;

public class Main {

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

}

Compiler output:
Main.java:13: error: ';' expected
	        If (a < 0){
	                  ^
Main.java:14: error: ';' expected
	         a = 0
	              ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		 Scanner sc = new Scanner(System.in);
	        int X = sc.nextInt();
	        int t = sc.nextInt();
			int a;
	        
	        a = X - t;
	        System.out.println(a);
	        }
	}

}

Compiler output:
Main.java:17: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;
    cin >> n;
    map<int,int>mp;
    for(int i=0; i<n; i++){
        int a;
        cin >> a;
        mp[a-1] +=1
        mp[a] +=1
        mp[a+1] +=1

    }
    int ans=0;
    for(auto &x : mp){
        ans = max(ans,x.second);
    }
    cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before 'mp'
   12 |         mp[a-1] +=1
      |                    ^
      |                    ;
   13 |         mp[a] +=1
      |         ~~
Language: C

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

int main(){
    int t,p;
    scanf("%d %d",&t,$p);
    if(t < p){
        return 0;
    }else{
        return t-p;
    }
}

Compiler output:
main.c: In function 'main':
main.c:6:22: error: '$p' undeclared (first use in this function); did you mean 'p'?
    6 |     scanf("%d %d",&t,$p);
      |                      ^~
      |                      p
main.c:6:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

manin(a,b){scanf("%d%d",&a,&b);printf("%d",a<b?0:a-b);}

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

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

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"a<b?0:a-b);}
      | ^~~~
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"a<b?0:a-b);}
      |           ^~~~~
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"a<b?0:a-b);}
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"a<b?0:a-b);}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:31: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);printf("%d"a<b?0:a-b);}
      |                               ^~~~~~
main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:31: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:42: error: expected ')' before 'a'
    1 | main(a,b){scanf("%d%d",&a,&b);printf("%d"a<b?0:a-b);}
      |                                     ~    ^
      |                                          )
Language: C++

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

Compiler output:
a.cc:2:17: error: 'srd' is not a namespace-name
    2 | using namespace srd;
      |                 ^~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>x>>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:3: 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:14: 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++

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

int main()
{
  int a, s;
  cin>>a>>s;
  if(a<=s)
    cout << '0' << endl;
    else
      cout << a - s << endl;
  



Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected '}' at end of input
   11 |       cout << a - s << endl;
      |                             ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

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