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

#include <boost/multiprecision/cpp_dec_float.hpp>
#include <boost/multiprecision/cpp_int.hpp>
#include <bits/stdc++.h>

namespace mp = boost::multiprecision;
using Bint = mp::cpp_int;
using Real = mp::number<mp::cpp_dec_float<256>>;

int ri() {
	int n;
	scanf("%d", &n);
	return n;
}

int main() {
	int n = ri();
	int m = ri();
	int s[m], t[m];
	std::vector<int> hen[n];
	std::vector<int> rev[n];
	for (int i = 0; i < m; i++) {
		s[i] = ri() - 1;
		t[i] = ri() - 1;
		hen[s[i]].push_back(t[i]);
		rev[t[i]].push_back(s[i]);
	}
	std::vector<Bint> sum_0(n, 0);
	std::vector<Bint> num_0(n, 0);
	std::vector<Bint> sum_1(n, 0);
	std::vector<Bint> num_1(n, 0);
	num_0[0] = 1;
	num_1[n - 1] = 1;
	for (int i = 0; i < n; i++)
		for (auto j : hen[i]) num_0[j] += num_0[i], sum_0[j] += sum_0[i], sum_0[j] += num_0[i];
	for (int i = n - 1; i >= 0; i--)
		for (auto j : rev[i]) num_1[j] += num_1[i], sum_0[j] += sum_0[i], sum_0[j] += num_1[i];
	
	Real res = 1000000000000;
	for (int i = 0; i < m; i++) {
		Bint sum = sum_0[n - 1] - sum_0[s[i]] - sum_1[t[i]];
		Bint num = num_0[n - 1] - num_0[s[i]] - num_1[t[i]];
		res = std::min(res, (Real) sum / (Real) num);
	}
	std::cout << res << std::endl;
	return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
  
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL); 
  
#define ff first
#define ss second
#define pb push_back
#define pf push_front
#define mp make_pair
#define pu push
#define pp pop_back
#define in insert
#define ld long double
#define debug cout << "Hold right there sparky.....\n";
#define forn(low,high,i) for(i=low;i<high;i++)
#define forrev(high,low,i) for(i = high; i>= low;i--)

#define TRACE
#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__, __VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
  const char* comma = strchr(names + 1, ',');cerr.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
}
#else
#define trace(...) 1
#endif
template<class T> ostream& operator<<(ostream &os, vector<T> V) {os << "[ "; for(auto v : V) os << v << " "; return os << "]";}
template<class L, class R> ostream& operator<<(ostream &os, pair<L,R> P) {return os << "(" << P.first << "," << P.second << ")";}
  
typedef long long int ll;
  
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
typedef vector<vl> vvl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
const ll mod =1e9+7;
const ll maxn =5*100001;
ll power(ll x, ll n) {
  ll res = 1;
  for (; n > 0; n >>= 1) {
    if (n & 1) res = (res * x) % mod;
    x = (x * x) % mod;
  }
  return res;
}

int32_t main()
{
    

  
    IOS
	
	ll n,m;
	cin>>n>>m;
	vl g[n];
	double p[n],e[n];
	for(ll i=0;i<m;i++)
	{
		ll u,v;
		cin>>u>>v;
		u--;
		v--;
		g[u].pb(v);
	}
	p[0]=1.0;
	for(ll i=0;i<n;i++)
	{
		for(auto v:g[i])
			p[v]+=(p[i]/g[i].size());
	}
	e[n-1]=0.0;
	for(ll i=n-2;i>=0;i--)
	{
		for(auto v:g[i])
		{
			e[i]+=(e[v])/g[i].size());
		}
      e[i]=1+e[i];
	}
	double ans=e[0];
	cout<<fixed<<setprecision(9);
	for(ll i=n-2;i>=0;i--)
	{
		if(g[i].size()==1)
			continue;
		double maxi=0.0,sum=0.0;
		for(auto v:g[i])
		{
			sum+=e[v];
			maxi=max(maxi,e[v]);
		}
		double temp=e[0]+p[i]*((-sum/g[i].size())+(sum-maxi)/(g[i].size()-1));
		ans=min(ans,temp);
	}
	cout<<ans<<endl;
	
	
}
  
           
         
       


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:87:49: error: expected ';' before ')' token
   87 |                         e[i]+=(e[v])/g[i].size());
      |                                                 ^
      |                                                 ;
Language: C++

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

vector<int> g[605];
double kakuritu[605];
double kitaiti[605];

int main() {
    int n, m; cin >> n >> m;
    for (int i = 0; i < m; i++) {
        int s, t; cin >> s >> t; --s, --t;
        g[s].push_back(t);
    }
    kitaiti[n - 1] = 0;
    kakuritu[0] = 1;
    for (int i = 0; i < n; i++) {
        for (auto to : g[i]) {
            kakuritu[to] += kakuritu[i] / (double)g[i].size();
        }
    }

    for (int i = n - 1; i >= 0; i--) {
        for (auto to : g[i]) {
            kitaiti[i] += (kitaiti[to] + 1) / (double)g[i].size();
        }
    }

    double ans = 0;

    for (int i = 0; i < n; i++) {
        for (auto to : g[i]) {
            double ato;
            if (g[i].size() == 1) continue;
            ato = (kitaiti[i] * g[i].size() - (kitaiti[to] + 1)) / (double)(g[i].size() - 1);
            chmax(ans, (kitaiti[i] - ato) * kakuritu[i]);
        }
    }

    cout << fixed << setprecision(10);
    cout << kitaiti[0] - ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:13: error: 'chmax' was not declared in this scope
   35 |             chmax(ans, (kitaiti[i] - ato) * kakuritu[i]);
      |             ^~~~~
Language: C++

#include <algorithm>
#include <bitset>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <vector>
#include <ctime>

using namespace std;

typedef long long LL;
typedef unsigned long long ULL;
typedef unsigned int unt;
typedef long double db;
typedef pair <int, int> pii;
typedef vector <int> vi;

#define Fi first
#define Se second
#define pb push_back
#define mp make_pair
#define rep(x, a, b) for(int x = (a); x <= (b); ++ x)
#define per(x, a, b) for(int x = (a); x >= (b); -- x)
#define rop(x, a, b) for(int x = (a); x < (b); ++ x)
#define por(x, a, b) for(int x = (a); x > (b); -- x)
#define forE(x, a) for(int x = head[a]; x; x = nxt[x])

#ifdef DEBUG
#define debug(x) cerr << #x << ": " << x << '\n'
#else
#define debug(x)
#endif

const db eps = 1e-8;
const int inf = 0x3f3f3f3f;
const int Minf = 0x7f7f7f7f;
const LL INF = 0x3f3f3f3f3f3f3f3fll;
const LL MINF = 0x7f7f7f7f7f7f7f7fll;

int n, m; 

int head[656], to[656 * 656], nxt[656 * 656], tot;

void add(int x, int y) {
	to[++ tot] = y, nxt[tot] = head[x], head[x] = tot;
}

db f[656];

void dp(int k) {
	rep(i, 1, n) f[i] = 1e300;
	f[n] = 0;
	per(i, n - 1, 1) {
		db maxx = 0;
		db ans = 0;
		int cnt = 0;
		for(int j = head[i]; j; j = nxt[j]) {
			if(i == k) maxx = max(maxx, f[to[j]]);
			ans += f[to[j]];
			++ cnt;
		}
		if(i == k && cnt >= 2) ans -= maxx, cnt --;
		f[i] = ans / cnt + 1;
	}
}

int main() {
	scanf("%d%d", &n, &m);
	rep(i, 1, m) scanf("%d%d", &u, &v), add(u, v);
	dp(0);
	db ans = f[1];
	rep(i, 1, n - 1) {
		dp(i);
		ans = min(ans, f[1]);
	}
	printf("%.10f\n", (double)ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:75:37: error: 'u' was not declared in this scope
   75 |         rep(i, 1, m) scanf("%d%d", &u, &v), add(u, v);
      |                                     ^
a.cc:75:41: error: 'v' was not declared in this scope
   75 |         rep(i, 1, m) scanf("%d%d", &u, &v), add(u, v);
      |                                         ^
Language: C++

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

typedef pair<int, int> P;

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define RFOR(i,a,b) for(int i=(a);i>(b);i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,n,-1)

int main(void) {
	auto start = chrono::system_clock::now();
	int n, m, a, b;
	cin >> n >> m;
	vector<P> v;
	vector<int> cnt(n);
	vector<set<int>> gr(n);
	REP(i, m) {
		cin>>a>>b;
		a--;
		b--;
		v.push_back(P(a, b));
		gr[a].insert(b);
		cnt[a]++;
	}
	REP(i, n) es[i] = 0;
	es[0] = 1;
	long double mine = 0;
	REP(i, n - 1) {
		mine += es[i];
		for(auto j : gr[i]){
			es[j] += es[i] / (long double)cnt[i];
		}
	}
	REP(skip, m) {
		REP(i, n) es[i] = 0;
		es[0] = 1;
		a = v[skip].first;
		b = v[skip].second;
		if (cnt[a]>1) {
			gr[a].erase(b);
			cnt[a]--;
			long double e = 0;
			REP(i, n - 1) {
				e += es[i];
				for (auto j : gr[i]) {
					es[j] += es[i] / (long double)cnt[i];
				}
			}
			mine = min(mine, e);
			gr[a].insert(b);
			cnt[a]++;
		}
		if (chrono::duration_cast<chrono::milliseconds>(chrono::system_clock::now() - start).count() > 1980) break;
	}
	cout << fixed << setprecision(10) << mine;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:19: error: 'es' was not declared in this scope
   26 |         REP(i, n) es[i] = 0;
      |                   ^~
a.cc:27:9: error: 'es' was not declared in this scope
   27 |         es[0] = 1;
      |         ^~
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
#include<boost/operators.hpp>
#include<boost/dynamic_bitset.hpp>

namespace adaptor = boost::adaptors;
using index_t = std::size_t;

std::vector<double> base_expected(int N, std::vector<std::vector<int>>const& edge)
{
	std::vector<double> ret(N);
	for (auto i : boost::irange(0, N - 1) | adaptor::reversed)
	{
		for (auto j : edge[i])
		{
			ret[i] += 1 + ret[j];
		}
		ret[i] /= edge[i].size();
	}
	return ret;
}

void Main()
{
	int N, M;
	std::cin >> N >> M;
	std::vector<std::vector<int>>edge(N);
	for (auto i : boost::irange(0, M))
	{
		int s, t;
		std::cin >> s >> t;
		--s; --t;
		edge[s].emplace_back(t);
	}
	auto expected = base_expected(N, edge);
	auto min = expected[0];
	STATEMENT_STOPWATCH
		for (auto i : boost::irange(0, N - 1))
		{

			if (edge[i].size() == 1)
			{
				continue;
			}
			for (auto j : boost::irange(0, N - 1) | adaptor::reversed)
			{
				expected[j] = 0;
				auto max = 0.0;
				for (auto n : edge[j])
				{
					expected[j] += expected[n] + 1;
					max = std::max(max, expected[n] + 1);
				}
				expected[j] -= (i == j) * max;
				expected[j] /= (edge[j].size() - (i == j));
			}
			min = std::min(min, expected[0]);

		}
	std::cout << min << std::endl;
}

int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}

Compiler output:
a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory
    2 | #include<boost/multi_array.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#define MOD 1000000007
#include <iostream>
#include <vector>
#include <list>
#include <set>
#include <bitset>
#include <map>
#include <stack>
#include <queue>
#include <deque>
#include <string>
#include <functional>
#include <algorithm>
#include <iterator>
#include <cstdio>
#include <utility>
#include <unordered_map>
#include <cmath>
#include <chrono>
#include <random>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;

typedef pair<int, int> P;

#define FOR(i,a,b) for(ll i=(a);i<(b);++i)
#define RFOR(i,a,b) for(ll i=(a);i>(b);i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,n,-1)

int main(void) {
	int n, m, a, b;
	cin >> n >> m;
	vector<P> v;
	vector<int> cnt(n);
	vector<set<int>> gr(n);
	REP(i, m) {
		scanf("%d%d", &a, &b);
		a--;
		b--;
		v.push_back(P(a, b));
		gr[a].insert(b);
		cnt[a]++;
	}
	vector<double> es(n);
	REP(i, n) es[i] = 0;
	es[0] = 1;
	double mine = 0;
	REP(i, n - 1) {
		mine += es[i];
		for(auto j : gr[i]){
			es[j] += es[i] / double(cnt[i]);
		}
	}
	REP(skip, m) {
		REP(i, n) es[i] = 0;
		es[0] = 1;
		a = v[skip].first;
		b = v[skip].second;
		if (cnt[a]>1) {
			double e = 0;
			REP(i, n - 1) {
				e += es[i];
              　if(i==a){
				for (auto j : gr[i]) {
					es[j] += es[i] / double(cnt[i]-1);
				}
               }
              else{
				for (auto j : gr[i]) {
					es[j] += es[i] / double(cnt[i]);
				}
              }
			}
			mine = min(mine, e);
		}
	}
	printf("%.16f", mine);
	return 0;
}

Compiler output:
a.cc:66:15: error: extended character 　 is not valid in an identifier
   66 |               　if(i==a){
      |               ^
a.cc: In function 'int main()':
a.cc:66:15: error: '\U00003000if' was not declared in this scope
   66 |               　if(i==a){
      |               ^~~~
a.cc:71:15: error: 'else' without a previous 'if'
   71 |               else{
      |               ^~~~
Language: C++

#include<bits/stdc++.h>
#define maxn 605
#define maxm maxn*maxn/2
using namespace std;
int n,m,deg[maxn],stk[maxn],top;
double f[maxn],g[maxn],ans;
vector<int>G[maxn];
double dfs(int u){
	if(u==n) return 0;
	if(f[u]) return f[u];
	for(int v: G[u]) f[u]+=dfs(v);
	return f[u]=f[u]/G[u].size()+1;
}
int main()
{
	scanf("%d%d",&n,&m);
	for(int i=1,x,y;i<=m;i++) scanf("%d%d",&x,&y),G[x].push_back(y),deg[y]++;
	dfs(1);
	stk[++top]=1,g[1]=1;
	while(top){
		int u=stk[top--]; if(u==n) break;
		for(int v: G[u]){
			g[v]+=g[u]/G[u].size();
			if(!--deg[v]) stk[++top]=v;
		}
	}
	for(int u=1;u<n;u++) if(G[u].size()>1){
		double tmp=0; for(int v: G[u]) tmp+=f[v];
		for(int v: G[u])
			ans=max(ans,g[u]*(f[u]-((tmp-f[v])/(G[u].size()-1)+1))));
	}
	printf("%.10f\n",f[1]-ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:80: error: expected ';' before ')' token
   30 |                         ans=max(ans,g[u]*(f[u]-((tmp-f[v])/(G[u].size()-1)+1))));
      |                                                                                ^
      |                                                                                ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> P;
#define DUMP(x) cout << #x << " = " << (x) << endl;
#define FOR(i, m, n) for (ll i = m; i < n; i++)
#define IFOR(i, m, n) for (ll i = n - 1; i >= m; i--)
#define REP(i, n) FOR(i, 0, n)
#define IREP(i, n) IFOR(i, 0, n)
#define FOREACH(x, a) for (auto&(x) : (a))
#define ALL(v) (v).begin(), (v).end()
#define SZ(x) ll(x.size())

ll n, m;
vector<double> dp;
vector<ll> s, t, deg, ideg;
vector<vector<ll>> to;
vector<bool> seen;

void dfs(ll cv) {
  IREP(nv, n) {
    if (!to[cv][nv]) continue;
    dp[nv] += )dp[cv] * 1.0 +1)/ deg[cv];
  }
}

int main() {
  cin >> n >> m;
  s = vector<ll>(m);
  t = vector<ll>(m);
  deg = vector<ll>(n, 0);
  ideg = vector<ll>(n, 0);
  to = vector<vector<ll>>(n, vector<ll>(n, 0));
  REP(i, m) {
    cin >> s[i] >> t[i];
    s[i]--;
    t[i]--;
    to[s[i]][t[i]] = 1;
    deg[s[i]]++;
    ideg[t[i]]++;
  }
  dp = vector<double>(n, 0.0);
  seen = vector<bool>(n, false);
  REP(i, n) dfs(i);
  double ans = dp[n - 1];
  REP(i, m) {
    to[s[i]][t[i]] = 0;
    deg[s[i]]--;
    ideg[t[i]]--;
    dp = vector<double>(n, 0.0);
    dp[n - 1] = 1e15;
    seen = vector<bool>(n, false);
    REP(j, n) dfs(j);
    ans = min(ans, dp[n - 1]);
    to[s[i]][t[i]] = 1;
    deg[s[i]]++;
    ideg[t[i]]++;
  }

  cout << fixed << setprecision(10);
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'void dfs(ll)':
a.cc:23:15: error: expected primary-expression before ')' token
   23 |     dp[nv] += )dp[cv] * 1.0 +1)/ deg[cv];
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
double INF = 1e9;


double dp[610];
int flag[610];

int main(){
	int N, M; cin >> N >> M;
	vector<int> G[N];
	for(int i=0; i<M; i++){
		int s, t; cin >> s >> t;
		s--; t--;
		G[s].push_back(t);
	}
	for(int i=N-2; i>=0; i--){
		for(int j=0; j<G[i].size(); j++){
			dp[i] += (dp[G[i][j]]+1)/G[i].size();
		}
	}
	queue<int> que;
	flag[0] = 1;
	que.push(0);
	while(que.size()){
		int aaa = que.front(); que.pop();
		for(int i=0; i<G[aaa].size(); i++){
			if(flag[G[aaa][i]] != 1){
				flag[G[aaa][i]] = 1;
				que.push(G[aaa][i]);
			}
		}
	}
	double ANS = dp[0];
	for(int i=0; i<N-1; i++){
		double dp2[N];
		int ma = -1, mai;
		for(int j=0; j<G[i].size(); j++){
			if(dp[G[i][j]] > ma){ ma = dp[G[i][j]]; mai = G[i][j]; }
		}
		dp2[i] = 0;
		if(G[i].size() == 1 && flag[i] == 1) continue;
		for(int j=i+1; j<N; j++) dp2[j] = dp[j];
		for(int j=0; j<G[i].size(); j++){
			if(G[i].size() == 1) dp2[i] = -1;
			else{
				if(G[i][j] != mai){
					dp2[i] += (dp[G[i][j]]+1)/(G[i].size()-1);
				}
			}
		}
		for(int j=i-1; j>=0; j--){
			double aa = 0;
			for(int k=0; k<G[j].size(); k++){
				aa += (dp2[G[j][k]]+1)/G[j].size();
			}
			dp2[j] = aa;
		}
		if(ANS => dp2[0]) ANS = dp2[0];
	}
	cout << setprecision(10) << ANS << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:25: error: expected primary-expression before '>' token
   60 |                 if(ANS => dp2[0]) ANS = dp2[0];
      |                         ^
Language: C++

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

int main() {
  
  int a, b;
  cin >> a >> b;
  int p = a - (b * 2);
  if(p < 0) cout << 0 << endl;
  else cout << p << endl;
  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected '}' at end of input
   10 |   else cout << p << endl;
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.newxtInt();
    int r = a-b*2;
    if(r<0) r = 0;
    System.out.println(r);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    int b = sc.newxtInt();
              ^
  symbol:   method newxtInt()
  location: variable sc of type Scanner
1 error
Language: C++

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: unable to find numeric literal operator 'operator""b'
    7 |   cout<<max((a-2b),0)<<endl;
      |                ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: unable to find numeric literal operator 'operator""b'
    7 |   cout<<max(a-2b,0)<<endl;
      |               ^~
Language: C++

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

int main(){
    int n;
    cin >> n;
    vector<int> d(n);
    for(int i = 0; i < n; i++) cin >> d[i];
    int ans = 0;
    for(int i = 0; i < n; i++){
        for (int j = i + 1; j < n; j++){
            ans += d[i] * d[j]
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: expected ';' before '}' token
   12 |             ans += d[i] * d[j]
      |                               ^
      |                               ;
   13 |         }
      |         ~
Language: C++

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

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

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

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

int main(){
	int a, b;
  	cin >> a >> b;
  	int ans = max(a - 2*b, 0)
   	cout << ans << endl;
}

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

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

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

using namespace std;
int main(){
    int a,b;
    cin >> a >> b;
    cout << min(a-b*2,0) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> a >> b;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << min(a-b*2,0) << endl;
      |     ^~~~
a.cc:5:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:13: error: 'min' was not declared in this scope; did you mean 'main'?
    5 |     cout << min(a-b*2,0) << endl;
      |             ^~~
      |             main
a.cc:5:29: error: 'endl' was not declared in this scope
    5 |     cout << min(a-b*2,0) << endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: unable to find numeric literal operator 'operator""B'
    6 |   if(A<2B){
      |        ^~
a.cc:10:11: error: unable to find numeric literal operator 'operator""B'
   10 |     cout<<2B-A<<endl;
      |           ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 |   itn a,b;
      |   ^~~
      |   int
a.cc:6:8: error: 'a' was not declared in this scope
    6 |   cin>>a>>b;
      |        ^
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   cin>>a>>b;
      |           ^
Language: C++

#pragma GCC optimize("Ofast") 
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define fi first
#define se second
#define sz(a) a.size()
#define all(a) a.begin(),a.end()
#define lb lower_bound
#define ub upper_bound
#define owo ios_base::sync_with_stdio(0);cin.tie(0);
#define MOD (ll)(998244353)
#define INF (ll)(1e18)
#define debug(...) fprintf(stderr, __VA_ARGS__),fflush(stderr)
#define time__(d) for(long blockTime = 0; (blockTime == 0 ? (blockTime=clock()) != 0 : false);\
debug("%s time : %.4fs\n", d, (double)(clock() - blockTime) / CLOCKS_PER_SEC))
typedef long long int ll;
typedef long double ld;
typedef pair<ll,ll> PII;
typedef pair<int,int> pii;
typedef vector<vector<int>> vii;
typedef vector<vector<ll>> VII;
ll gcd(ll a,ll b){if(!b)return a;else return gcd(b,a%b);}
int main()
{
  int a,b;
  cin>>a>>b;
  cout<<max(0,2a-b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:15: error: unable to find numeric literal operator 'operator""a'
   28 |   cout<<max(0,2a-b);
      |               ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
vector<ll>pos[21];
ll inp[100];
map<ll,ll>mp;
vector<ll>points;
vector<ll>::iterator upper1, upper2;
int main()
{
  ll i,j,k,l,t,n,x=0,y=0,p,q,z=0;
  cin>>a>>b;
  x=a-(b+b);
  cout<<max(y,x);
  
  
     
     
     	
  	
}

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

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

int A,B;
int main (){
	cin >> A >> B;
	cot << min(A - B,A - 2 * B) << endl;
	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cot' was not declared in this scope
    8 |         cot << min(A - B,A - 2 * B) << endl;
      |         ^~~
Language: C++

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

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

#include<bits/stdc++.h>
#define test int t; cin>>t; while(t--)
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define pb push_back
#define mp make_pair
typedef long long ll;
using namespace std;
int main()
{
ll a,b; cin>>a>>b>>c;
  c=abs(b-a)
    if(b>=a)
      cout<<0<<endl;
  else 
    cout<<c<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'c' was not declared in this scope
   10 | ll a,b; cin>>a>>b>>c;
      |                    ^
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long int

using namespace std;

const ll mod=1000000007;
const ll inf=1e18;

int main(){

  ll a,b;
  cin >> a >> b;
  cout << max(0,a-2*b) << endl;

}

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

// بِسمِ اللہِ  الرَّحم?نِ  الرَّ حِیم
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define MOD 1000000007
#define ll long long
#define pb push_back
#define all(v) v.begin(),v.end()
#define INF 1e18
#define N 100100
#define PI 3.141592653589793238
typedef pair<ll,ll> pll;
ll power(ll a,ll b)
{
    if(b==1)return a;
    if(b==0)return 1;
    ll temp=power(a,b/2);
    ll ans=temp*temp;
    if(b&1)
        ans*=a;
    return ans;
}
ll power(ll a,ll b,ll p)
{
    a=a%p;
    if(b==1)return a;
    if(b==0)return 1;

    ll temp=power(a,b/2,p);
    ll ans=(temp*temp)%p;
    if(b&1)
        ans=(a*ans)%p;
    return ans%p;
}
ll inv(ll a,ll m)
{
    return power(a,m-2,m);
}
//code begins
void solve(){
    ll a,b;cin>>a>>b;
    cout<<max(0,a-2*b)<<endl;
}
signed main()
{
//    freopen("input.txt","r",stdin);
//    freopen("output.txt","w",stdout);

    ios_base::sync_with_stdio(false);
//    cin.tie(NULL);cout.tie(NULL);

    ll t;cin>>t;while(t--)
    solve();
    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
#define rg register
#define rep(i,a,b) for (rg int i=a;i<=b;i++)
#define per(i,a,b) for (rg int i=b;i>=a;i--)
#define pb push_back
#define lowbit(x) (x&(-x))
#define mk make_pair
#define VI vector<int>
#define pii pair<int,int>
#define pLL pair<long long,long long>
#define fi first
#define se second
#define il inline
#define ll long long
#define db double
#define ld long double
#define inf 0x3f3f3f3f3f
#define getc() (p1==p2&&(p2=(p1=buf)+fread(buf,1,1<<15,stdin),p1==p2)?EOF:*p1++)
char buf[1<<15],*p1 = buf,*p2 = buf;
inline ll read(){
    #define num ch-'0'
    char ch;bool flag=0;ll res;
    while(!isdigit(ch=getc()))
    (ch=='-')&&(flag=true);
    for(res=num;isdigit(ch=getc());res=res*10ll+num);
    (flag)&&(res=-res);
    #undef num
    return res;
}
inline void write(ll x){
	if (x < 0) x = ~x + 1ll, putchar('-');
	if (x > 9) write(x / 10ll);
	putchar(x % 10ll + '0');
}
#define mid ((l + r)>>1)
#define ls (x<<1)
#define rs ((x<<1)|1)
#undef mid
#undef ls
#undef rs
#define maxn 310
ll d[maxn][maxn];
ll a[maxn][maxn];
void solve()
{
	int n = read(),m = read();
	ll l = read();
	rep(i,1,n) rep(j,1,n) d[i][j] = (i == j) ? 0:inf;
	rep(i,1,m)
	{
		int x = read(),y = read();
		ll z = read();
		if(z <= l) d[x][y] = d[y][x] = min(d[x][y],z);
	}
	rep(i,1,n)
	{
		rep(j,1,n)
		{
			rep(k,1,n)
			{
				d[i][j] = min(d[i][j],d[i][k] + d[k][j]);
			}
		}
	}
	rep(i,1,n)
	{
		rep(j,1,n)
		{
			a[i][j] = (d[i][j] <=l)?1:inf;
			if(i == j) a[i][j] = 0;
		}
	}
	rep(i,1,n)
	{
		rep(j,1,n)
		{
			rep(k,1,n)
			{
				a[i][j] = min(a[i][j],a[i][k] + a[k][j]);
			}
		}
	}
	int q = read();
	while(q--)
	{
		int s = read(),t = read();
		cout<<((a[s][t]>=inf)?-1:a[s][t]-1)<<endl;
	}
}
int main()
{
	#ifndef ONLINE_JUDGE
	freopen("data.txt","r",stdin);
	#endif
//	int T = read();
//	while(T--)
	solve();
}

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

#include<iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a >> b;
  int c=2*b
  if(a<=c){
    cout << '0' << endl;
  }
  else{
    cout << a-c << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'if'
    7 |   if(a<=c){
      |   ^~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else{
      |   ^~~~
Language: C++

/**Bismillahir Rahmanir Rahim.**/
/*gcd=--gcd(a,b);*/
#include<bits/stdc++.h>
#include <iostream>
using namespace std;
int main()
{
   long long int a,b,c,d,i,j;
   cin>>a>>b;
   c=max(0,(a-2)*b);
   cout<<c<<endl;
}


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

#include <bits/stdc++.h>
using namespace std;
#define PI 3.14159265358979323
#define ll long long int
#define vi vector <int>
#define vl vector <ll>
#define all(v) (v).begin(),(v).end()
#define pb push_back
 
ll power(ll a, ll b){//a^b
    ll res=1;
    while(b>0){
        if(b&1){res=(res*a);b--;}
        a=(a*a);
        b>>=1;
    }
    return res;
}
 
ll gcd(ll a, ll b){return (b==0)?a:gcd(b,a%b);}
 
int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	ll a,b;
	cin>>a>>b;
	cout<<min(0,a-2*b)<<"\n";
}

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

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

int main(){
  int A,B;
  cin >> A >> B;
  cout << max(0,A-B*2) << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> A >> B;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude <bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << max(0,A-B*2) << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:11: error: 'max' was not declared in this scope
    7 |   cout << max(0,A-B*2) << endl;
      |           ^~~
a.cc:7:27: error: 'endl' was not declared in this scope
    7 |   cout << max(0,A-B*2) << endl;
      |                           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude <bits/stdc++.h>
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  int ans=min(0,a-2b);
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: unable to find numeric literal operator 'operator""b'
    7 |   int ans=min(0,a-2b);
      |                   ^~
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  int ans=min(0,a-2b);
  cout<<anc<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: unable to find numeric literal operator 'operator""b'
    7 |   int ans=min(0,a-2b);
      |                   ^~
a.cc:8:9: error: 'anc' was not declared in this scope; did you mean 'ans'?
    8 |   cout<<anc<<endl;
      |         ^~~
      |         ans
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: unable to find numeric literal operator 'operator""b'
    7 |   if(a>2b){cout<<(a-2b)<<endl;return 0;}
      |        ^~
a.cc:7:21: error: unable to find numeric literal operator 'operator""b'
    7 |   if(a>2b){cout<<(a-2b)<<endl;return 0;}
      |                     ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: unable to find numeric literal operator 'operator""b'
    7 |   if(a>2b){cout<<a-2b<<endl;return 0;}
      |        ^~
a.cc:7:20: error: unable to find numeric literal operator 'operator""b'
    7 |   if(a>2b){cout<<a-2b<<endl;return 0;}
      |                    ^~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    System.out.println(a>b*2 ? a-b* : 0);
  }
}


Compiler output:
Main.java:8: error: illegal start of expression
    System.out.println(a>b*2 ? a-b* : 0);
                                    ^
1 error
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
int main(void){
    
    int a,b;
    cin >> a >> b;
    int x;
    x = b*2
    if(a > x)
        {
        int ans;
        ans = a-b;
        cout << ans << endi;
        }
    else
        cout << "0" << endl;
        
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: expected ';' before 'if'
    9 |     x = b*2
      |            ^
      |            ;
   10 |     if(a > x)
      |     ~~      
a.cc:16:5: error: 'else' without a previous 'if'
   16 |     else
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: unable to find numeric literal operator 'operator""b'
    5 |   if(2b>a){
      |      ^~
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a, b;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << max(0, a-2*b) << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^