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

#include <iostream>
void main()
{
  int a,b;
  cin>>a>>b;
  if(a<=(2*b))
    cout<<0;
  else
    cout<<a-(2*b);
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<0;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<a-(2*b);
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<iostream.h>
#include<conio.h>
void main()
{
  int a,b;
  scanf("%d %d",a,b);
  if(a>2*b)
    printf("\n%d",a-2*b);
  else
    printf("\n%d",0);
}

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

#include <bits/stdc++.h>
void main()
{
  int a,b;
  cin>>a>>b;
  if(a<=(2*b))
    cout<<0;
  else
    cout<<a-(2*b);
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a>>b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<0;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<a-(2*b);
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream.h>
void main()
{
  int a,b;
  cin>>a>>b;
  if(a<=(2*b))
    cout<<0;
  else
    cout<<a-(2*b);
}


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

#include<iostream>
uding namespace std;
int main()
{int A,B;
 cin>>A>>B;
 if((A-2*B!=0)&&(A-2*A)>0)
   cout<<A-2*A;
 else if(A-2*B<=0)
   cout<<0;
 return 0;




}

Compiler output:
a.cc:2:1: error: 'uding' does not name a type
    2 | uding namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |  cin>>A>>B;
      |  ^~~
      |  std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |    cout<<A-2*A;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |    cout<<0;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<stdio.h>
void main()
{
  int a,b;
  cin<<a<<b;
  if(a>2*b)
    cout<<a-2*b;
  else
    cout<<0;
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin<<a<<b;
      |   ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<a-2*b;
      |     ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<0;
      |     ^~~~
Language: C

#include<stdio.h>
int main(){
    int w,b;
    scanf("%d%d",&w,&b);
    x=w-2*b;
    if(x>0)
        printf("%d",x);
    else
        printf("0");
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'x' undeclared (first use in this function)
    5 |     x=w-2*b;
      |     ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ')' before ';' token
    8 |   cout<<max(0,a-(2*b);
      |            ~         ^
      |                      )
Language: C++

#include<iostream.h>
  void main()
  {
    int a,b;
    cin>>a>>b;
    if(a>=2*b)
      cout<<0;
    else
      cout<<a-(2*b);
  }


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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << 0;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << a - 2*b;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
#include<conio.h>
void main()
{
  int a,b;
  cin>>a>>b;
  cout<<(a%(b*2));
}


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

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

int main(){
  int A, B;
  cin >> A >> B;
  
  temp = B*2;
  ans = A-temp;
  if(ans <= 0){
    cout << 0;
  }
  else{
    cout << ans;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'temp' was not declared in this scope; did you mean 'tm'?
    8 |   temp = B*2;
      |   ^~~~
      |   tm
a.cc:9:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   ans = A-temp;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>

using namespace std;



int main () {

	int A, B;
	scanf("%d %d", &A, &B);

	B *= 2;

	printf("%d\n", max(0, A - B));
c
		

	return 0;
}
 

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b;
    cin>>a>>b;
    if(a>=2b){
        cout<<a-2b<<endl;
    }
    
    else if(a<2b){
        cout<<0<<endl;
    }
    
}


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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'endl'
    8 |     cout << 0 endl;
      |              ^~~~~
      |              ;
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
   
    int N = sc.nextInt();
    int po= 0;
    int d[] = new int[10000]; 
    int k = 0;
    int j = 0;
    for(int i=0;i<N;i++){
    	d[i] = sc.nextInt();
        //System.out.println(d[i]);
    }
    
    // (N*(N-1))/2 通り存在する
        
    for(k=0;k<n;k++){
    	for(j=k+1;j<k;j++){
        	po = po+(d[k]*d[j]);
        }
    }
    System.out.println(po);
    }
}

Compiler output:
Main.java:19: error: cannot find symbol
    for(k=0;k<n;k++){
              ^
  symbol:   variable n
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
   
    int N = sc.nextInt();
    int po= 0;
    int d[] = new int[100000000000000]; 
    int k = 0;
    int j = 0;
    for(int i=0;i<N;i++){
    	d[i] = sc.nextInt();
        //System.out.println(d[i]);
    }
    
    // (N*(N-1))/2 通り存在する
        
    for(k=0;k<(N*(N-1))/2;k++){
    	for(j=0;j<k;j++){
        	po = po+(d[k]*d[j]);
        }
    }
    System.out.println(po);
    }
}

Compiler output:
Main.java:9: error: integer number too large
    int d[] = new int[100000000000000]; 
                      ^
1 error
Language: C++

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

int main() {
  int A,B;
  cin >>A>>B;
  if(A <= 2*B){
     cout<<"0"<<endl;
  }
  else;
     cout<<A-2*B<<endl;
  } 

}


Compiler output:
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>
#include <vector>

int main(){
  int n;
  std::cin >> n;
  std::vector<int> d;
  int temp;
  while(std::cin >> temp)
    d.push_back(temp);
  int rec = 0;
  for(int i=0; i<n; ++i)
    rec -= d[i]*d[i];
    for(int j=0; i<n; ++j)
      rec += d[i]*d[j];
  std::cout << rec << std::endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: 'i' was not declared in this scope
   14 |     for(int j=0; i<n; ++j)
      |                  ^
Language: C++

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

int main() {
    int a, b;
    cin >> a >> b;

    if(a < (b * 2)) {
        cout << 0 << endl;
        return;
    }

    cout << a - (b * 2) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |         return;
      |         ^~~~~~
Language: C++

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

int main() {
   int a, b;
 	 cin >> a >> b;
   int x = abs(a-(2*b);
      cout << x;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ')' before ';' token
    7 |    int x = abs(a-(2*b);
      |               ~       ^
      |                       )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before '}' token
    7 |   if(A>2*B){cout << A-2*B}
      |                          ^
      |                          ;
a.cc:8:17: error: expected ';' before '}' token
    8 |   else{cout << 0}
      |                 ^
      |                 ;
Language: C++

A, B = [int(i) for i in input().split()]
if 2 * B > A:
    print(0)
else:
    print(A - 2 * B)

Compiler output:
a.cc:1:1: error: 'A' does not name a type
    1 | A, B = [int(i) for i in input().split()]
      | ^
Language: C++

#include <bits/stdc++.h>

#define count_ones __builtin_popcountl
#define all(a) a.begin(), a.end()
#define gcd(a, b) __gcd(a, b)
#define lca(a, b) a / __gcd(a, b) * b
typedef long long ll;
typedef long long ld;
using namespace std;

int main() {
    ios::sync_with_stdio(false);

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

    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'else'
    8 |     cout<<"0"
      |              ^
      |              ;
    9 |     else
      |     ~~~~
Language: C++

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

int main() {

  int A,B;
  cin>>A>>B;
if(A-2B<0){cout<<0<<endl;}
	else{cout<<A-2B<<endl;}
}


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

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

int main() {

  int A,B;
  cin>>A,B;
if(A-2B<0){cout<<0<<endl;}
	else{cout<<A-2B<<endl;}
}


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

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

int main() {

  int A,B;
  cin>>A,B;
if(A-2B<0){A=2B;}
	cout<<A-2B<<endl;
}


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

#include "bits/stdc++.h"

using namespace std;


#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define RFOR(i, a, b) for (int i = (b)-1; i >= (a); i--)
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep1(i, n) for (int i = 1; i < (n); i++)
#define rrep(i, n) for (int i = (n)-1; i >= 0; i--)
#define all(i) (i).begin(), (i).end()
#define rall(i) (i).begin(), (i).end(), greater<int>()

#define int long long

#define elif else if
#define eb emplace_back
#define pb push_back
#define mp make_pair
#define fst first
#define sec second

template <typename T>
void print(T x)
{
	std::cout << x <<" " ;
}


template <typename T>
void println(T x)
{
	std::cout << x << "\n";
}

signed main(void) {
	int A,B;
	cin >> A>>B;
	print(max(int(0),A-2*B));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected primary-expression before 'long'
   14 | #define int long long
      |             ^~~~
a.cc:39:19: note: in expansion of macro 'int'
   39 |         print(max(int(0),A-2*B));
      |                   ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int A,B;;
    cin >> A >> B;
    if(A-2B>=0){
        cout << A - 2B << endl;
    }
    else if(A-2B<0){
        cout << 0 << endl;
    }
}

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

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

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


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

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

int main() {
  int A, B ;
  cin >> a>> B;
  if (A>=2*B){
    cout << A-2*B << endl;
  }
  else {
  cout << 0 << endl;]
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a>> B;
      |          ^
a.cc:11:21: error: expected primary-expression before ']' token
   11 |   cout << 0 << endl;]
      |                     ^
Language: C++

/*input
2
ip cc
*/
#include <bits/stdc++.h>
#pragma GCC optimize("unroll-loops,no-stack-protector")
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef pair<ld,ld> pdd;
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ALL(a) a.begin(),a.end()
#define SZ(a) ((int)a.size())
#define F first
#define S second
#define REP(i,n) for(int i=0;i<((int)n);i++)
#define eb emplace_back
#define pb push_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 EL cout<<'\n'
#define BS(a,x) binary_search(ALL(a),x)
template<typename T1,typename T2>
ostream& operator<<(ostream& out,pair<T1,T2> P){
	out<<'('<<P.F<<','<<P.S<<')';
	return out;
}
template<typename T>
ostream& operator<<(ostream& out,vector<T> V){
	REP(i,SZ(V)) out<<V[i]<<((i!=SZ(V)-1)?" ":"");
	return out;
}
//}}}
const ll maxn=300005;
const ll maxlg=20;
const ll INF64=1e18;
const int INF=0x3f3f3f3f;
const ll MOD=ll(1e9+7);
const ld PI=acos(-1);
const ld eps=1e-9;
//const ll p=880301;
//const ll P=31;

ll mypow(ll a,ll b){
	ll res=1LL;
	while(b){
		if(b&1) res=res*a%MOD;
		a=a*a%MOD;
		b>>=1;
	}
	return res;
}


int main(){
	IOS;
	int x,y;
  cin>>x>>y;
  cout<<max(0,x-2y);
	return 0;
}


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

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

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



    }
    return 0;
}


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

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

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
int main(){
    FAST
    int a,b;
    cin>>a>>b;
    cout<<max(0,a-2*b);
    return 0;
}

Compiler output:
a.cc:4:9: warning: ISO C++11 requires whitespace after the macro name
    4 | #define ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
      |         ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'FAST' was not declared in this scope
    6 |     FAST
      |     ^~~~
a.cc:8:10: error: 'a' was not declared in this scope
    8 |     cin>>a>>b;
      |          ^
a.cc:8:13: error: 'b' was not declared in this scope
    8 |     cin>>a>>b;
      |             ^
Language: Java

import java.util.*;
public class G {

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

}


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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclde; did you mean #include?
    1 | #inclde <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:5: 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 | #inclde <bits/stdc++.h>
a.cc:9:15: error: 'cout' was not declared in this scope
    9 |     if(x > 0) cout << x << endl;
      |               ^~~~
a.cc:9:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:28: error: 'endl' was not declared in this scope
    9 |     if(x > 0) cout << x << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclde <bits/stdc++.h>
a.cc:10:10: error: 'cout' was not declared in this scope
   10 |     else cout << 0 << endl;
      |          ^~~~
a.cc:10:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:23: error: 'endl' was not declared in this scope
   10 |     else cout << 0 << endl;
      |                       ^~~~
a.cc:10:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:8: error: invalid suffix "b" on integer constant
    7 |   if(a-2b<0) printf("0\n");
      |        ^~
main.c:8:24: error: invalid suffix "b" on integer constant
    8 |   else printf("%d\n",a-2b);
      |                        ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
int A,B,C;
  cin>>A>>B;
  C=A-B*2;
  if(c<=0){
    cout<<"0";
  } else cout<<c;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'c' was not declared in this scope
    7 |   if(c<=0){
      |      ^
Language: C

#include<stdio.h>
int main(){
  int a,b,c;
  scanf("%d%d",&a,&b);
  c = a-2*b
  if(c<0) c = 0;
  printf("%d",c)
}

Compiler output:
main.c: In function 'main':
main.c:5:12: error: expected ';' before 'if'
    5 |   c = a-2*b
      |            ^
      |            ;
    6 |   if(c<0) c = 0;
      |   ~~        
main.c:7:17: error: expected ';' before '}' token
    7 |   printf("%d",c)
      |                 ^
      |                 ;
    8 | }
      | ~
Language: C++

#include<iostream>
 
int main()
{
  int A,B;
  std::cin >> A >> B;
  int result = A-(B*2);
  std::cout << (result>0)?result:0 << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   std::cout << (result>0)?result:0 << std::endl;
      |                                  ~~^~~~~~~~~~~~
Language: C++

#include<iostream>
using namespase std;

int main()
{
  int A,B;
  cin >> A >> B;
  int result = A-(B*2);
  cout << (result>0)?result:0 << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> A >> B;
      |   ^~~
      |   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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << (result>0)?result:0 << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << (result>0)?result:0 << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  int A,B;
  cin >> A >> B;
  
  int d = A - 2*B;
  if(d => 0){
    cout << d << endl;
  else{
    cout << 0 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before '>' token
    9 |   if(d => 0){
      |         ^
a.cc:11:3: error: expected '}' before 'else'
   11 |   else{
      |   ^~~~
a.cc:9:13: note: to match this '{'
    9 |   if(d => 0){
      |             ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans=a>=2*b?a-2*b:0;
      |   ^~~
      |   abs
Language: Java

import java.util.Scanner;

public class ABC086_A_Product {

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

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

import java.util.Scanner;

public class ABC086_A_Product {

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

Compiler output:
Main.java:11: error: ')' or ',' expected
        	System.out.println(a - 2b);
        	                        ^
Main.java:11: error: ';' expected
        	System.out.println(a - 2b);
        	                         ^
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: unable to find numeric literal operator 'operator""b'
    6 |   int res = a - 2b ;
      |                 ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'res' was not declared in this scope
    6 |   res = a - 2*b ;
      |   ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'res' was not declared in this scope
    6 |   res = a - 2b ;
      |   ^~~
a.cc:6:13: error: unable to find numeric literal operator 'operator""b'
    6 |   res = a - 2b ;
      |             ^~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: unable to find numeric literal operator 'operator""b'
    5 |   cout << a - 2b < 0?0:a-2b <<endl;
      |               ^~
a.cc:5:26: error: unable to find numeric literal operator 'operator""b'
    5 |   cout << a - 2b < 0?0:a-2b <<endl;
      |                          ^~
Language: Java

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

public class A {

    static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null; }
        String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try { tokenizer = new StringTokenizer(reader.readLine()); } 
                catch (IOException e) { throw new RuntimeException(e);} }
            return tokenizer.nextToken(); }
        public int nextInt() { return Integer.parseInt(next()); }
        public long nextLong() { return Long.parseLong(next()); }
        public double nextDouble() { return Double.parseDouble(next()); }
    }

    static InputReader r = new InputReader(System.in);
    static PrintWriter pw = new PrintWriter(System.out);

    public static void main(String[] args) {
        
        int a = r.nextInt();
        int b = r.nextInt();
        pw.println(Math.max(0, a - 2 * b));

        pw.close();
    }
}

/**
                _        _                 _                                                
               | |      | |               | |                                               
   ___ ___   __| | ___  | |__  _   _    __| | __ _ _ __ _ __ ___ _ __     _   _  __ _  ___  
  / __/ _ \ / _` |/ _ \ | '_ \| | | |  / _` |/ _` | '__| '__/ _ \ '_ \   | | | |/ _` |/ _ \ 
 | (_| (_) | (_| |  __/ | |_) | |_| | | (_| | (_| | |  | | |  __/ | | |  | |_| | (_| | (_) |
  \___\___/ \__,_|\___| |_.__/ \__, |  \__,_|\__,_|_|  |_|  \___|_| |_|   \__, |\__,_|\___/ 
                                __/ |                               ______ __/ |            
                               |___/                               |______|___/             
 */

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

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'a' was not declared in this scope
    8 |   cout << max(a-b*2, 0) << endl;
      |               ^
a.cc:8:17: error: 'b' was not declared in this scope
    8 |   cout << max(a-b*2, 0) << endl;
      |                 ^
Language: C++

#include <iostream> 
using namespace std;

int main(){
    int A,B;
    cin >> A >> B;
    if(A-2*B>0){
        cout << A-2*B;
    }
    else cout 0;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before numeric constant
   10 |     else cout 0;
      |              ^~
      |              ;
Language: C++

#include <iostream> 
using namespace std;

int main(){
    int A,B;
    cin >> A >> B;
    cout << A-2B;

    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 << A-2B;
      |               ^~
Language: C++

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

int main() {
  int x,;
int A=1;
int B =1;
  cin >> A >> B;

  x=A-2*B;
 if(x > 0){ 
  cout << x << endl;
}
  cout << 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before ';' token
    5 |   int x,;
      |         ^
Language: C++

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

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

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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:15: error: 'cout' was not declared in this scope
    7 |   if(a-2*b>0) cout << a-2*b << endl;
      |               ^~~~
a.cc:7:32: error: 'endl' was not declared in this scope
    7 |   if(a-2*b>0) cout << a-2*b << endl;
      |                                ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << 0 << endl;
      |        ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |   else cout << 0 << endl;
      |                     ^~~~
Language: C++

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

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

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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b;
      |   ^~~
a.cc:7:15: error: 'cout' was not declared in this scope
    7 |   if(a-2*b>0) cout << a-2*b << endl;
      |               ^~~~
a.cc:7:32: error: 'endl' was not declared in this scope
    7 |   if(a-2*b>0) cout << a-2*b << endl;
      |                                ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << 0 << endl;
      |        ^~~~
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |   else cout << 0 << endl;
      |                     ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define ff(ii,nn,mm) for(int ii=nn;ii<mm;ii++)
#define i64 int64_t
#define tos(x) to_string(x)

int main() {
	int a,b;
  cin>.a>>b;
  int ans=a-2*b;
  if(ans<0){
    ans=0;
  }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected primary-expression before '.' token
   10 |   cin>.a>>b;
      |       ^
Language: C++

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

int main()
{
	int N;
	cin >> N;

	vector<string> S(N);
	for (int i = 0; i > N; i++) cin >> S.at(i);

	int ans;
	int m = 0;
	for(i=0;i<N;i++){
      if(S.at(i) != S.at(i+1)) ans++
    }
        
	cout << ans;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'i' was not declared in this scope
   14 |         for(i=0;i<N;i++){
      |             ^
a.cc:15:37: error: expected ';' before '}' token
   15 |       if(S.at(i) != S.at(i+1)) ans++
      |                                     ^
      |                                     ;
   16 |     }
      |     ~
Language: Java

import java.util.Scanner;

public class contest {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		if(2*b > a) {
			System.out.println(0); 
		}
		else System.out.println(a - 2*b);
	}
}


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

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

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

int main()
{
    int A,B;
    cin >> A,B;

    if(A > 2 * B){
        cout << A - 2 * B << endl;
    }else if{
        cout << 0 << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected '(' before '{' token
   11 |     }else if{
      |             ^
      |             (
Language: C

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

int main() {
    int A,B,C;

    C = A - (B*2);
    if(A<B*2){
        printf("0.%d");
    }
else{
        C = A - (B*2);
        printf("C.%f");
}
    


    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define M 1000000007
typedef long long ll;
int main() { 
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    ll t,a[1000000],n,i;
    cin>>t>>n;
    cout<<max(0,t-2*n);
    return 0;
}


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

using namespace std;
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define M 1000000007
typedef long long ll;
int main() { 
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    ll t,a[1000000],n,i;
    cin>>t>>n;
    cout<<max(0,t-2*n);
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'ios_base' has not been declared
    9 |     ios_base::sync_with_stdio(0);
      |     ^~~~~~~~
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin.tie(0);
      |     ^~~
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:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<max(0,t-2*n);
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:11: error: 'max' was not declared in this scope
   13 |     cout<<max(0,t-2*n);
      |           ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define M 1000000007
typedef long long ll;
int main() { 
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    ll t,a[1000000],n,i;
    cin>>t>>n;
    cout<<max(0,t-2*n)
    return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: unable to find numeric literal operator 'operator""b'
    8 |   if (a > 2b){
      |           ^~
a.cc:9:11: error: unable to find numeric literal operator 'operator""b'
    9 |   res = a-2b;
      |           ^~
Language: C++

#include <iostream>
using namespace std;
int main ()
{
    	
    ll X, Y; cin >> X >> Y;
    if ((X+Y)%3 != 0) {
        cout << 0 << endl; return 0;
    }
 
    if (max(X, Y) > 2*min(X, Y)) {
        cout << 0 << endl; return 0;
    }
    int K=(X+Y)/3;
    X -= (X+Y)/3; Y -= K;
    
    cout << choose(X+Y, X) << endl;
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'll' was not declared in this scope
    6 |     ll X, Y; cin >> X >> Y;
      |     ^~
a.cc:6:21: error: 'X' was not declared in this scope
    6 |     ll X, Y; cin >> X >> Y;
      |                     ^
a.cc:6:26: error: 'Y' was not declared in this scope
    6 |     ll X, Y; cin >> X >> Y;
      |                          ^
a.cc:17:13: error: 'choose' was not declared in this scope
   17 |     cout << choose(X+Y, X) << endl;
      |             ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'if'
    7 |  c = a - b*2
      |             ^
      |             ;
    8 |    if(c > 0){
      |    ~~
Language: C++

#include <iostream>
#include <string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:13: error: expected ';' before 'if'
    7 |  c = a - b*2
      |             ^
      |             ;
    8 |    if(c > 0){
      |    ~~        
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << 0;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~