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

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

#define ll long long int
#define str string

ll MOD = 1000000007, INFL = 1ll << 60, INF = 1 << 30, mod = 1e9 + 7, Max = INF, Min = -1;
ll a = 0, b = 0, c = 0, n = 0, m=0,k=0,sum = 0,MASK=0;
ll A[500000] = {}, B[500000] = {}, X[1500][13],rui[500000] = {},dp[1<<12] = {};
int dy[] = { 0, 0, 1, -1 }, dx[] = { 1, -1, 0, 0 };
vector <ll> v;
str S, T;
bool check = true, check2 = false;

template<class T> inline bool chmin(T& a, T b) {
	if (a > b) {
		a = b;
		return true;
	}
	return false;
}
template<class T> inline bool chmax(T& a, T b) {
	if (a < b) {
		a = b;
		return true;
	}
	return false;
}

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

	return 0;
}


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

int a,b,c;
	cin >> a ;
	cin >> b ;
	c = a-b*2;
	
	cout << (c > 0 ? c : 0);
	
	return 0;

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >> a ;
      |         ^~~
a.cc:3:9: error: 'cin' does not name a type
    3 |         cin >> b ;
      |         ^~~
a.cc:4:9: error: 'c' does not name a type
    4 |         c = a-b*2;
      |         ^
a.cc:6:9: error: 'cout' does not name a type
    6 |         cout << (c > 0 ? c : 0);
      |         ^~~~
a.cc:8:9: error: expected unqualified-id before 'return'
    8 |         return 0;
      |         ^~~~~~
Language: C++

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

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

a,b=gets.chomp.split(" ").map(&:to_i)
p = a-b*2 <= 0 ? 0 : a-b*2
puts(p)

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b=gets.chomp.split(" ").map(&:to_i)
      | ^
Language: C++

#include<iostream>
using namespace std;

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

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

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: ';' expected
    int a = sc.nextInt()
                        ^
Main.java:7: error: ';' expected
    int b = sc.nextInt()
                        ^
2 errors
Language: Java

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

public class Main {

  public static void main(String[] args) {
    // たこ焼きのパラメータ取得用リスト
    List<Integer> takoyakiParam = new ArrayList<Integer>();
    
    // 回復量の合計
    Long sum = 0;
    
    Scanner scanner = new Scanner(System.in);
    // 指定されたたこ焼きの個数を格納する
    int cnt = scanner.nextInt();
    
    // たこ焼きのパラメータをリストに格納する
    for (int i = 1; i <= cnt; i++){
      int num = scanner.nextInt();
      takoyakiParam.add(num);
    }
    
    // 体力の回復量の計算
    for (int x = 0; x < takoyakiParam.size(); x++){
      for (int y = 0; y < takoyakiParam.size(); y++){
        if(x >= y){
          continue;
        }
        sum += (takoyakiParam.get(x) * takoyakiParam.get(y));
      }
    }
    // 回復量の出力
  System.out.println(sum);
  }
}

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to Long
    Long sum = 0;
               ^
1 error
Language: C++

#include<iostream>

int main() {
	int a, b
	std::cin << a << b;

	if (a - b * 2 > 0) {
		std::cout << a - b * 2;
	}
	else {
		std::cout << 0;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'std'
    5 |         std::cin << a << b;
      |         ^~~
a.cc:7:17: error: 'b' was not declared in this scope
    7 |         if (a - b * 2 > 0) {
      |                 ^
Language: C++

        #include<iostream>
        #include<vector>
        using namespace std;
         
        int main()
        {
        int n,t,sum=0;
          cin>>n;
          vector<int> tnk;
          for(int i=0;i<n;i++)
          {
          cin>>t;
          tnk.push_back(t);
          }
          for(int i=0;i<n;i++){
            for(int j=i+1;j<n;j++)
            {
            sum+=tnk[i]*tnk[j]
            }}
          cout<<sum;
          return 0;
        }

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

    #include<iostream>
    #include<vector>
    using namespace std;
     
    int main()
    {
    int n,t,sum=0;
      cin>>n;
      vector<int> tnk;
      for(int i=0;i<n;i++)
      {
      cin>>t;
      tnk.push_back(t);
      }
      for(int i=0;i<n;i++)
        for(int j=i+1;j<n;j++)
        {
        sum+=tnk[i]*tnk[j]
        }
      cout<<sum;
      return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:27: error: expected ';' before '}' token
   18 |         sum+=tnk[i]*tnk[j]
      |                           ^
      |                           ;
   19 |         }
      |         ~
Language: C++

#include<iostream>

int main()
{
int a,b;
  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: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:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(2*b>a)     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:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else 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 <bits/stdc++.h>
using namespace std;

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:1: error: expected declaration or statement at end of input
   10 | }
      | ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
    int A,B;
    scanf("%d %d",&A,&B);
    printf("%d\n",max(0,A-B-B));
    return 0;
}

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

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

int main() {
  int A, B, ans;
  cin >> A >> B;
  ans = max(0, A - 2 * B);
  cout << ans << end1;
  return 0;
}

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

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

int main() {
    int n;
    cin >> n;
    vector<int> L(n);
    rep(i, n) cin >> L[i];
    sort(L.begin(), L.end()); // 入力を昇順にソート
    rep(b, n)rep(a, b) { // a と b を固定する
        int ab = L[a] + L[b];
        int r = lower_bound(L.begin(), L.end(), ab) - L.begin(); // L の中で ab 以上になる最初の要素
        int l = b + 1;
        // c = [l, r)
        ans += max(0, r-l);
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |         ans += max(0, r-l);
      |         ^~~
      |         abs
a.cc:19:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> 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
      |                  ^~~
Language: C++

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

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

#include <queue>
#include <iostream>
#include <map>
#include <algorithm>
#include <cmath>
#define rep(i, n) for(long long i = 0;(i) < (n);(i)++)
using namespace std;
using ll = long long;

ll A, B;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:31: error: expected primary-expression before '>' token
   15 |         ll ans = (A - B * 2 = > 0) ? A - B * 2 : 0;
      |                               ^
Language: C++

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

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

main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'x' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'y' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:25: error: 'a' undeclared (first use in this function)
    1 | main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}
      |                         ^
main.c:1:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:28: error: 'b' undeclared (first use in this function)
    1 | main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}
      |                            ^
main.c:1:44: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}
      |                                            ^~~~~~
main.c:1:44: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:44: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:44: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:69: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    1 | main(x,y){scanf("%d%d",&a,&b);if(a-2*b>=0){printf("%d",a-2*b);}else{printf("0");}}
      |                                                                     ^~~~~~
main.c:1:69: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: expected initializer before 'scanf'
    4 |   scanf("%d %d", &a, &b);
      |   ^~~~~
a.cc:5:22: error: 'b' was not declared in this scope
    5 |   printf("%d\n", a-2*b);
      |                      ^
Language: C++

int main() {
	int a[2];
	for (int i = 0; i < 2; ++i) {
  		scanf("%d", &a[i]);
	}
	int b = a[0]-2*a[1];
  	if(b>0){
		printf("%d",b);
  	}else{
    	printf("%d",0);
  	}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'scanf' was not declared in this scope
    4 |                 scanf("%d", &a[i]);
      |                 ^~~~~
a.cc:8:17: error: 'printf' was not declared in this scope
    8 |                 printf("%d",b);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
a.cc:10:9: error: 'printf' was not declared in this scope
   10 |         printf("%d",0);
      |         ^~~~~~
a.cc:10:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main() {
	int a[2];
	for (int i = 0; i < 2; ++i) {
  		scanf("%d", &a[i]);
	}
	int ans = a[0]-2*a[1];
  	if(ans>0){
		printf("%d",ans);
  	}else{
    	printf("0");
  	}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'scanf' was not declared in this scope
    4 |                 scanf("%d", &a[i]);
      |                 ^~~~~
a.cc:8:17: error: 'printf' was not declared in this scope
    8 |                 printf("%d",ans);
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
a.cc:10:9: error: 'printf' was not declared in this scope
   10 |         printf("0");
      |         ^~~~~~
a.cc:10:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main() {
int a[2];
for (int i = 0; i < 2; ++i) {
  scanf("%d", &a[i]);
}
int ans = a[0]-2*a[1];
  if(ans>0){
printf("%d",ans);
  }else{
    printf("0");
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d", &a[i]);
      |   ^~~~~
a.cc:8:1: error: 'printf' was not declared in this scope
    8 | printf("%d",ans);
      | ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
a.cc:10:5: error: 'printf' was not declared in this scope
   10 |     printf("0");
      |     ^~~~~~
a.cc:10:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <cstdio>
int main() {
int a[2];
for (int i = 0; i < 2; ++i) {
  scanf("%d", &a[i]);
}
printf(a[0]-2*a[1]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    7 | printf(a[0]-2*a[1]);
      |        ~~~~^~~~~~~
      |            |
      |            int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include <cstdio>
int main() {
int a[];
for (int i = 0; i < n; ++i) {
  scanf("%d", &a[i]);
}
printf(a[0]-2*a[1]);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: storage size of 'a' isn't known
    3 | int a[];
      |     ^
a.cc:4:21: error: 'n' was not declared in this scope
    4 | for (int i = 0; i < n; ++i) {
      |                     ^
Language: C++

#include <iostream>
using namespace std;

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


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

#include <bit/stdc++.h>

using namespace std;

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

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

#include <bit/stdc++.h>

using namespace std;

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

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d %d, &a,&b);
      |         ^
main.c:8:5: error: implicit declaration of function 'fprinf'; did you mean 'fprintf'? [-Wimplicit-function-declaration]
    8 |     fprinf("stdout", 0);
      |     ^~~~~~
      |     fprintf
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
inline ll read(){
	ll res=0,f=1;
	char ch=getchar();
	while(ch<'0'||ch>'9'){if(ch=='-')f=-f;ch=getchar();}
	while(ch>='0'&&ch<='9'){res=(res<<3)+(res<<1)+ch-'0';ch=getchar();}
	return res*f;
}
void write(ll x){
	if(x<0) putchar('-'),x=-x;
	if(x>9) write(x/10);
	putchar(x%10|'0');
}
int a,b;

signed main(){
	a=read(),b=read();
	cout<<max(a-2*b,0)<<endl;
}


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

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define mp make_pair
#define F first
#define S second
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define INF 0x3f3f3f3f
#include<ext/rope>
using namespace __gnu_cxx;
typedef long long ll;
typedef pair<ll,ll> pii;
typedef pair<double,double> pdd;
ll a,b;
int main()
{
    //IOS;
    while(cin>>a>>b)
    {
        cout<<max(0,a-2*b)<<'\n';
    }
    return 0;
}



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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:10: error: 'cin' is not a member of 'std'
    4 |     std::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 | int main()
a.cc:5:10: error: 'cout' is not a member of 'std'
    5 |     std::cout << std::max(A - 2 * B,0) << std::endl;
      |          ^~~~
a.cc:5:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:23: error: 'max' is not a member of 'std'
    5 |     std::cout << std::max(A - 2 * B,0) << std::endl;
      |                       ^~~
a.cc:5:48: error: 'endl' is not a member of 'std'
    5 |     std::cout << std::max(A - 2 * B,0) << std::endl;
      |                                                ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main()
Language: C++

using System;
using System.Linq;
using static System.Math;

class Program
{
    static void Main()
    {
        var v = Console.ReadLine().Split().Select(int.Parse).ToArray();
        Console.WriteLine(Max(v[0] - v[1] * 2, 0));
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'static'
    3 | using static System.Math;
      |       ^~~~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main()':
a.cc:9:9: error: 'var' was not declared in this scope
    9 |         var v = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |         ^~~
a.cc:10:9: error: 'Console' was not declared in this scope
   10 |         Console.WriteLine(Max(v[0] - v[1] * 2, 0));
      |         ^~~~~~~
a.cc:10:31: error: 'v' was not declared in this scope
   10 |         Console.WriteLine(Max(v[0] - v[1] * 2, 0));
      |                               ^
a.cc:10:27: error: 'Max' was not declared in this scope
   10 |         Console.WriteLine(Max(v[0] - v[1] * 2, 0));
      |                           ^~~
Language: C++

//ALL GLORY TO JESUS CHRIST 
#include <bits/stdc++.h>
using namespace std;

typedef unsigned long long ull;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;
typedef vector<pii> vii;
typedef vector<vector<int>> vvi;

#define clr(a, b) memset(a, b, sizeof(a))
#define pb push_back
#define frpn(x) freopen(#x ".in","r",stdin);freopen(#x ".out","w",stdout);
#define all(a) a.begin(), a.end()
#define mkp make_pair
#define forn(i, n) for(int i=0; i<(int)(n); ++i)
#define forab(i, a, b) for(int i=(int)(a); i<=(int)(b); ++i)
#define fornd(i, n) for(int i=(int)(n-1); i>=0; --i)
#define FOR(it,c) for ( __typeof((c).begin()) it=(c).begin(); it!=(c).end(); it++ )

const int MOD = (int)1e9+7;

template <class T>
inline void rem(T &n){
   n = (-MOD <= n && n <= MOD) ? n : n%MOD ;
  if(n < 0) n += MOD; 
}
//modular inverse
//inv(a,m) - inverse of a mod m
template <class T>
inline T inv(T a, T m){
 return 1<a ? m - inv(m%a, a)*m/a : 1;
}

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
#ifdef LOCAL
    clock_t tStart = clock();
#endif
    int w, a;
    cin >> w >> a;
    cout << max(0, w - 2*a) << "\n"    
#ifdef LOCAL
    cerr << "Time elapsed: " << 1.0 * (clock() - tStart)/ CLOCKS_PER_SEC << " s.\n";
#endif
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:36: error: expected ';' before 'return'
   44 |     cout << max(0, w - 2*a) << "\n"
      |                                    ^
      |                                    ;
......
   48 |     return 0;
      |     ~~~~~~
Language: C++

use std::io::*;
use std::str::FromStr;

fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("failed to read char") as char)
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}

fn main() {
    let a: i32 = read();
    let b: i32 = read();
    println!("{}", if a - 2 * b > 0 { a - 2 * b } else { 0 });
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn read<T: FromStr>() -> T {
      | ^~
a.cc:16:1: error: 'fn' does not name a type
   16 | fn main() {
      | ^~
Language: C++

///                ..:: In The Name Of God ::..
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define endl    '\n'
#define INF 2e9
#define int ll
#define vi          vector<int>
#define de          deque<int>
#define SZ(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()//全範囲指定を簡略化
typedef long long ll;
using namespace std;
//配列の要素数は　sizeof(ar)/sizeof(ar[0]) で求める
signed main(){
cin.tie(0);
cout.tie(0);
ios::sync_with_stdio(false);
int A,B;
cin>>A>>B;

if(A-B*2<0){
    cout << "0"<< \n;
}
else{
    cout << A-B*2 << \n;
}

return 0;
}

Compiler output:
a.cc:24:19: error: stray '\' in program
   24 |     cout << "0"<< \n;
      |                   ^
a.cc:27:22: error: stray '\' in program
   27 |     cout << A-B*2 << \n;
      |                      ^
a.cc: In function 'int main()':
a.cc:24:20: error: 'n' was not declared in this scope
   24 |     cout << "0"<< \n;
      |                    ^
a.cc:27:23: error: 'n' was not declared in this scope
   27 |     cout << A-B*2 << \n;
      |                       ^
Language: C++

import java.util.*;

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

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>
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<string>
#include<numeric>
#include<vector>
#include<set>
#include<map>
#include<stack>
#include<queue>
using namespace std;

#define MAX_N 100000000
#define INF 100000000000000

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:20:3: error: expected initializer before 'cin'
   20 |   cin >> a >> b;
      |   ^~~
a.cc:21:19: error: 'b' was not declared in this scope
   21 |   cout << max(a-2*b,0) << endl;
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<max(0,a-2*b)<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:9: error: 'max' was not declared in this scope; did you mean 'std::max'?
    5 |   cout<<max(0,a-2*b)<<endl;
      |         ^~~
      |         std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:5:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout<<max(0,a-2*b)<<endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

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

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

    return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: Java

import java.util.Scanner;

public class Main{
  Scanner ob = new Scanner(System.in);
  int A = Integer.parseInt(ob.nextLine());
  int B = Integer.parseInt(ob.nextLine());
  
  if(A <= 2*B)
    System.out.println("0");
  else
    System.out.println(A-2*B);
}

Compiler output:
Main.java:8: error: illegal start of type
  if(A <= 2*B)
  ^
Main.java:8: error: <identifier> expected
  if(A <= 2*B)
      ^
Main.java:8: error: <identifier> expected
  if(A <= 2*B)
             ^
Main.java:9: error: <identifier> expected
    System.out.println("0");
                      ^
Main.java:9: error: illegal start of type
    System.out.println("0");
                       ^
Main.java:10: error: illegal start of type
  else
  ^
Main.java:11: error: <identifier> expected
    System.out.println(A-2*B);
                      ^
Main.java:11: error: <identifier> expected
    System.out.println(A-2*B);
                        ^
8 errors
Language: C++

int a = in.nextInt(), b = in.nextInt();
out.println(Math.max(0, a - 2 * b));

Compiler output:
a.cc:1:9: error: 'in' was not declared in this scope; did you mean 'int'?
    1 | int a = in.nextInt(), b = in.nextInt();
      |         ^~
      |         int
a.cc:2:1: error: 'out' does not name a type
    2 | out.println(Math.max(0, a - 2 * b));
      | ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected ';' before 'cout'
   15 |     C == A - B * 2
      |                   ^
      |                   ;
   16 |     cout << C << endl;
      |     ~~~~
Language: C++

#inlcude<iostream>
using namespace std;

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

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

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

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


Compiler output:
a.cc:1:2: error: extended character 〈 is not valid in an identifier
    1 | #include〈bits/stdc++.h〉
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003008bits
    1 | #include〈bits/stdc++.h〉
      |  ^~~~~~~~~~~~~
a.cc:1:23: error: extended character 〉 is not valid in an identifier
    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:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include〈bits/stdc++.h〉
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<max(0,a-2*b)<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:9: error: 'max' was not declared in this scope
    7 |   cout<<max(0,a-2*b)<<endl;
      |         ^~~
a.cc:7:23: error: 'endl' was not declared in this scope
    7 |   cout<<max(0,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〈bits/stdc++.h〉
Language: C++

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

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

Compiler output:
a.cc:1:2: error: extended character 〈 is not valid in an identifier
    1 | #include〈bits/stdc++.h〉
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003008bits
    1 | #include〈bits/stdc++.h〉
      |  ^~~~~~~~~~~~~
a.cc:1:23: error: extended character 〉 is not valid in an identifier
    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:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include〈bits/stdc++.h〉
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<min(0,a-2*b)<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:9: error: 'min' was not declared in this scope; did you mean 'main'?
    7 |   cout<<min(0,a-2*b)<<endl;
      |         ^~~
      |         main
a.cc:7:23: error: 'endl' was not declared in this scope
    7 |   cout<<min(0,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〈bits/stdc++.h〉
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'prinhtf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     prinhtf("%d\n",2*b-a);}
      |     ^~~~~~~
      |     printf
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	string a;
	cin>>a;
	int b=0;
	for(int i=0;i<a.sizeof()-1;i++){
		if(a[i]==a[i+1]){
			a[i]=0;
			}
	}
	for(int i=0;i<a.sizeof();i++){
		if(a[i]!=0){
			b++;
		}
	} 
	cout<<b; 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected unqualified-id before 'sizeof'
    7 |         for(int i=0;i<a.sizeof()-1;i++){
      |                         ^~~~~~
a.cc:7:25: error: expected ';' before 'sizeof'
    7 |         for(int i=0;i<a.sizeof()-1;i++){
      |                         ^~~~~~
      |                         ;
a.cc:7:32: error: expected primary-expression before ')' token
    7 |         for(int i=0;i<a.sizeof()-1;i++){
      |                                ^
a.cc:7:35: error: expected ')' before ';' token
    7 |         for(int i=0;i<a.sizeof()-1;i++){
      |            ~                      ^
      |                                   )
a.cc:7:36: error: 'i' was not declared in this scope
    7 |         for(int i=0;i<a.sizeof()-1;i++){
      |                                    ^
a.cc:12:25: error: expected unqualified-id before 'sizeof'
   12 |         for(int i=0;i<a.sizeof();i++){
      |                         ^~~~~~
a.cc:12:25: error: expected ';' before 'sizeof'
   12 |         for(int i=0;i<a.sizeof();i++){
      |                         ^~~~~~
      |                         ;
a.cc:12:32: error: expected primary-expression before ')' token
   12 |         for(int i=0;i<a.sizeof();i++){
      |                                ^
a.cc:12:33: error: expected ')' before ';' token
   12 |         for(int i=0;i<a.sizeof();i++){
      |            ~                    ^
      |                                 )
Language: C++

#include <cstdio>

int main() {
    int A, B;
    scanf_s("%d %d", &A, &B);
    int tmp = A - B * 2;
    if (tmp <= 0) {
        printf("0\n");
    } else {
        printf("%d\n", tmp);
    }
}

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