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

#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep2(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
#define rep_inv(i, n, m) for(int i = (int)(n); i > (int)(m); i--)
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vc = vector<char>;
using vvl = vector<vl>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;

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:18:14: error: no matching function for call to 'max(int, ll)'
   18 |   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:18:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   18 |   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:18:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   18 |   cout << max(0, X - t) << endl;
      |           ~~~^~~~~~~~~~
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before '\U0000ff1b'
    8 |                 t+=s[i]；
      |                        ^~
      |                        ;
Language: C++

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

int main() {
  int x,t;
  string S;
  cin>>X>>t;
  //if(abs(x-a)>abs(x-b)) S="B";
  //else S="A";
  
  cout<<max(0,X-t)<<endl;
}

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

//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<long long> vll;
typedef vector<bool> vb;
#define pb push_back
#define fi first
#define se second
#define in insert
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int mod = 1e9 + 7;
void solve(){
    int a, b;
    cin >> a >> b;
    cout << ax(0, a-b);
}
int main(){
    speed;
    int t = 1;
    //cin >> t;
    for (int i = 1; i <= t; ++i) {
        solve();
    }
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:20:13: error: 'ax' was not declared in this scope; did you mean 'a'?
   20 |     cout << ax(0, a-b);
      |             ^~
      |             a
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: no matching function for call to 'min(int, ll)'
   10 |   cout << min(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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:10:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'll' {aka 'long long int'})
   10 |   cout << min(0,x-t) << endl;
      |           ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281: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:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:10:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   10 |   cout << min(0,x-t) << endl;
      |           ~~~^~~~~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i=0;i<n;i++)
#define FOR(i,a,b) for(int i=a;i<=b;i++)
#define each(it,v) for(auto &it : v)
#define all(v) (v).begin(),(v).end()
#define mod 1e9+7

using namespace std;
using vi = vector<int>;
using vl = vector<long>;
using P = pair<int,int>;

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

Compiler output:
a.cc:14:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   14 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:16:26: error: 'y' was not declared in this scope
   16 |         int x,t; cin>>x>>y;
      |                          ^
Language: C++

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

int main() {
    int n , a, j=0;

    cin >> n;
    int ai[n];
    int ai2[n*3];

    for(int i=0; i < n; i++){
        cin >> a;
        ai[i] = a;
        
    }
　  int maxc = 1;
    int c;

    for(int i=0; i < n; i++){
        c = 0;
        for(int j=0; j < n; j++){
            if( (ai[i]-ai[j] == 1) || (ai[i]-ai[j] == -1)){
              c++;
            }
        }
        if(c > maxc){
            maxc = c;
        }
    }

    


    cout << maxc << endl;
}

Compiler output:
a.cc:18:1: error: extended character 　 is not valid in an identifier
   18 | 　  int maxc = 1;
      | ^
a.cc: In function 'int main()':
a.cc:18:1: error: '\U00003000' was not declared in this scope
   18 | 　  int maxc = 1;
      | ^~
a.cc:28:16: error: 'maxc' was not declared in this scope
   28 |         if(c > maxc){
      |                ^~~~
a.cc:36:13: error: 'maxc' was not declared in this scope
   36 |     cout << maxc << endl;
      |             ^~~~
Language: C++

#include <bits/stdc++.h>
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:7:16: error: no matching function for call to 'max(int, long long int)'
    7 |     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:7:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
    7 |     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:7:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
    7 |     cout << max(0,x-t) << endl;
      |             ~~~^~~~~~~
Language: C++

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

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


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

int main() {
  int 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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> x >>t;
      |   ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << x-t << endl;
      |     ^~~~
a.cc:5:20: error: 'endl' was not declared in this scope
    5 |     cout << x-t << endl;
      |                    ^~~~
a.cc:6:3: error: expected '}' before 'else'
    6 |   else cout << 0 << endl;
      |   ^~~~
a.cc:4:13: note: to match this '{'
    4 |   if(x > t) {
      |             ^
a.cc:6:8: error: 'cout' was not declared in this scope
    6 |   else cout << 0 << endl;
      |        ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |   else cout << 0 << endl;
      |                     ^~~~
a.cc: At global scope:
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

int main() {
  int 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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> x >>t;
      |   ^~~
a.cc:4:13: error: 'cout' was not declared in this scope
    4 |   if(x > t) cout << x-t << endl;
      |             ^~~~
a.cc:4:28: error: 'endl' was not declared in this scope
    4 |   if(x > t) cout << x-t << endl;
      |                            ^~~~
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |   else cout << 0 << endl;
      |        ^~~~
a.cc:5:21: error: 'endl' was not declared in this scope
    5 |   else cout << 0 << endl;
      |                     ^~~~
Language: C++

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

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

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

#include <iostream>
int main(){
  int 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:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:5:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   if (X > t) 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:5:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   if (X > t) 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)
      |     ^~~~
a.cc:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   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:6:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   else cout << 0 << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

int main (){
  int 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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >>X >>t;
      |   ^~~
a.cc:4:13: error: 'cout' was not declared in this scope
    4 |   if (X >t) cout <<X -t < < endl ;
      |             ^~~~
a.cc:4:27: error: expected primary-expression before '<' token
    4 |   if (X >t) cout <<X -t < < endl ;
      |                           ^
a.cc:4:29: error: 'endl' was not declared in this scope
    4 |   if (X >t) cout <<X -t < < endl ;
      |                             ^~~~
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |   else cout < <0 < < endl ;
      |        ^~~~
a.cc:5:15: error: expected primary-expression before '<' token
    5 |   else cout < <0 < < endl ;
      |               ^
a.cc:5:20: error: expected primary-expression before '<' token
    5 |   else cout < <0 < < endl ;
      |                    ^
a.cc:5:22: error: 'endl' was not declared in this scope
    5 |   else cout < <0 < < endl ;
      |                      ^~~~
Language: C++

int main (){
int 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:3:1: error: 'cin' was not declared in this scope
    3 | cin >>X >>t;
      | ^~~
a.cc:4:11: error: 'cout' was not declared in this scope
    4 | if (X >t) cout <<X -t < < endl ;
      |           ^~~~
a.cc:4:25: error: expected primary-expression before '<' token
    4 | if (X >t) cout <<X -t < < endl ;
      |                         ^
a.cc:4:27: error: 'endl' was not declared in this scope
    4 | if (X >t) cout <<X -t < < endl ;
      |                           ^~~~
a.cc:5:6: error: 'cout' was not declared in this scope
    5 | else cout < <0 < < endl ;
      |      ^~~~
a.cc:5:13: error: expected primary-expression before '<' token
    5 | else cout < <0 < < endl ;
      |             ^
a.cc:5:18: error: expected primary-expression before '<' token
    5 | else cout < <0 < < endl ;
      |                  ^
a.cc:5:20: error: 'endl' was not declared in this scope
    5 | else cout < <0 < < endl ;
      |                    ^~~~
Language: C++

int main(){
  int 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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> X >> t;
      |   ^~~
a.cc:4:13: error: 'cout' was not declared in this scope
    4 |   if (X > t)cout >> X - t >> endl;
      |             ^~~~
a.cc:4:30: error: 'endl' was not declared in this scope
    4 |   if (X > t)cout >> X - t >> endl;
      |                              ^~~~
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |   else cout >> 0 >>endl;
      |        ^~~~
a.cc:5:20: error: 'endl' was not declared in this scope
    5 |   else cout >> 0 >>endl;
      |                    ^~~~
Language: C++

int ans
cin >> ans;
ans = X - t;
cout << ans << endl;

Compiler output:
a.cc:2:1: error: expected initializer before 'cin'
    2 | cin >> ans;
      | ^~~
a.cc:3:1: error: 'ans' does not name a type
    3 | ans = X - t;
      | ^~~
a.cc:4:1: error: 'cout' does not name a type
    4 | cout << ans << endl;
      | ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'll' was not declared in this scope
    5 |   ll a, b; cin >> a >> b;
      |   ^~
a.cc:5:19: error: 'a' was not declared in this scope
    5 |   ll a, b; cin >> a >> b;
      |                   ^
a.cc:5:24: error: 'b' was not declared in this scope
    5 |   ll a, b; cin >> a >> b;
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define vmin(vec) *min_element(vec.begin(), vec.end())
#define vmax(vec) *max_element(vec.begin(), vec.end())
#define len(array) (sizeof(array) / sizeof(array[0]))

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: no matching function for call to 'min(long long int, int)'
    7 |   cout << min(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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:7:14: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    7 |   cout << min(x-t,0) << endl;
      |           ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281: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:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:7:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    7 |   cout << min(x-t,0) << endl;
      |           ~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
using namespace std;
#define vsort(vec) sort(vec.begin(), vec.end())
#define vreverse(vec) reverse(vec.begin(), vec.end())
using ll =long long;
const ll INF =1001001001;

//最大公約数
ll gcd(ll a, ll b){
   if (a%b==0){
       return(b);
   }else{
       return(gcd(b,a%b));
   }
}
//最小公倍数
ll lcm(ll a, ll b){
   return a*b/gcd(a,b);
}

//素数判定
ll isprime(ll n){
  bool prime=true;
  for(int i=2;i<n;i++){
    if(n%i==0){
      prime=false; break;
    }
  }
if(prime){cout<<n<<" is prime"<<endl;
         }else{cout<<n<<" is not prime"<<endl;}

}
//階乗　20くらいが限界
ll factorial(ll n){
  ll a=1;ll b=n;
  for(int i=0;i<n;i++){
    a*=b;
    b--;
  }
  return a;
}

//組み合わせ　nCr
ll comb(ll a,ll b){
  ll c;
  c=factorial(a)/(factorial(a-b)*factorial(b));
  return c; 
}




/*10億7。　　　100000007
2*2行列 H*W
vector<vector<int>> vec(H,vector<int>(W));
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
cin>>vec[i][j];
  }
}

文字列→数列
string S;int A=atoi(S.c_str());
数列→文字列
int A;string S=to_string(A);
数字判定　isdigit(a)
pair宣言　pair<int,int> p(5,7);
ソート　sort(vec.begin(),vec.end());
*/

int main(){
cout<<fixed<<setprecision(10);
//cin.tie(0); ios::sync_with_stdio(false);

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




Compiler output:
a.cc: In function 'll isprime(ll)':
a.cc:33:1: warning: no return statement in function returning non-void [-Wreturn-type]
   33 | }
      | ^
a.cc: In function 'int main()':
a.cc:77:8: error: 'x' was not declared in this scope
   77 |   cin>>x>>t;
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define hina cout << ' '
#define in(n) cin >> n
#define in2(n, m) cin >> n >> m
#define in3(n, m, l) cin >> n >> m >> l
#define out(n) cout << n
const ll mei = (ll)1e9 + 7;

int main(){
  ll a, b;
  in2(a, b);
  a = max(a - b, 0);
  out(a);
  memi;
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repl(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define reprl(i, n) for(ll i = n; i >= 0; i--)
#define fori(i, m, n) for(int i = m; i < (int)n; i++)
#define forl(i, m, n) for(ll i = m; i < (ll)n; i++)
#define all(v) v.begin(), v.end()
ll gcd(ll a,ll b) {
  return b? gcd(b,a%b): a;  
}
ll lcm(ll a,ll b) {
  return a*b/gcd(a,b);
}
bool isLowerCase(char c){
  return (c>='a'&&c<='z');
}
const string btos(bool ans){
  return (ans?"Yes":"No");
}
int main() {
  ll x,t;cin>>x>>t;
  ll ans=max(x-t,0);
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:13: error: no matching function for call to 'max(ll, int)'
   28 |   ll ans=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:28:13: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   28 |   ll ans=max(x-t,0);
      |          ~~~^~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/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:28:13: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   28 |   ll ans=max(x-t,0);
      |          ~~~^~~~~~~
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <math.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     ans=n-t;
      |     ^~~
      |     abs
Language: C++

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

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

import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
public class Main{
  public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    String s = sc.next();
    ArrayList<Character> list = new ArrayList<Character>();
    for(int i = 0; i < s.length; i = i + 2){
      char c = s.charAt(i);
      list.add(c);
    } 
    System.out.println(list);
  }
}




Compiler output:
Main.java:9: error: cannot find symbol
    for(int i = 0; i < s.length; i = i + 2){
                        ^
  symbol:   variable length
  location: variable s of type String
1 error
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected '}' at end of input
    7 |   else cout<<x-t;
      |                  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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:7:12: error: 'x' was not declared in this scope
    7 |     cin >> x >> t;
      |            ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(void)
{
  long long int X,t; cin>>X>>t;
  cout<<max(X-t,0)<<endl;

  return 0;
}

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



Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected primary-expression before ']' token
   10 |   else{cout<<0<<endl;]}
      |                      ^
Language: C++

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

int main()
{
  int x,t;
  if(x <= t){
    puts('0');
  }else{
    cout << x - t << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    8 |     puts('0');
      |          ^~~
      |          |
      |          char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: Java

import java.util.*;
public class Main{
 public static void main(String[] args){
   Scanner sc = new Scanner(System.in);
   int s1 = sc.nextInt();
   int s2 = sc.nextInt();

   if(X<t)System.out.println(0);
   else System.out.println(X-t);
 }
}

Compiler output:
Main.java:8: error: cannot find symbol
   if(X<t)System.out.println(0);
      ^
  symbol:   variable X
  location: class Main
Main.java:8: error: cannot find symbol
   if(X<t)System.out.println(0);
        ^
  symbol:   variable t
  location: class Main
Main.java:9: error: cannot find symbol
   else System.out.println(X-t);
                           ^
  symbol:   variable X
  location: class Main
Main.java:9: error: cannot find symbol
   else System.out.println(X-t);
                             ^
  symbol:   variable t
  location: class Main
4 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,j,n) for(int i=(int)(j);i<(int)(n);i++)
#define REP(i,j,n) for(int i=(int)(j);i<=(int)(n);i++)
#define MOD 1000000007
#define int long long
#define ALL(a) (a).begin(),(a).end()
#define vi vector<int>
#define vii vector<vi>
#define pii pair<int,int>
#define priq priority_queue<int>
#define disup(A,key) distance(A.begin(),upper_bound(ALL(A),(int)(key)))
#define dislow(A,key) distance(A.begin(),lower_bound(ALL(A),(int)(key)))
signed main(){
  int X,t;
  cin>>X>>t;
  cout<<max(0,X-t);
  }


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

#include <cstdio>

int main() {
	int X, t, a;
	scanf_s("%d", &X);
	scanf_s("%d", &t);

	if (X > t) {
		printf("%d",X-t);
	}
	else {
		printf("0");
	
	}

	return 0;
}

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

#include <cstdio>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ';' before '}' token
   11 |   {printf("%d" , X - t)}
      |                        ^
      |                        ;
a.cc:13:17: error: expected primary-expression before 'int'
   13 |   {printf("%d", int zero = 0)}
      |                 ^~~
Language: C++

#include<cstdio>
#include<math.h>
int main(){
  int x,t;
  scanf("%d",&x);
  scanf("%d",&t);
  printf("%d",max(x-t,0));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   printf("%d",max(x-t,0));
      |               ^~~
      |               std::max
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:2:
/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)
      |     ^~~
Language: C++

#include <cstdio>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: expected ';' before '}' token
   11 |   {printf("%d" , X - t)}
      |                        ^
      |                        ;
a.cc:13:19: error: expected ';' before '}' token
   13 |   {printf("%d", 0)}
      |                   ^
      |                   ;
Language: C++

#include<cstdio>
#include<cmath>
int main(){
  int x,t;
  scanf("%d",&x);
  scanf("%d",&t);
  printf("%d",max(x-t,0));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   printf("%d",max(x-t,0));
      |               ^~~
      |               std::max
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:2:
/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)
      |     ^~~
Language: C++

#include <cstdio>
int main(){
  int X, t;
  scanf("%d %d", &X, &t);
  printf("%d", X-t);
  retrn 0;
}

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

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: expected primary-expression before '<' token
   14 |   if(X-t=<0)
      |          ^