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

#include<iostream>

using namespace std;
  
int main(
  {long long n,m;
    cin >> n >> m;
    n = n - 2*m;
    if(n <= 0)
      {
      cout << "0" << endl;
      }
    else cout << n << endl;
   }
   

Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main(
      |     ^~~~
a.cc:6:4: error: expected primary-expression before 'long'
    6 |   {long long n,m;
      |    ^~~~
a.cc:6:4: error: expected '}' before 'long'
    6 |   {long long n,m;
      |   ~^~~~
a.cc:6:4: error: expected ')' before 'long'
    6 |   {long long n,m;
      |    ^~~~
      |    )
a.cc:5:9: note: to match this '('
    5 | int main(
      |         ^
a.cc:6:16: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |   {long long n,m;
      |                ^
      |                tm
a.cc:7:5: error: 'cin' does not name a type
    7 |     cin >> n >> m;
      |     ^~~
a.cc:8:5: error: 'n' does not name a type
    8 |     n = n - 2*m;
      |     ^
a.cc:9:5: error: expected unqualified-id before 'if'
    9 |     if(n <= 0)
      |     ^~
a.cc:13:5: error: expected unqualified-id before 'else'
   13 |     else cout << n << endl;
      |     ^~~~
a.cc:14:4: error: expected declaration before '}' token
   14 |    }
      |    ^
Language: C++

#inlude <stdio.h>

int main(void)
{
	int a,b,c;
	scanf("%d %d",&a,&b);
	c = a - b * 2;
	if (c >= 0){
		c = 0;
	}
	printf("%d",c);
	
	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d %d",&a,&b);
      |         ^~~~~
a.cc:11:9: error: 'printf' was not declared in this scope
   11 |         printf("%d",c);
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #inlude <stdio.h>
Language: Java

package abc143;

import java.util.Scanner;

public class ABC143A {

public static void main(String args[]) {

Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b_in = sc.nextInt();
int b =2 * b_in;
  
int result = 0;
  
  if(b <= a){
    result = a - b;
  }
  
System.out.println(result);
}
}


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

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

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

Compiler output:
a.cc:8:16: error: extended character 　 is not valid in an identifier
    8 |     cin >> a >>　b;
      |                ^
a.cc: In function 'int main()':
a.cc:8:16: error: '\U00003000b' was not declared in this scope
    8 |     cin >> a >>　b;
      |                ^~~
Language: C++

#include<stdio.h>

int main(void)
{
	int a, b;
	//aはカーテンの横幅

	//入力
	scanf_s("%d %d", &a, &b);

	if (b * 2 >= a) {
		printf_s("0");
	}
	else {
		printf_s("%d\n", a - b * 2);
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%d %d", &a, &b);
      |         ^~~~~~~
      |         scanf
a.cc:12:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   12 |                 printf_s("0");
      |                 ^~~~~~~~
      |                 printf
a.cc:15:17: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   15 |                 printf_s("%d\n", a - b * 2);
      |                 ^~~~~~~~
      |                 printf
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main (){
  int 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:7:20: error: expected ';' before ':' token
    7 |     cout<<"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 << endl;
    }
    else {
        cout << "0" << endl;
    }    
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include iostream
      |          ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     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 | #include iostream
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << A - 2*B << endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:28: error: 'endl' was not declared in this scope
   10 |         cout << A - 2*B << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include iostream
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "0" << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:24: error: 'endl' was not declared in this scope
   13 |         cout << "0" << endl;
      |                        ^~~~
a.cc:13:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include iostream

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:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include iostream
      |          ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     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 | #include iostream
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << A - 2*B << endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:28: error: 'endl' was not declared in this scope
   10 |         cout << A - 2*B << endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include iostream
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << 0 << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |         cout << 0 << endl;
      |                      ^~~~
a.cc:13:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <cstdio>

int a, b;

int main(int argc, const char *argv[])
{
  scanf("%d%d", &a, &b);
  return 0 & printf("%d\n", std::max(0, a - 2 * b));
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:34: error: 'max' is not a member of 'std'
    8 |   return 0 & printf("%d\n", std::max(0, a - 2 * b));
      |                                  ^~~
Language: Java

public class Main {
	public static void main(String[] args) {

		try {
			BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));

			String[] x = bf.readLine().trim().split(" ");;
			int a = Integer.parseInt(x[0]);
			int b = Integer.parseInt(x[1]);
			
			int c = a - b * 2;
			if ( c< 0 ) c=0;
			System.out.println(c);
		}catch(Exception e) {
			
		}
	}
}


Compiler output:
Main.java:5: error: cannot find symbol
			BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
			                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
			                                           ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: C

#include <stdio.h>
 
int main(void){
  int A,B=0;
  A=getchar();
  B=getchar();
  if(A<B*2){
  printf("0");
  }
  else
    print("%d",A-2*B);
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |     print("%d",A-2*B);
      |     ^~~~~
      |     printf
Language: Java

import java.util.*;

public class Main {

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


Compiler output:
Main.java:16: error: reached end of file while parsing
	}
	 ^
1 error
Language: C++

include <bits/stdc++.h>

using namespace std;
int main(){
    int a,b,c;
  cin>>a>>b;
  if((2*b)>=a)cout<<0<<'\n';
  else{c=(2*b)-a;
       cout<<c<<'\n';
  }
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc: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((2*b)>=a)cout<<0<<'\n';
      |               ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |        cout<<c<<'\n';
      |        ^~~~
Language: C

#include<stdio.h>
int main()
{
	int n,m;
	while(~scanf("%d%d",&n,&m)){
		t=n-m*2;
		if(t>=0){
			printf("%d\n",t);
		}else{
			printf("0\n");
		}
	}
} 

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

#include<iostream>
#include<string>
#include<vector>
#include<cmath>
#include<math.h>
#include<stdio.h>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	if (a > b * 2) {
		cout << a - b * 2 << endl;
	}
	else {
		cout << "0" << endl;
	}
}#include<iostream>
#include<string>
#include<vector>
#include<cmath>
#include<math.h>
#include<stdio.h>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	if (a > b * 2) {
		cout << a - b * 2 << endl;
	}
	else {
		cout << "0" << endl;
	}
}

Compiler output:
a.cc:17:2: error: stray '#' in program
   17 | }#include<iostream>
      |  ^
a.cc:17:3: error: 'include' does not name a type
   17 | }#include<iostream>
      |   ^~~~~~~
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main() {
      |     ^~~~
a.cc:8:5: note: 'int main()' previously defined here
    8 | int main() {
      |     ^~~~
Language: C++

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

int main() {
  int A,B;
  cin>>A>>B;
   int C=A-B*2;
  	if (C>0){
      cout<<C;
    }
  	else{ cout<<'0';
        }
}
    
提出情報

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before '}' token
    9 |       cout<<C
      |              ^
      |              ;
   10 |     }
      |     ~         
a.cc: At global scope:
a.cc:18:5: error: redefinition of 'int main()'
   18 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:29:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   29 | 提出情報
      | ^~~~~~~~
Language: C

#include <stdio.h>
 
int main(void){
  int A,B=0;
  A=getchar();
  B=getchar();
  if(A<B*2){
  print(0);
  }
  else
    print(A-2B);
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |   print(0);
      |   ^~~~~
      |   printf
main.c:11:13: error: invalid suffix "B" on integer constant
   11 |     print(A-2B);
      |             ^~
Language: C++

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

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

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

#include<iostream>

using namespace std;

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


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

#include<stdio.h>
int main()
{
	int n,m;
	while(~scanf("%d%d",&n,&m)){
		t=n-m*2;
		if(t>=0){
			printf("%d\n",t);
		}else{
			printf("0\n");
		}
	}
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 't' was not declared in this scope
    6 |                 t=n-m*2;
      |                 ^
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.nextInt();
c = 2*b;
if(c>a){
System.out.println(0);
}
else{
System.out.println(a-c);
}
}
}

Compiler output:
Main.java:7: error: cannot find symbol
c = 2*b;
^
  symbol:   variable c
  location: class Main
Main.java:8: error: cannot find symbol
if(c>a){
   ^
  symbol:   variable c
  location: class Main
Main.java:12: error: cannot find symbol
System.out.println(a-c);
                     ^
  symbol:   variable c
  location: class Main
3 errors
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before '}' token
    9 |       cout<<C
      |              ^
      |              ;
   10 |     }
      |     ~
Language: C++

// https://atcoder.jp/contests/abc143/tasks/abc143_a
#define CIN_ONLY
#define DECIMAL_DIGITS 10
#define STATIC_MOD 1e9 + 7

#ifdef BTK
/*<head>*/
#    include "Template.hpp"
/*</head>*/
#else
/*<body>*/
/*</body>*/
#endif

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'cin' was not declared in this scope
   18 |     cin >> A >> B;
      |     ^~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << max(0, A - 2 * B) << endl;
      |     ^~~~
a.cc:19:13: error: 'max' was not declared in this scope
   19 |     cout << max(0, A - 2 * B) << endl;
      |             ^~~
a.cc:19:34: error: 'endl' was not declared in this scope
   19 |     cout << max(0, A - 2 * B) << endl;
      |                                  ^~~~
Language: C++

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

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

package abc137;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

// TODO
// TLEでNG
public class ABC137C {

public static void main(String args[]) {

Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b_in = sc.nextInt();
int b =2 * b_in;
  
int result = 0;
  
  if(b <= a){
    result = a - b;
  }
  
System.out.println(result);
}
}

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

>+[->,----------[<++++[>-----<-]>--[<++++[>----<-]+>>[<++++++++++>-]<[>+<-]]]<]<+[->,----------[<++++[>-----<-]>--[<++++[>----<-]+>>[<++++++++++>-]<[>+<-]]]<]>>[<++>-]<[>+<-]>[->-[>>+<]>[<]>-[+<<<[-]>>>]<<<]>[>---------[>>+<]>[<]>-[+>+<<<---------->>]<<++++++++++<-]>>>>[>++++++[<++++++++>-]<.[-]]<<++++++[<++++++++>-]<.

Compiler output:
a.cc:1:1: error: expected unqualified-id before '>' token
    1 | >+[->,----------[<++++[>-----<-]>--[<++++[>----<-]+>>[<++++++++++>-]<[>+<-]]]<]<+[->,----------[<++++[>-----<-]>--[<++++[>----<-]+>>[<++++++++++>-]<[>+<-]]]<]>>[<++>-]<[>+<-]>[->-[>>+<]>[<]>-[+<<<[-]>>>]<<<]>[>---------[>>+<]>[<]>-[+>+<<<---------->>]<<++++++++++<-]>>>>[>++++++[<++++++++>-]<.[-]]<<++++++[<++++++++>-]<.
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for(ll i = 0; i < n; i++)
#define reps(i, n , m) for(ll i = n; i <= m; i++)
using namespace std;
using ll = long long;
using pii = pair<int,int>;
using pll = pair<ll,ll>;
using vi = vector<int>;
using vl = vector<ll>;
const int mod = 1000000007; 
long long inv[200000],fact[200000],ifact[200000];
long long comb(ll n, ll k){
	if(n<k)return 0;
	else if (n<0||k<0) return 0;
	else return fact[n] * ifact[k] % mod * ifact[n-k] % mod;
}
typedef long long ll;template<typename Typell>Typell G_C_D(Typell a, Typell b){if (a < 0) a = -a;if (b < 0) b = -b;while (b != 0) {a %= b;if (a == 0) return b;b %= a;}return a;}template<typename Typell>
Typell G_C_D(const std::vector<Typell> &list){Typell a = list[0];for (size_t i = 1; i < list.size(); ++i) {a = G_C_D(a, list[i]);}return a;}template<typename Typell>Typell L_C_M(Typell a, Typell b) {if( a == 0 && b == 0)return 0;return a / G_C_D(a, b) * b;}
template<typename Typell>Typell L_C_M(const std::vector<Typell> &list){Typell a = list[0];for (size_t i = 1; i < list.size(); ++i) {a = L_C_M(a, list[i]);}return a;}
 
int main(){
	ios::sync_with_stdio(false);cin.tie(0);
	/*inv[1] = fact[0] = fact[1] = ifact[0] = ifact[1] = 1; for (int i=2;i<200000;i++){ inv[i] = (mod - mod / i) * inv[mod % i] % mod; fact[i] = fact[i-1] * i % mod;ifact[i] = ifact[i-1] * inv[i] % mod;
	}*/ //nCr
	int A,B;
	cin>>A>>B;
	B=B*2;
	if(A>B) cout<<A-B<<endl;
	elsse cout<<0<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: 'elsse' was not declared in this scope
   29 |         elsse cout<<0<<endl;
      |         ^~~~~
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.nextInt();
c = 2*b;
if(c>a){
System.out.println(0);
}
else{
System.out.println(a-c);
}
}
}


Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
Main.java:4: error: ';' expected
Scanner sc = new Scanner(System.in)
                                   ^
2 errors
Language: C++

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

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

}

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

#include stdio.h

int main(void){
  if(A<B*2){
  print(0);
  }
  else
    print(A-2B);
}

Compiler output:
main.c:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include stdio.h
      |          ^~~~~
main.c: In function 'main':
main.c:4:6: error: 'A' undeclared (first use in this function)
    4 |   if(A<B*2){
      |      ^
main.c:4:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:8: error: 'B' undeclared (first use in this function)
    4 |   if(A<B*2){
      |        ^
main.c:5:3: error: implicit declaration of function 'print' [-Wimplicit-function-declaration]
    5 |   print(0);
      |   ^~~~~
main.c:8:13: error: invalid suffix "B" on integer constant
    8 |     print(A-2B);
      |             ^~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>w
#include<cmath>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	if (a - (b * 2) <= 0) {
		cout << "0" << endl;
	}
	else {
		cout << a - b * 2 << endl;
	}
	//cout << a - b * 2 << endl;
}

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

#include<bots/stdc++.h>
using namespace std;
int main() {
  scanf("%d%d",&a,&b);
  printf("%d",max(0,a-(b << 1)));
  return 0;
}

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

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


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

// ConsoleApplication6.cpp : このファイルには 'main' 関数が含まれています。プログラム実行の開始と終了がそこで行われます。
//

#include <iostream>
#include<stdio.h>

int main()
{
	int a, b;
	scanf("%d%d", &a, &b);
	if (a > b * 2) {

		printf("%d", a - 2 * b);
	}
	else {
		printf("0");
	}
}

// プログラムの実行: Ctrl + F5 または [デバッグ] > [デバッグなしで開始] メニュー
// プログラムのデバッグ: F5 または [デバッグ] > [デバッグの開始] メニュー

// 作業を開始するためのヒント: 
//    1. ソリューション エクスプローラー ウィンドウを使用してファイルを追加/管理します 
//   2. チーム エクスプローラー ウィンドウを使用してソース管理に接続します
//   3. 出力ウィンドウを使用して、ビルド出力とその他のメッセージを表示します
//   4. エラー一覧ウィンドウを使用してエラーを表示します
//   5. [プロジェクト] > [新しい項目の追加] と移動して新しいコード ファイルを作成するか、[プロジェクト] > [既存の項目の追加] と移動して既存のコード ファイルをプロジェクトに追加します
//   6. 後ほどこのプロジェクトを再び開く場合、[ファイル] > [開く] > [プロジェクト] と移動して .sln ファイルを選択します


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

#inculde<stdio.h>

int main()
{
  int x,a;
  scanf("%d %d",&x,&a);
  if(a*2>=x)
    printf("0\n");
  else
    printf("%d\n",x-2*a);
  return 0;
} 
  
  

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
    1 | #inculde<stdio.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf' was not declared in this scope
    6 |   scanf("%d %d",&x,&a);
      |   ^~~~~
a.cc:8:5: error: 'printf' was not declared in this scope
    8 |     printf("0\n");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #inculde<stdio.h>
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("%d\n",x-2*a);
      |     ^~~~~~
a.cc:10:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt() * 2;

        if (a >= b) {
            System.out.println((a-b));
        } else {
            System.out.println(0);
        }
        sc.close();
    }    
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

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

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

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

import java.util.Scanner;
import java.util.HashMap;
import java.util.TreeMap;
import java.util.Arrays;
import java.util.Stack;

public class qu {
		static  Scanner scn=new Scanner(System.in);
		static int count=0;
		public static void main(String[] args) {
			
			int n=scn.nextInt();
			int k=scn.nextInt();
			int ans=n-2*k;
			if(ans<0)
				System.out.println("0");
			else
				System.out.println(ans);
		}
		public static int gcd(int a,int b)
		{
			if(a==0)return b;
			int l= gcd(b%a,a);
			return l;
		}

		
}

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

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

Compiler output:
a.cc:10:16: warning: missing terminating " character
   10 |     cout<<a-c<<"\n;
      |                ^
a.cc:10:16: error: missing terminating " character
   10 |     cout<<a-c<<"\n;
      |                ^~~~
a.cc: In function 'int main()':
a.cc:11:3: error: expected primary-expression before 'return'
   11 |   return 0;
      |   ^~~~~~
Language: C++

#include<iostream>

using namespace std;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected ';' before '}' token
    8 |     printf("%d",ans)
      |                     ^
      |                     ;
    9 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll int64_t
const ll N = 1e6 + 5, M = 1e9 + 7;
int main()
{
    ios::sync_with_stdio(0), cin.tie(0);
    ll a, b;
    cin >> a >> b;
    cout << max(0ll, a - 2 * b);
}

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


if(A<B*2){
print(0);
}
else
  print(A-2B);


Compiler output:
main.c:2:1: error: expected identifier or '(' before 'if'
    2 | if(A<B*2){
      | ^~
main.c:5:1: error: expected identifier or '(' before 'else'
    5 | else
      | ^~~~
main.c:6:11: error: invalid suffix "B" on integer constant
    6 |   print(A-2B);
      |           ^~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:17: error: invalid suffix "b" on integer constant
    8 |         c = a % 2b;
      |                 ^~
main.c:9:18: error: invalid suffix "b" on integer constant
    9 |         if (a <= 2b) {
      |                  ^~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before ')' token
   10 |     else{ A <= 2*B){
      |                   ^
      |                   ;
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define all(x) (x).begin(),(x).end()
#define INF 10000000
using ll = long long ;
ll gcd(ll a, ll b) {
  if(b == 0) return a;
  return gcd(b, a % b);
}
template< int id > struct CompTupleBy
{
  template<class T> 
  bool operator()( const T& a, const T& b ) const {
    return std::get<id>(a) < std::get<id>(b);
  }
};

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: In function 'int main()':
a.cc:24:18: error: expected primary-expression before '}' token
   24 |     if (a <= 2*b)}{
      |                  ^
a.cc: At global scope:
a.cc:24:19: error: expected unqualified-id before '{' token
   24 |     if (a <= 2*b)}{
      |                   ^
a.cc:26:6: error: expected unqualified-id before 'else'
   26 |     }else{
      |      ^~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

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

int main(){

	cin >> A >> B;
  	cout << A - 2*B <<endl;

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected ';' before ':' token
   10 |      cout<<(2*b-a)<<"\n":
      |                         ^
      |                         ;
Language: C++

#include<stdio.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> a >> b;
      |         ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << max(a - 2*b, 0) << endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:17: error: 'max' was not declared in this scope
    9 |         cout << max(a - 2*b, 0) << endl;
      |                 ^~~
a.cc:9:36: error: 'endl' was not declared in this scope
    9 |         cout << max(a - 2*b, 0) << endl;
      |                                    ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<stdio.h>
  +++ |+#include <ostream>
    2 |
Language: Java

import java.util.*;

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


    System.out.println(c);
  }
}


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

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <utility>
#include <tuple>
#include <string>
#include <cctype>
#include <cstdio>
#include <math.h>
using i8 = int8_t;
using u8 = uint8_t;
using i16 = int16_t;
using u16 = uint16_t;
using i32 = int32_t;
using u32 = uint32_t;
using i64 = int64_t;
using u64 = uint64_t;
using f32 = float;
using f64 = double;
constexpr i64 INF = 1'010'000'000'000'000'017LL;
constexpr i64 MOD = 1'000'000'007LL;
constexpr f64 EPS = 1e-12;
constexpr f64 PI = 3.14159265358979323846;
const int AMAX = 100000; 
using namespace std;
#define rep(i, n) for (i64 i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (i64 i = m; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.begin(), x.end())
#define all(x) (x).begin(), (x).end()
#define fst first
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pob pop_back
#define sw swap
#define UP(x) transform(x.begin(), x.end(), x.begin(), ::toupper);
#define down(x) transform(x.begin(), x.end(), x.begin(), ::tolower);
using LL = long long;
using ULL = unsigned long long;
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return 1;
    }
    return 0;
}

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

Compiler output:
a.cc:13:12: error: 'uint8_t' does not name a type
   13 | using u8 = uint8_t;
      |            ^~~~~~~
a.cc:12:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   11 | #include <math.h>
  +++ |+#include <cstdint>
   12 | using i8 = int8_t;
a.cc:15:13: error: 'uint16_t' does not name a type
   15 | using u16 = uint16_t;
      |             ^~~~~~~~
a.cc:15:13: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc:17:13: error: 'uint32_t' does not name a type
   17 | using u32 = uint32_t;
      |             ^~~~~~~~
a.cc:17:13: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc:19:13: error: 'uint64_t' does not name a type
   19 | using u64 = uint64_t;
      |             ^~~~~~~~
a.cc:19:13: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc:71:2: error: expected unqualified-id before 'else'
   71 | }else{
      |  ^~~~
a.cc:74:1: error: expected declaration before '}' token
   74 | }
      | ^
Language: C++

#include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <string>
#include <array>
#include <cmath>
using namespace std;
using ll = long long;

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

	if (a >= b * 2)
		cout << a - b - b << endl;
	else
		cout << 0 << endl;

	return 0;
}

Compiler output:
a.cc:11:1: error: '::main' must return 'int'
   11 | void main() {
      | ^~~~
Language: C++

 <bits/stdc++.h>
using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll long long
#define ld long double
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define eb emplace_back
int main()
{
	SPEED
	int a, b;
	cin >> a >> b;
	if (2*b>=a)
	{
		cout << 0;
	}
	else
	{
		cout << a - (2*b);
	}
	return 0;
}

Compiler output:
a.cc:1:2: error: expected unqualified-id before '<' token
    1 |  <bits/stdc++.h>
      |  ^
a.cc: In function 'int main()':
a.cc:3:15: error: 'ios' has not been declared
    3 | #define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |               ^~~
a.cc:13:9: note: in expansion of macro 'SPEED'
   13 |         SPEED
      |         ^~~~~
a.cc:3:44: error: 'cin' was not declared in this scope
    3 | #define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                                            ^~~
a.cc:13:9: note: in expansion of macro 'SPEED'
   13 |         SPEED
      |         ^~~~~
a.cc:3:56: error: 'cout' was not declared in this scope
    3 | #define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
      |                                                        ^~~~
a.cc:13:9: note: in expansion of macro 'SPEED'
   13 |         SPEED
      |         ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define mod 1000000007
const int N=200005;

ll modulo(ll num,ll MOD=mod){ return ((num%MOD)+MOD)%MOD;} // for negative integer
ll power(ll b,ll e,ll MOD=mod){ll ans=1; while(e){if(e%2) ans=(ans*b)%MOD; b=(b*b)%MOD; e/=2;} return ans;}
 

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    /*#ifndef ONLINE_JUDGE
    // for getting input from input.txt
    freopen("input.txt", "r", stdin);
    // for writing output to output.txt
    freopen("output.txt", "w", stdout);
    #endif
    cout<<fixed<<setprecision(15);*/
    
    ll a,b;
    cin>>a>>b;
    cout<<max(0,a-2*b);
    
    return 0;
}

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

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

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

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

program ABC143A
    implicit none
    integer A,B
    read *,A,B
    print '(i0)',max(0,A-2*B)
end program ABC143A

Compiler output:
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print '(i0)',max(0,A-2*B)
      |           ^~~~~~
a.cc:1:1: error: 'program' does not name a type
    1 | program ABC143A
      | ^~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <string>
#include <array>
#include <cmath>
using namespace std;
using ll = long long;

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

	if (a >= b * 2)
		cout << a - b - b << endl;
	else
		cout << 0 << endl;


}

Compiler output:
a.cc:11:1: error: '::main' must return 'int'
   11 | void main() {
      | ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <utility>
#include <tuple>
#include <string>
#include <cctype>
#include <cstdio>
#include <math.h>
using i8 = int8_t;
using u8 = uint8_t;
using i16 = int16_t;
using u16 = uint16_t;
using i32 = int32_t;
using u32 = uint32_t;
using i64 = int64_t;
using u64 = uint64_t;
using f32 = float;
using f64 = double;
constexpr i64 INF = 1'010'000'000'000'000'017LL;
constexpr i64 MOD = 1'000'000'007LL;
constexpr f64 EPS = 1e-12;
constexpr f64 PI = 3.14159265358979323846;
const int AMAX = 100000; 
using namespace std;
#define rep(i, n) for (i64 i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (i64 i = m; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.begin(), x.end())
#define all(x) (x).begin(), (x).end()
#define fst first
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pob pop_back
#define sw swap
#define UP(x) transform(x.begin(), x.end(), x.begin(), ::toupper);
#define down(x) transform(x.begin(), x.end(), x.begin(), ::tolower);
using LL = long long;
using ULL = unsigned long long;
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return 1;
    }
    return 0;
}

int main()
{
    int a , b, c;
    string A, B, C;
    cin >> a>>b;
if(a>=(2*b)){
cout << v;
}else{
    cout << 0;
}
}

Compiler output:
a.cc:13:12: error: 'uint8_t' does not name a type
   13 | using u8 = uint8_t;
      |            ^~~~~~~
a.cc:12:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   11 | #include <math.h>
  +++ |+#include <cstdint>
   12 | using i8 = int8_t;
a.cc:15:13: error: 'uint16_t' does not name a type
   15 | using u16 = uint16_t;
      |             ^~~~~~~~
a.cc:15:13: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc:17:13: error: 'uint32_t' does not name a type
   17 | using u32 = uint32_t;
      |             ^~~~~~~~
a.cc:17:13: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc:19:13: error: 'uint64_t' does not name a type
   19 | using u64 = uint64_t;
      |             ^~~~~~~~
a.cc:19:13: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc: In function 'int main()':
a.cc:70:9: error: 'v' was not declared in this scope
   70 | cout << v;
      |         ^
Language: C++

#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
int acs(const void *a, const void *b) { return *(int *)a - *(int *)b; }                            /* 1,2,3,4.. */
int des(const void *a, const void *b) { return *(int *)b - *(int *)a; }                            /* 8,7,6,5.. */
int cmp_char(const void *a, const void *b) { return *(char *)a - *(char *)b; }                     /* a,b,c,d.. */
int cmp_str(const void *a, const void *b) { return strcmp(*(const char **)a, *(const char **)b); } /* aaa,aab.. */
#define min(a, b) (a < b ? a : b)
#define max(a, b) (a > b ? a : b)
#define rep(i, n) for (int i = 0; i < n; i++)
#define MAX 100001
#define MOD 1000000007

typedef long long int lli;

int main(void)
{
  int a, b;
  scanf("%d %d", &a, &b);

  int ans = max(a - 2 * b, 0)
      printf("%d\n", ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:7: error: expected ',' or ';' before 'printf'
   26 |       printf("%d\n", ans);
      |       ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namesapce std;
int main()
{
  int a,b;
  cin>>a>>b;
  if(2*b>=a)
     cout<<"0\n";
  else
     cout<<(2*b-a)<<"\n":
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>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:8:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |      cout<<"0\n";
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |      cout<<(2*b-a)<<"\n":
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  int A,B,C,D;
  string S,T;
  cin >> A >> B;
  C=A-2*B;
  D=0;
  if(C>0;){
    D=C;
  }
cout << D << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected primary-expression before ')' token
   10 |   if(C>0;){
      |          ^