criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;
public class Main1{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int num1 = A - (B*2);
    if(num1 >= 0){
      System.out.println(num1);
    }else{
      System.out.println("0");
    }
  }
}


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

import java.util.Scanner;
public class Main1{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    System.out.println("数値Aの入力");
    int A = sc.nextInt();
    System.out.println("数値Bの入力");
    int B = sc.nextInt();
    int num1 = A - (B*2);
    if(num1 >= 0){
      System.out.println(num1);
    }else{
      System.out.println("0");
    }
  }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected '}' before 'else'
    8 |     else{
      |     ^~~~
a.cc:6:19: note: to match this '{'
    6 |     if (a <= 2 *b){
      |                   ^
Language: C++

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

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    int A, B;
    int result = 0;
    cin >> A >> B;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: expected ';' before '}' token
   14 |         result = A - B*2
      |                         ^
      |                         ;
   15 |     }else{
      |     ~                    
a.cc:16:19: error: expected ';' before '}' token
   16 |         result = 0
      |                   ^
      |                   ;
   17 |     }
      |     ~
Language: C++

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

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    int A, B;
    cin >> A >> B;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'result' was not declared in this scope
   13 |         result = A - B*2
      |         ^~~~~~
a.cc:15:9: error: 'result' was not declared in this scope
   15 |         result = 0
      |         ^~~~~~
a.cc:17:13: error: 'result' was not declared in this scope
   17 |     cout << result;
      |             ^~~~~~
Language: C++

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

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

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

Compiler output:
a.cc:1:10: fatal error: iotstream: No such file or directory
    1 | #include <iotstream>
      |          ^~~~~~~~~~~
compilation terminated.
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 a;
    int b;
    
    cin >>a>>b;
    
    if(a-2*b>=0){
        cout << a-2*b <<endl;
    }
    
    else{
        
        cout << 0 <<endl;
    }
    
    
    
  
  return 0;
}

Compiler output:
a.cc:3:1: error: 'Using' does not name a type
    3 | Using namespace std;
      | ^~~~~
a.cc:4:1: error: 'Typedef' does not name a type; did you mean 'typedef'?
    4 | Typedef long long ll;
      | ^~~~~~~
      | typedef
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |     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:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout << 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:13:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         cout << 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)
      |     ^~~~
a.cc:18:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         cout << 0 <<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |         cout << 0 <<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |  std::cout << std::max(0,a - b * 2) << 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,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:15: error: 'max' was not declared in this scope; did you mean 'std::max'?
    4 |  std::cout << max(0,a - b * 2) << 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,
                 from a.cc:1:
/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:4:35: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |  std::cout << max(0,a - b * 2) << 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 <bits/stdc++.h>
using namespace std;
int main(){
  int A, B;
  scanf("%d %d", &A, &B);
  printf("%d\n", max(0, A-2*B);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: expected ')' before ';' token
    6 |   printf("%d\n", max(0, A-2*B);
      |         ~                     ^
      |                               )
Language: C++

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

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

#include<stdio.h>

int main(void){
 int a,j;
 scanf("%d ",&A);
 scanf("%d",&B);

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


Compiler output:
main.c: In function 'main':
main.c:5:15: error: 'A' undeclared (first use in this function)
    5 |  scanf("%d ",&A);
      |               ^
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:14: error: 'B' undeclared (first use in this function)
    6 |  scanf("%d",&B);
      |              ^
Language: C++

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

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

Compiler output:
a.cc:8:13: warning: missing terminating " character
    8 | else printf("%d\n,x-2*y);
      |             ^
a.cc:8:13: error: missing terminating " character
    8 | else printf("%d\n,x-2*y);
      |             ^~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected '(' before '{' token
   15 |   {
      |   ^
      |   (
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected '(' before '{' token
   15 |   {
      |   ^
      |   (
a.cc:20:3: error: 'return0' was not declared in this scope
   20 |   return0;
      |   ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'inta' was not declared in this scope; did you mean 'int'?
    7 |   inta,b,c;
      |   ^~~~
      |   int
a.cc:7:8: error: 'b' was not declared in this scope
    7 |   inta,b,c;
      |        ^
a.cc:7:10: error: 'c' was not declared in this scope
    7 |   inta,b,c;
      |          ^
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a>>b;
      |        ^
a.cc:15:3: error: expected '(' before '{' token
   15 |   {
      |   ^
      |   (
a.cc:20:3: error: 'return0' was not declared in this scope
   20 |   return0;
      |   ^~~~~~~
Language: C++

#include <cstdio>


using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'inta' was not declared in this scope; did you mean 'int'?
    7 |   inta,b,c;
      |   ^~~~
      |   int
a.cc:7:8: error: 'b' was not declared in this scope
    7 |   inta,b,c;
      |        ^
a.cc:7:10: error: 'c' was not declared in this scope
    7 |   inta,b,c;
      |          ^
a.cc:8:3: 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 <cstdio>
  +++ |+#include <iostream>
    2 | 
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a>>b;
      |        ^
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<c-a<<endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:16: error: 'endl' was not declared in this scope
   13 |     cout<<c-a<<endl;
      |                ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 | 
a.cc:15:3: error: expected '(' before '{' token
   15 |   {
      |   ^
      |   (
a.cc:20:3: error: 'return0' was not declared in this scope
   20 |   return0;
      |   ^~~~~~~
Language: C++

#include<bits/stdc++.h> 
using namespace std;
typedef long long int lld;
typedef vector<lld> vll;
#define pb push_back
#define rep(i,a,b) for(i=a;i<b;i++)
#define srt(v) sort(v.begin(),v.end())
#define rev(v) reverse(v.begin(),v.end())
#define mod 1000000007
#define pi 3.1415926535
#define as 10+2
lld a,b,c,d,e,f,g,i,j,k,m,n=1,o,q=0,r=0,u,w,z,s,t,p=2,x,y,temp;
lld ans=0;
string s1,s2,s3,s4,s5,s6,s7,s8,s9;
vll v1,v2,v3,v4,v5,v6;
double f1,f2,f3,f4,f5,f6,h,l;
char c2,c3,c4,c5,c6;
map<lld,lld>m1,m2,m3,m4;
//p=2;
//void make1(lld);
int main()
{
    ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    t=1;
    //cin>>t;
    while(t--)
    {
        cin>>a>>b;//lld a1[n],b1[n],c1[n];
        map<lld,lld>m11;map<char,lld>m12;string s11[n];p=0;q=0;r=0;
        n=s1.size();
        lld a[26]={0};
        cout<<min(0,a-2*b);
        cout<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:18: error: no matching function for call to 'min(int, lld*)'
   32 |         cout<<min(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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:32:18: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'lld*' {aka 'long long int*'})
   32 |         cout<<min(0,a-2*b);
      |               ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:32:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   32 |         cout<<min(0,a-2*b);
      |               ~~~^~~~~~~~~
Language: C++

#include<bits/stdc++.h> 
using namespace std;
typedef long long int lld;
typedef vector<lld> vll;
#define pb push_back
#define rep(i,a,b) for(i=a;i<b;i++)
#define srt(v) sort(v.begin(),v.end())
#define rev(v) reverse(v.begin(),v.end())
#define mod 1000000007
#define pi 3.1415926535
#define as 10+2
lld a,b,c,d,e,f,g,i,j,k,m,n=1,o,q=0,r=0,u,w,z,s,t,p=2,x,y,temp;
lld ans=0;
string s1,s2,s3,s4,s5,s6,s7,s8,s9;
vll v1,v2,v3,v4,v5,v6;
double f1,f2,f3,f4,f5,f6,h,l;
char c2,c3,c4,c5,c6;
map<lld,lld>m1,m2,m3,m4;
//p=2;
//void make1(lld);
int main()
{
    ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    t=1;
    //cin>>t;
    while(t--)
    {
        cin>>a>>b;//lld a1[n],b1[n],c1[n];
        map<lld,lld>m11;map<char,lld>m12;string s11[n];p=0;q=0;r=0;
        n=s1.size();
        lld a[26]={0};
        cout<<min(p,a-2*b);
        cout<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:18: error: no matching function for call to 'min(lld&, lld*)'
   32 |         cout<<min(p,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:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:32:18: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'lld*' {aka 'long long int*'})
   32 |         cout<<min(p,a-2*b);
      |               ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:32:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   32 |         cout<<min(p,a-2*b);
      |               ~~~^~~~~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1 {
    class Program {
        static void Main(string[] args)
        {
            int[] ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
            Console.WriteLine(Math.Max(ab[0] - ab[1] * 2, 0));
            //Console.ReadKey();
        }
    }
}


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.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:9:26: error: 'string' has not been declared
    9 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:9:35: error: expected ',' or '...' before 'args'
    9 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:15:6: error: expected ';' after class definition
   15 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp1::Program::Main(int*)':
a.cc:11:16: error: structured binding declaration cannot have type 'int'
   11 |             int[] ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                ^~
a.cc:11:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:16: error: empty structured binding declaration
a.cc:11:19: error: expected initializer before 'ab'
   11 |             int[] ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
      |                   ^~
a.cc:12:13: error: 'Console' was not declared in this scope
   12 |             Console.WriteLine(Math.Max(ab[0] - ab[1] * 2, 0));
      |             ^~~~~~~
a.cc:12:31: error: 'Math' was not declared in this scope
   12 |             Console.WriteLine(Math.Max(ab[0] - ab[1] * 2, 0));
      |                               ^~~~
a.cc:12:40: error: 'ab' was not declared in this scope
   12 |             Console.WriteLine(Math.Max(ab[0] - ab[1] * 2, 0));
      |                                        ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: unable to find numeric literal operator 'operator""B'
    6 |   cout << A-2B << endl;
      |             ^~
Language: Java


import java.util.Scanner;

public class App {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        int B = scanner.nextInt();

        if (B * 2 < A) {
            System.out.println(A - B * 2);
        } else {
            System.out.println(0);
        }
    }
}

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

#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cassert>
#include <iostream>
#include <iterator>
#include <algorithm>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
typedef vector<long long> vlong;
#define vpush(a,x) a.push_back(x);
#define rep(i, n) REP(i, 0, n)
#define all(v) v.begin(), v.end()
#define REP(i, x, n) for(int i = x; i < n; i++)
#define INF 2e9
signed main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a,b,;
  cin>>a>>b;
  cout<<a-b*2<<'\n';
  
  return(0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:11: error: expected unqualified-id before ';' token
   38 |   int a,b,;
      |           ^
Language: Java

import java.util.*;

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


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

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

Compiler output:
main.c: In function 'main':
main.c:9:11: error: expected ';' before '}' token
    9 |   return 0}
      |           ^
      |           ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:7: error: invalid suffix "b" on integer constant
    5 |   c=a-2b;
      |       ^~
main.c:9:11: error: expected ';' before '}' token
    9 |   return 0}
      |           ^
      |           ;
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: invalid operands of types 'const char [6]' and 'int' to binary 'operator&'
    4 |   scanf("%d %d"&a,&b);
      |         ~~~~~~~^~
      |         |       |
      |         |       int
      |         const char [6]
a.cc:6:6: error: 'C' was not declared in this scope
    6 |   if(C>=0){
      |      ^
a.cc:7:12: error: unable to find string literal operator 'operator""c' with 'const char [3]', 'long unsigned int' arguments
    7 |     printf("%d"c);
      |            ^~~~~
Language: C++

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

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


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

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

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

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

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

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

#include "pch.h"
#include <iostream>
#include <algorithm>
#include <vector>

int main()
{
	using namespace std;
	int A, B;
	cin >> A >> B;

	int C = A - B * 2 < 0 ? 0 : A - B * 2;
	cout << C << endl;

}

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:13: error: redeclaration of 'b' with no linkage
    5 |         int b = 2 * b;
      |             ^
main.c:3:15: note: previous declaration of 'b' with type 'int'
    3 |         int a,b;
      |               ^
Language: C

#include <stdio.h>

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

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

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

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

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

#include <bits/stdc++.h>

using namespace std;

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

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

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

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

// Why do we fall ? So we can learn to pick ourselves up.
import java.util.*;
public class solve {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.println(Math.max(0,a-2*b));
    }
}


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

import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner scan=new Scanner(System.in);
    int num=scan.nextInt();
    int Ans=0, a=0;
    int tri[]=new int [num];
    while(a<num){
      tri[a]=scan.nextInt();
      a++;
    }
    for(int x=0; x<num-2; x++){
      for(int y=x+1; y<num-1; y++){
        for(int z=b+1; z<num; z++){
          if(tri[x]<tri[y]+tri[z] && tri[y]<tri[x]+tri[z] && tri[z]<tri[x]+tri[y]){
            Ans++;
          }
        }
      }
    }
    System.out.println(Ans);
  }
}

Compiler output:
Main.java:15: error: cannot find symbol
        for(int z=b+1; z<num; z++){
                  ^
  symbol:   variable b
  location: class Main
1 error
Language: C++

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


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

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

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

#include<stdio.h>

int main(void){
  
  int A,B,x;
  
  scanf("%d",&A);
  scanf("%d",&B);
  x=A-2*B
  if(x<=0){  
  printf("0");  
  }else{
  printf("%d",x); 
  }



}


Compiler output:
main.c: In function 'main':
main.c:9:10: error: expected ';' before 'if'
    9 |   x=A-2*B
      |          ^
      |          ;
   10 |   if(x<=0){
      |   ~~
Language: C++

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

}


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

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

}


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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'B'
    6 |   cin >> A B;
      |           ^~
      |           ;
a.cc:14:11: error: expected '(' before 'cout'
   14 |   else if cout << "0" << endl;
      |           ^~~~
      |           (
Language: C

#include<stdio.h>
#include<stdlib.h>
int main()
{
 int A,B,C=0;
  scanf("%d %d\n",&A,&B);
   if((A<(2*B))||(B>A)
   {
       printf("0");
   }
   else
      {
         C=A-(2*B);
        printf("%d",C);
      }
      return 0;
      }

Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected ')' before '{' token
    7 |    if((A<(2*B))||(B>A)
      |      ~                ^
      |                       )
    8 |    {
      |    ~                   
main.c:17:7: error: expected expression before '}' token
   17 |       }
      |       ^
Language: C++

/* while(!cin.eof()) */
 
#include<bits/stdc++.h>
using namespace std; 
#define int long long 
#define mod (int)(1e9+7)
#define MAXI (int)(1e15+100)
#define N 200005




// Driver code to test above functions
int32_t main()
{
   
     
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    cout.tie(NULL);

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


    return 0;
    
} 

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

/* while(!cin.eof()) */
 
#include<bits/stdc++.h>
using namespace std; 
#define int long long 
#define mod (int)(1e9+7)
#define MAXI (int)(1e15+100)
#define N 200005




// Driver code to test above functions
int32_t main()
{
    
 
   
     
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    cout.tie(NULL);

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


    return 0;
    
} 

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:26:16: 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:3:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:26:16: 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:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   26 |     cout << max(0, a-2*b);
      |             ~~~^~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:15: error: 'll' was not declared in this scope
    6 |   cout << max<ll>(0, a-2*b);
      |               ^~
a.cc:6:18: error: no matching function for call to 'max<<expression error> >(int, int)'
    6 |   cout << max<ll>(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:6:18: error: template argument 1 is invalid
    6 |   cout << max<ll>(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:6:18: error: template argument 1 is invalid
    6 |   cout << max<ll>(0, a-2*b);
      |           ~~~~~~~^~~~~~~~~~
Language: Java

import java.util.Scanner;

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

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

#include<iostream>
// #include<iostream>
// #define MOD 1000000007
// typedef unsigned long long int ll;
// #define fastio ios_base::sync_with_stdio(false);
// using namespace std;

// ll solve(ll l , ll r){
// 	ll temp = l;
// 	ll res=0;
// 	ll k=0;
// 	// while(1){
// 	// 	if(!(r & (1 << k)) && !(temp & (1 << k))){
// 	// 		temp = temp | (1 << k);
// 	// 		if(temp >= r){
// 	// 			break;
// 	// 		}
// 	// 		else{
// 	// 			res  = temp;
// 	// 		}
// 	// 	} 
// 	// 	k++;
// 	// }
// 	for(int i=0;i<62;i++){
// 		if(!(r & (1 << i)) && !(temp & (1 << i))){
// 			temp = temp | (1 << i);
// 			if(temp >= r){
// 				break;
// 			}
// 			else{
// 				res  = temp;
// 			}
// 		} 
// 	}
// 	return res;
// }


// int main(){
// 	fastio
// 	int test;
// 	cin >> test;
// 	while(test--){
// 		ll  l ,r;
// 		cin >> l >> r;
// 		ll res = solve(l ,r);
// 		cout << (res | r) << endl;
// 	}
// 	return 0;
// }


#include<iostream>
using namespace std;


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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<int> d(n);
  for(int i=0;i<n;i++)
  {
    int d;
    cin>>d;
    d[i]=d;
  }
  int count=0;
  for(int i=0;i<n;i++)
  {
    for(int j=i+1;j<n;j++)
    {
      count+=d[i]*d[j];
    }
  }
cout<<count;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: invalid types 'int[int]' for array subscript
   12 |     d[i]=d;
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,d;
  cin>>n;
  vector<int>d(n);
  for(int i=0;i<n;i++)
  {
    cin>>d;
    d(i)=d;
  }
  int count=0;
  for(int i=0;i<n;i++)
  {
    for(int j=i+1;j<n;j++)
    {
      count+=d[i]*d[j];
    }
  }
cout<<count;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: conflicting declaration 'std::vector<int> d'
    7 |   vector<int>d(n);
      |              ^
a.cc:5:9: note: previous declaration as 'int d'
    5 |   int n,d;
      |         ^
a.cc:11:6: error: 'd' cannot be used as a function
   11 |     d(i)=d;
      |     ~^~~
a.cc:18:15: error: invalid types 'int[int]' for array subscript
   18 |       count+=d[i]*d[j];
      |               ^
a.cc:18:20: error: invalid types 'int[int]' for array subscript
   18 |       count+=d[i]*d[j];
      |                    ^
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '>' token
    6 |   if(2*b=>a)
      |          ^
a.cc:8:14: error: expected ';' before 'cout'
    8 |   else(2*b<a)
      |              ^
      |              ;
    9 |     cout<<(a-(2*b));
      |     ~~~~
Language: Java

import java.util.Scanner;

/**
 * abc143_a
 */
public class abc143_a {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println(Math.max(0, (s.nextInt() - 2 * s.nextInt())));
        s.close();
    }
}

Compiler output:
Main.java:6: error: class abc143_a is public, should be declared in a file named abc143_a.java
public class abc143_a {
       ^
1 error