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

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

int main() {
	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
	int x,t; cin>>x>>t;
	if (x>t) cout<<x-t;
	else cout<<"0"<<endl;
	return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |         ^~~
a.cc:5:21: error: 'cout' was not declared in this scope
    5 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |                     ^~~~
a.cc:5:34: error: 'ios_base' has not been declared
    5 |         cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
      |                                  ^~~~~~~~
a.cc:8:25: error: 'endl' was not declared in this scope
    8 |         else cout<<"0"<<endl;
      |                         ^~~~
Language: C++

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

// types
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<ld,ld> pdd;
typedef vector<ll> vll;

// macros
#define ALL(a) a.begin(),a.end()
#define SZ(a) ((int)a.size())
#define FI first
#define SE second
#define REP(i,n) for(int i=0;i<((int)n);i++)
#define REP1(i,n) for(int i=1;i<((int)n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define PB push_back
#define EB emplace_back
#define MP(a,b) make_pair(a,b)
#define SORT_UNIQUE(c) (sort(c.begin(),c.end()), c.resize(distance(c.begin(),unique(c.begin(),c.end()))))
#define GET_POS(c,x) (lower_bound(c.begin(),c.end(),x)-c.begin())
#define Decimal fixed<<setprecision(20)
#define INF 1000000000
#define LLINF 1000000000000000000LL

// constants
const int inf = 1e9;
const ll linf = 1LL << 50;
const double eps = 1e-10;
const int MOD = 1e9 + 7;
const int dx[4] = {-1, 0, 1, 0};
const int dy[4] = {0, -1, 0, 1};


int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);

  ll x,t;
  cin >> x >> t;

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


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

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

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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout << x-t;
      |   ^~~~
      |   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 <bits/stdc++.h>
using namespace std;

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


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

#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vvi = vector<vi>;
using vvl = vector<vl>;
const ll INF = 1LL << 60;
const ll MOD = 1000000007;
template <class T>
bool chmax(T &a, const T &b) {
    return (a < b) ? (a = b, 1) : 0;
}
template <class T>
bool chmin(T &a, const T &b) {
    return (b < a) ? (a = b, 1) : 0;
}
template <class C>
void print(const C &c, std::ostream &os = std::cout) {
    std::copy(std::begin(c), std::end(c), std::ostream_iterator<typename C::value_type>(os, " "));
    os << std::endl;
}

int main() {
    ll x, t;
    cin >> x >> t;
    cout << max(0, x - t) << "\n";
    return 0;
}

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

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  int X,t;
  cin>>X>>t
  
  cout<<(X-t>=0)?X-t:0;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before 'cout'
   10 |   cin>>X>>t
      |            ^
      |            ;
   11 | 
   12 |   cout<<(X-t>=0)?X-t:0;
      |   ~~~~
Language: C++

#include <stdlib.h>
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
using ll=long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
inline constexpr ll gcd(ll a,ll b){if(!a||!b)return 0;while(b){ll c=b;b=a%b;a=c;}return a;}
inline constexpr ll lcm(ll a,ll b){if(!a||!b)return 0;return a*b/gcd(a,b);}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: no matching function for call to 'max(long long int, int)'
   13 |   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:2:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:13:12: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   13 |   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:13:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   13 |   cout<<max(a-b,0)<<endl;
      |         ~~~^~~~~~~
Language: C++

#include <iostream>
#include <cmath>
int main()
{
    long long x=0,t=0;
    std::cin>>x>>t;
    t-=x;
    int abs(t)
    std::cout<<t;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'std'
    9 |     std::cout<<t;
      |     ^~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'maxe' was not declared in this scope
    6 |   cout << maxe(a-b,0) << endl;
      |           ^~~~
Language: C++

#include <algorithm>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <vector>
#define ff first
#define ss second
#define ll long long
#define vi vector<int>
#define vii vector<vi>
#define vs vector<string>
#define vss vector<vs>
#define pii pair<int, int>
#define all(x) x.begin(), x.end()
#define rep(i, a, n) for (int i = (a); i < (n); ++i)
#define repr(i, a, n) for (int i = (n); i >= (a); --i)
using namespace std;
const int INF(1 << 30);
const ll LLINF(1LL << 55LL);
const int pi = 3.1415926536;
const int MOD = 1000000007;
const int MAX = 510000;

void Main() {
  int x, t;
  cin >> x >> t;
  if (x < t)
  cout<<0<<endl;
  else
}

int main() {
  std::cin.tie(nullptr);                  // 標準入出力高速化
  std::ios_base::sync_with_stdio(false);  // SとS++の入出力出力を非同期
  std::cout << std::fixed << std::setprecision(15);  // 小数を10進数表示
  Main();
}

Compiler output:
a.cc: In function 'void Main()':
a.cc:37:1: error: expected primary-expression before '}' token
   37 | }
      | ^
Language: C++

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

int main() {
int a,b;
cin >> a >> b;
if(a <= b){
cout << o << endl;
}
else{
	cout << a-b << endl;

}
}

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

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

Compiler output:
a.cc:4:1: error: extended character 　 is not valid in an identifier
    4 | 　int X,t;
      | ^
a.cc: In function 'int main()':
a.cc:4:1: error: '\U00003000int' was not declared in this scope
    4 | 　int X,t;
      | ^~~~~
a.cc:5:10: error: 'X' was not declared in this scope
    5 |   cin >> X >> t;
      |          ^
a.cc:5:15: error: 't' was not declared in this scope; did you mean 'tm'?
    5 |   cin >> X >> t;
      |               ^
      |               tm
Language: C++

#include <iostream>

using namespace std;

int main(){
    int X;
    int t;
    cin >> X >> t;
    if(t >= X){
        cout << 0 << endl; //tがX以上の場合0と出力
    } else {
        cout << X - t << endl: //それ以外はXからtを引いて結果を出力
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:30: error: expected ';' before ':' token
   12 |         cout << X - t << endl: //それ以外はXからtを引いて結果を出力
      |                              ^
      |                              ;
Language: C++

#include <iostream>

using namespace std;

int main(){
    int X;
    int t;
    cin >> X >> t;
    if(t >= x){
        cout << 0 << endl; //tがX以上の場合0と出力
    } else {
        cout << X - t<< endl: //それ以外はXからtを引いて結果を出力
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'x' was not declared in this scope
    9 |     if(t >= x){
      |             ^
a.cc:12:29: error: expected ';' before ':' token
   12 |         cout << X - t<< endl: //それ以外はXからtを引いて結果を出力
      |                             ^
      |                             ;
Language: C++

#include <iostream>

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:9:16: error: no matching function for call to 'max(ll, int)'
    9 |     cout << max(x - t, 0) << endl;
      |             ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:9:16: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
    9 |     cout << max(x - t, 0) << endl;
      |             ~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
Language: C++

#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <array>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <stack>
#include <cmath>
#include <climits>
#include <cstdio>
#include <iomanip>
#include <utility>

using namespace std;
typedef long long int ll;

int main(int argc, char const *argv[])
{
    ll x, t;
    cin >> x >> t;
    cout << max(x - t, 0L) << endl;
}

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

#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <array>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <stack>
#include <cmath>
#include <climits>
#include <cstdio>
#include <iomanip>
#include <utility>

using namespace std;
typedef long long int ll;

int main(int argc, char const *argv[])
{
    ll x, t;
    cin >> x >> t;
    cout << max(x - t, 0) << endl;
}

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

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstring>
#define ARRAY_LEN(array) (sizeof(array) / sizeof(array[0]))
using namespace std;
typedef long long ll;
const ll LLINF = 9223372036854775807;
const int INTINF = 2147483647;
const int MOD = 1000000007;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: expected ',' or ';' before 'cout'
   17 |   cout << result << endl;
      |   ^~~~
Language: C++




#include <bits/stdc++.h>

using namespace std;
#define ll long long
#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define REPS(i,x) for(int i=1;i<=(int)(x);i++)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define RREPS(i,x) for(int i=((int)(x));i>0;i--)
const ll mod = 1e9 + 7;
typedef pair<int,int>           PI;
typedef pair<ll,ll>             PL;
typedef vector<PI>               vip; 
typedef vector<int>             vi;
typedef vector<vi>              vvi;
typedef vector<ll>              vl;
typedef vector<vl>              vvl;








int main (){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int n;
    cin >> n;
    vector<int> a(n);
    vector<int> num(100001);
    REP(i,n){
        cin >> a[i];
        num[a.at(i)]++;
    }

    int max = 0;
    REP(i, 100000){
        if(i>0){
            if(max < num[i] + num[i+1] + num[i-1]){
                max = num[i] + num[i+1] + num[i-1]
            }
        }
        else if(max < num[i] + num[i+1]){
            max = num[i] + num[i+1];
        }
    }
    


    cout << max << endl;





    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:44:51: error: expected ';' before '}' token
   44 |                 max = num[i] + num[i+1] + num[i-1]
      |                                                   ^
      |                                                   ;
   45 |             }
      |             ~
Language: C++

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

#define ll long long
ll x,t;
int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

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

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

#include <bits/stdc++.h>
#define int long long
#define ALL(v) (v).begin(),(v).end()
#define pb push_back
#define rep(i,a,n) for(int i=a;i<n;i++)
#define repr(i,a,n) for(int i=a;i>n;i--)
#define leng(n) (int)(log10(n)+1)
#define INF 9000000000000000000
using namespace std;

int gcd(int a,int b){return b?gcd(b,a%b):a;}  //  最大公約数gcd
int lcm(int a,int b){return a/gcd(a,b)*b;}  //  最小公倍数lcm

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

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

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

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


  if((X-t)>0 || (X-t)==0 ) {
    
    cout << X - t << ;
  }

else {
  
  cout << "0" << ;
  
}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected primary-expression before ';' token
   13 |     cout << X - t << ;
      |                      ^
a.cc:18:18: error: expected primary-expression before ';' token
   18 |   cout << "0" << ;
      |                  ^
Language: C++

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

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

  if((X-t)>0 || (X-t)==0 ) {
    
    cout << X - t << ;
  }

else {
  
  cout << "0" << ;
  
}



Compiler output:
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if((X-t)>0 || (X-t)==0 ) {
      |   ^~
a.cc:16:1: error: expected unqualified-id before 'else'
   16 | else {
      | ^~~~
Language: C++

#include<bits/stdc++.h>
#define LL long long
#define REP(i,n) for(int i=0;i<(n);++i)
#define lp(i,n) for(int i=0;i<(n);i++)
#define REPA(i,n) for(int i=1;i<(n);++i)
#define PII pair<int,int>
#define PLI pair<long long, int>
#define PLL pair<long long, long long>
#define MOD ((int)1e9 + 7)
#define INF ((int)2e9)
#define INFLL ((LL)1e18)
#define ALL(x) (x).begin(),(x).end()
#define CTOI(x) (x - 'A') 
#define ctoi(x) (x - 'a')
#define BIT(x) (1 << (x))
#define int long long
using namespace std;

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


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

#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12)
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}
//priority_queue<int, vi, greater<int> > que;//昇順

using namespace std;

const int mod=1e9+7;

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

}
#pragma GCC optimize "-O3"
#pragma GCC target ("avx")
#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;++i)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
#define SPEED ios::sync_with_stdio(false);cin.tie(0);cout<<fixed<<setprecision(12)
signed gcd(int a, int b){return b?gcd(b,a%b):a;}
signed lcm(int a, int b){return a*b/gcd(a,b);}
//priority_queue<int, vi, greater<int> > que;//昇順

using namespace std;

const int mod=1e9+7;

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

}


Compiler output:
a.cc:69:11: error: redefinition of 'const long long int mod'
   69 | const int mod=1e9+7;
      |           ^~~
a.cc:27:11: note: 'const long long int mod' previously defined here
   27 | const int mod=1e9+7;
      |           ^~~
a.cc:71:8: error: redefinition of 'int main()'
   71 | signed main(){
      |        ^~~~
a.cc:29:8: note: 'int main()' previously defined here
   29 | signed main(){
      |        ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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


#include <stdio.h>

int main(){
    long int X, i;

    scanf("%ld %ld", &X, &t);

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

}

Compiler output:
main.c: In function 'main':
main.c:7:27: error: 't' undeclared (first use in this function)
    7 |     scanf("%ld %ld", &X, &t);
      |                           ^
main.c:7:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main()
{
  long a, b; cin >> a >> b;
  cout << max(a-b, 0);
  return 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(a-b, 0);
      |           ~~~^~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:11:14: note:   deduced conflicting types for parameter 'const _Tp' ('long int' and 'int')
   11 |   cout << 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,
                 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:11:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long int'
   11 |   cout << max(a-b, 0);
      |           ~~~^~~~~~~~
Language: C++

#include<bits/stdc++.h>
#include <math.h>
#include<iostream>
#include <string>
using namespace std;
typedef long long ll;
#define pb pushback
#define fr(i,n) for(int i=0;i<n;i++)
#define ifr(i,n) for(int i=n-1;i>=0;i--)


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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 't' was not declared in this scope
   16 |     if(x-t>0)ans=x-t;
      |          ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <map>
#include <cmath>
#include <numeric>
#include <vector>
#include <bitset>
#include <queue>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'x' was not declared in this scope
    6 |   if(t>=x) cout<<0<<endl;
      |         ^
Language: C++

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

int main(){

int64_t X,t;
cin >> X >>t;

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

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

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int x,t;
  cin >>x >>t;
  int ans = x-t;
  cout << (ans <0? "0":ans);
}

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

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++) //for文マクロ
using namespace std;

typedef unsigned long ul;
typedef long long ll;
typedef pair<ul, ul> P; //ペア　タイプでふ
int main()
{
    int a, b;
    cin >> a >> b;
    if (a =< b)
    {
        cout << 0;
    }
    else
    {
        cout << a-b;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected primary-expression before '<' token
   12 |     if (a =< b)
      |            ^
Language: C++

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

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

int main(){
    int x,y,z,res;
    printf("整数入力(x,y,z)");
    scanf("%d%d%d",&x,&y,&z);
    res=gcd(x,y);
    res=gcd(res,z);
    printf("最大公約数=%d\n",res);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'printf' was not declared in this scope
    3 |     printf("整数入力(x,y,z)");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d%d%d",&x,&y,&z);
      |     ^~~~~
a.cc:5:9: error: 'gcd' was not declared in this scope
    5 |     res=gcd(x,y);
      |         ^~~
Language: C++

int main(){
    int x,y,res,buf;
    printf("整数入力(x,y)");
    scanf("%d%d",&x,&y);
    if(x<y){
        buf=x;
        x=y;
        y=buf;
    }
    res=gcd(x,y);
    printf("最大公約数=%d\n",res);
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'printf' was not declared in this scope
    3 |     printf("整数入力(x,y)");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:4:5: error: 'scanf' was not declared in this scope
    4 |     scanf("%d%d",&x,&y);
      |     ^~~~~
a.cc:10:9: error: 'gcd' was not declared in this scope
   10 |     res=gcd(x,y);
      |         ^~~
a.cc:12:14: error: expected '}' at end of input
   12 |     return 0;
      |              ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
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 */
set<a> i;

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

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


Compiler output:
a.cc:28:5: error: 'a' was not declared in this scope
   28 | set<a> i;
      |     ^
a.cc:28:6: error: template argument 1 is invalid
   28 | set<a> i;
      |      ^
a.cc:28:6: error: template argument 2 is invalid
a.cc:28:6: error: template argument 3 is invalid