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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cint' was not declared in this scope; did you mean 'uint'?
    6 |     cint >> B;
      |     ^~~~
      |     uint
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> A
      |         ^~~
      |         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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout << A-B*2;
      |         ^~~~
      |         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 namespce std ;

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std ;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> a >> b ;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   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:8:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    8 |   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:8:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   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 "stdio.h"

int main(){
  int a,b;
  scanf("%d %d",&a,&b);
  printf("%d",a-2b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: invalid suffix "b" on integer constant
    6 |   printf("%d",a-2b);
      |                 ^~
Language: C

#include "stdio.h"

int main(){
  int a,b;
  scanf("%d %d",a,b);
  printf("%d",a-2b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: invalid suffix "b" on integer constant
    6 |   printf("%d",a-2b);
      |                 ^~
Language: C

#include "stdio.h"

int main(){
  int a b;
  scanf("%d %d",a,b);
  printf("%d",a-2b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:17: error: 'a' undeclared (first use in this function)
    5 |   scanf("%d %d",a,b);
      |                 ^
main.c:6:17: error: invalid suffix "b" on integer constant
    6 |   printf("%d",a-2b);
      |                 ^~
Language: C

#include"stdio.h"

int main(){
  int a b;
  scanf("%d %d",a,b);
  printf("%d",a-2b);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
    4 |   int a b;
      |         ^
main.c:4:9: error: 'b' undeclared (first use in this function)
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:17: error: 'a' undeclared (first use in this function)
    5 |   scanf("%d %d",a,b);
      |                 ^
main.c:6:17: error: invalid suffix "b" on integer constant
    6 |   printf("%d",a-2b);
      |                 ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before '.' token
    4 |   int N.A;
      |        ^
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N >> A;
      |          ^
a.cc:5:15: error: 'A' was not declared in this scope
    5 |   cin >> N >> A;
      |               ^
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>

#define ll long long
#define int ll
#define pii pair<int, int>
#define pb push_back
#define INF 1e18
#define REP(i, n) for (int i=0; i<n; i++)
#define FOR(i, a, b) for (int i=a; i<b; i++)
#define REPD(i, n) for (int i=n-1; i>=0; i--)
#define FORD(i, a, b) for (int i=a; i>=b; i--)
#define vi vector<int>
#define all(v) v.begin(), v.end()
#define print(x) cout << x << endl
#define debug(x) cout << #x << " = "<< x << endl

const double PI=3.141592653589793238462643383279502884197169399375105820974944;

using namespace std;

void solve() {
    int A, B;
    cin >> A >> B;

    print(max(0, A - 2*B));
}

signed main() {
    solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:26:14: error: no matching function for call to 'max(int, long long int)'
   26 |     print(max(0, A - 2*B));
      |           ~~~^~~~~~~~~~~~
a.cc:15:26: note: in definition of macro 'print'
   15 | #define print(x) cout << x << 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:26:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   26 |     print(max(0, A - 2*B));
      |           ~~~^~~~~~~~~~~~
a.cc:15:26: note: in definition of macro 'print'
   15 | #define print(x) cout << x << 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:26:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   26 |     print(max(0, A - 2*B));
      |           ~~~^~~~~~~~~~~~
a.cc:15:26: note: in definition of macro 'print'
   15 | #define print(x) cout << x << endl
      |                          ^
Language: Java

public class A_Curtain {

    public static void main(String[] args) {

        int a = Integer.parseInt(args[0]);
        int b = Integer.parseInt(args[2]);

        int answer = Math.max(0, a - b * 2);

        System.out.println(answer);
    }

}


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

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
ort java.util.*;
^
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;


#define int long long


main(){


	int a, b; cin >> a >> b;


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




	

	return 0;
}

Compiler output:
a.cc:9:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    9 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:20: error: no matching function for call to 'max(int, long long int)'
   15 |         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:15:20: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   15 |         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:15:20: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   15 |         cout << max(0, a - 2 * b) << endl;
      |                 ~~~^~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |    cin>>A>>B;
      |    ^~~
      |    std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:4: error: 'ciut' was not declared in this scope
    6 |    ciut<<A*2-B<<endl;
      |    ^~~~
a.cc:6:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |    ciut<<A*2-B<<endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: unable to find numeric literal operator 'operator""B'
    8 |   if (A <= 2B){
      |            ^~
a.cc:9:13: error: 'o' was not declared in this scope
    9 |     cout << o << endl;
      |             ^
a.cc:13:16: error: unable to find numeric literal operator 'operator""B'
   13 |     cout << A -2B << endl;
      |                ^~
Language: C

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'c' was not declared in this scope
    6 |   c>>A>>B;
      |   ^
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: cannot find symbol
    int a = sc.next.Int();
              ^
  symbol:   variable next
  location: variable sc of type Scanner
Main.java:7: error: cannot find symbol
    int b = sc.next.Int();
              ^
  symbol:   variable next
  location: variable sc of type Scanner
2 errors
Language: C++

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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d", &A);
      |     ^~~~~
a.cc:12:5: error: 'printf' was not declared in this scope
   12 |     printf("0");
      |     ^~~~~~
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:14:9: error: 'printf' was not declared in this scope
   14 |         printf("%d", c);
      |         ^~~~~~
a.cc:14:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d", &A);
      |     ^~~~~
a.cc:12:5: error: 'printf' was not declared in this scope
   12 |     printf("0");
      |     ^~~~~~
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:14:9: error: 'printf' was not declared in this scope
   14 |         printf("%d", c);
      |         ^~~~~~
a.cc:14:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'scanf' was not declared in this scope
    6 |     scanf("%d", &A);
      |     ^~~~~
a.cc:12:5: error: 'printf' was not declared in this scope
   12 |     printf("0");
      |     ^~~~~~
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:14:9: error: 'printf' was not declared in this scope
   14 |         printf("%d", c);
      |         ^~~~~~
a.cc:14:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>

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

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

#include <iostream>
#include <bits/stdc++.h>
#include <math.h>
#include <stdio.h>
#include <algorithm>
using namespace std;
#define ll long long

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

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

<?php
fscanf(STDIN, "%d %d", $a, $b);
echo max(0, $a - $b * 2);

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: 'echo' does not name a type
    3 | echo max(0, $a - $b * 2);
      | ^~~~
Language: C++

#include<stdio.h>
int main()
{
	int n,d[50],i,j,x;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&d[i]);
	}
	for(i=0;i<n-1;i++){
		for(j=i+1;j<n;j++){
			x=a[i]*a[i+1];
		}
	}
	printf("%d\n",x);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: 'a' was not declared in this scope
   11 |                         x=a[i]*a[i+1];
      |                           ^
Language: C

#include<iostream>
#include<cstdlib>
#include<string>
#include<vector>
using namespace std;

int main() {

	int a, b, ans;

	cin >> a >> b;

	if (a < b * 2) {
		ans = 0;
	}
	else {
		ans = a - b * 2;
	}

	cout << ans << endl;

	return 0;
}

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

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

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

#include <stdio.h>
int main (void)
{
    int A,B;
    printf("Input the width of window and the length of one of the curtain:\n");
    scanf("%d%d",&A,&B);
    if (A>2*B)
    {
        printf("%d",A-2*B);
    }
    else if (A<2*B)
    {
        if (A<B)
        {
            printf("0\nEach curtain may be longer than the window.")
        }
        else
        {
            printf("0\nThe window is completely covered")
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:69: error: expected ';' before '}' token
   15 |             printf("0\nEach curtain may be longer than the window.")
      |                                                                     ^
      |                                                                     ;
   16 |         }
      |         ~                                                            
main.c:19:58: error: expected ';' before '}' token
   19 |             printf("0\nThe window is completely covered")
      |                                                          ^
      |                                                          ;
   20 |         }
      |         ~
Language: C++

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

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)
      |        ^~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
  public static void main(String [] args) {
    FastReader fr = new FastReader();
    int A = fr.nextInt();
    int B = fr.nextInt();
    int tmp = A - B * 2;
    
    return tmp > 0 ? tmp : 0;
  }
}

class FastReader {
  BufferedReader br;
  StringTokenizer st;

  public FastReader() {
    br = new BufferedReader(new
        InputStreamReader(System.in));
  }

  String next() {
    while (st == null || !st.hasMoreElements())
    {
      try
      {
        st = new StringTokenizer(br.readLine());
      }
      catch (IOException e)
      {
        e.printStackTrace();
      }
    }
    return st.nextToken();
  }

  int nextInt() {
    return Integer.parseInt(next());
  }

  long nextLong() {
    return Long.parseLong(next());
  }

  double nextDouble() {
    return Double.parseDouble(next());
  }

  String nextLine() {
    String str = "";
    try {
      str = br.readLine();
    }
    catch (IOException e) {
      e.printStackTrace();
    }
    return str;
  }
}

Compiler output:
Main.java:13: error: incompatible types: unexpected return value
    return tmp > 0 ? tmp : 0;
                   ^
1 error
Language: Java

public class Main {
  public static void main(String [] args) {
    FastReader fr = new FastReader();
    int A = fr.nextInt();
    int B = fr.nextInt();
    int tmp = A - B * 2;
    
    return tmp > 0 ? tmp : 0;
  }
}

class FastReader {
  BufferedReader br;
  StringTokenizer st;

  public FastReader() {
    br = new BufferedReader(new
        InputStreamReader(System.in));
  }

  String next() {
    while (st == null || !st.hasMoreElements())
    {
      try
      {
        st = new StringTokenizer(br.readLine());
      }
      catch (IOException e)
      {
        e.printStackTrace();
      }
    }
    return st.nextToken();
  }

  int nextInt() {
    return Integer.parseInt(next());
  }

  long nextLong() {
    return Long.parseLong(next());
  }

  double nextDouble() {
    return Double.parseDouble(next());
  }

  String nextLine() {
    String str = "";
    try {
      str = br.readLine();
    }
    catch (IOException e) {
      e.printStackTrace();
    }
    return str;
  }
}

Compiler output:
Main.java:13: error: cannot find symbol
  BufferedReader br;
  ^
  symbol:   class BufferedReader
  location: class FastReader
Main.java:14: error: cannot find symbol
  StringTokenizer st;
  ^
  symbol:   class StringTokenizer
  location: class FastReader
Main.java:8: error: incompatible types: unexpected return value
    return tmp > 0 ? tmp : 0;
                   ^
Main.java:17: error: cannot find symbol
    br = new BufferedReader(new
             ^
  symbol:   class BufferedReader
  location: class FastReader
Main.java:18: error: cannot find symbol
        InputStreamReader(System.in));
        ^
  symbol:   class InputStreamReader
  location: class FastReader
Main.java:26: error: cannot find symbol
        st = new StringTokenizer(br.readLine());
                 ^
  symbol:   class StringTokenizer
  location: class FastReader
Main.java:28: error: cannot find symbol
      catch (IOException e)
             ^
  symbol:   class IOException
  location: class FastReader
Main.java:53: error: cannot find symbol
    catch (IOException e) {
           ^
  symbol:   class IOException
  location: class FastReader
8 errors
Language: Java

public class Main() {
  public static void main(String [] args) {
    FastReader fr = new FastReader();
    int A = fr.nextInt();
    int B = fr.nextInt();
    int tmp = A - B * 2;
    
    return tmp > 0 ? tmp : 0;
  }
}

class FastReader {
  BufferedReader br;
  StringTokenizer st;

  public FastReader() {
    br = new BufferedReader(new
        InputStreamReader(System.in));
  }

  String next() {
    while (st == null || !st.hasMoreElements())
    {
      try
      {
        st = new StringTokenizer(br.readLine());
      }
      catch (IOException e)
      {
        e.printStackTrace();
      }
    }
    return st.nextToken();
  }

  int nextInt() {
    return Integer.parseInt(next());
  }

  long nextLong() {
    return Long.parseLong(next());
  }

  double nextDouble() {
    return Double.parseDouble(next());
  }

  String nextLine() {
    String str = "";
    try {
      str = br.readLine();
    }
    catch (IOException e) {
      e.printStackTrace();
    }
    return str;
  }
}

Compiler output:
Main.java:1: error: '{' expected
public class Main() {
                 ^
1 error
Language: C++

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

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

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

int main (){
    int n;
    string str ;
    cin >> n >> str ;  
  
    int loc = 0;
    int ans = 0;
    while((loc + 1) != str.length(){
        if(str[loc] != str[loc+1]) ans++;
        loc++;
    }
    cout << ans << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: expected ')' before '{' token
   12 |     while((loc + 1) != str.length(){
      |          ~                         ^
      |                                    )
Language: C++

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

int main (){
    int n;
    string str ;
    cin >> n >> str ;  
  
    int loc = 0;
    int ans = 0;
    while((loc + 1) != str.length){
        if(str[loc] != str[loc+1]) ans++;
        loc++;
    }
    cout << ans << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:28: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |     while((loc + 1) != str.length){
      |                        ~~~~^~~~~~
      |                                  ()
Language: C++

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

int main (){
    int n;
    string str ;
    cin >> n >> str ;  
  
    int loc = 0;
    int ans = 0;
    while(loc + 1 != str.length){
        if(str[loc] != str[loc+1]) ans++;
        loc++;
    }
    cout << ans << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |     while(loc + 1 != str.length){
      |                      ~~~~^~~~~~
      |                                ()
Language: C++

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

int main (){
    int n;
    string str ;
    cin >> n >> str ;  
  
    int loc = 0;
    int ans = 0;
    while(loc != str.length - 1){
        if(str[loc] != str[loc+1]) ans++;
        loc++;
    }
    cout << ans << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   12 |     while(loc != str.length - 1){
      |                  ~~~~^~~~~~
      |                            ()
Language: C++

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

int main (){
    int n;
    string str ;
    cin >> n >> s ;  
  
    int loc = 0;
    int ans = 0;
    while(loc != s.length - 1){
        if(str[loc] != str[loc+1]) ans++;
        loc++;
    }
    cout << ans << endl;
    return 0;
}



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

object Main{
  def main(args: Array[String]){
    val input=io.Source.stdin.getLines().mkString("\n");
    println(solve(input).trim());
  }

  def solve(input:String):String={
    val Array(a,b)=input.split(" ").map(_.toInt)
    List(a-2*b,0).max.toString
  }
}


Compiler output:
a.cc:1:1: error: 'object' does not name a type
    1 | object Main{
      | ^~~~~~
Language: C++

#include "atcoder.h"
using namespace std;
int main(){
	int A, B;
	cin >> A >> B;
	if (A >= 2 * B){
		cout << A - 2 * B << endl;

	}
	else{
		cout << 0 << endl;
	}
}

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

#include <cstdio>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |     printf(a - 2 * b);
      |            ~~^~~~~~~
      |              |
      |              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 <iostream>
using namespace std;
int main(void){
    int a,b;
    cin>>a>>b;
    if(12-(b+b)>0){
        cout<<b+;
    }else{
        cout<<0;
    }
    return 0;
}


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

#include<stdio.h>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'flag' was not declared in this scope
    8 |   if(flag)cout<<0<<endl;
      |      ^~~~
Language: C

#include<stdio.h>

int main(void)
{
  int A,B;
  scanf("%d",&A);
  scanf("%d",&B);
  int diff;
  if(A > 2*B)
    diff = A -2*B;
  else
    diff = 0;
  
  print("%d",diff);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |   print("%d",diff);
      |   ^~~~~
      |   printf
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: lvalue required as left operand of assignment
    8 |   }else if(b*2-a=0){
      |            ~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: lvalue required as left operand of assignment
    6 |         if(b*2>a && b*2=a){
      |            ~~~~~~^~~~~~
Language: C

void main(void){
  if(A < 2 * B){
    printf(0)
  }
  
  else
    printf(B)
}
  

Compiler output:
main.c: In function 'main':
main.c:2:6: error: 'A' undeclared (first use in this function)
    2 |   if(A < 2 * B){
      |      ^
main.c:2:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:14: error: 'B' undeclared (first use in this function)
    2 |   if(A < 2 * B){
      |              ^
main.c:3:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    3 |     printf(0)
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | void main(void){
main.c:3:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    3 |     printf(0)
      |     ^~~~~~
main.c:3:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:3:14: error: expected ';' before '}' token
    3 |     printf(0)
      |              ^
      |              ;
    4 |   }
      |   ~           
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |     printf(B)
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:14: error: expected ';' before '}' token
    7 |     printf(B)
      |              ^
      |              ;
    8 | }
      | ~
Language: C++

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin<<A<<B;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<B-2*A<<endl;
      |     ^~~~
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout<<B-2*A<<endl;
      |                  ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<0<<endl;
      |     ^~~~
a.cc:10:14: error: 'endl' was not declared in this scope
   10 |     cout<<0<<endl;
      |              ^~~~
Language: C

#include <sdtio.h>

int main(){
 	int n,m;
  	scanf("%d %d",&n,&m);
  	if(n-2*m <=0)
      printf("9");
  	else printf("%d",n-2*m);
  	return 0;
}

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

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

}


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

#include <bits/stdc++.h>
#include <vector>
#include <cmath>
#define REP(i, n) for (int i = 0; i < (int)(n); ++i)
#define REP2(i, m, n) for (int i = (m); i < (int)(n); ++i)
#define REPR(i, n) for (int i = (n)-1; i >= 0; --i)
#define REPR2(i, m, n) for (int i = (n)-1; i >= (m); --i)
#define REPx(x, a) for(auto x : a)
#define ALL(a) a.begin(), a.end()
#define SORT(a) sort(ALL(a))
#define SORTR(a) sort(ALL(a), greater<int>())
#define REVERSE(a) reverse(ALL(a))
#define bit_search(bit, n) REP(bit, 1<<(n))
#define bit_check(bit, i) (bit>>(i)) & 1
#define setpre(n) fixed << setprecision((n))
#define UNIQUE(a) do {SORT(a); (a).erase(unique(ALL(a)), (a).end());} while(0)
#define MAX(a) *max_element(ALL(a))
#define MIN(a) *min_element(ALL(a))
#define bisect_left(a, x) lower_bound(ALL(a), (x)) - a.begin()
#define bisect_right(a, x) upper_bound(ALL(a), (x)) - a.begin()
#define INPUT(a) REP(i, a.size()) cin >> a[i];
#define INPUTP(a) REP(i, a.size()) cin >> a[i].first >> a[i].second;
#define ENDL cout << endl;
using namespace std;
using LL = long long;
using LD = long double;
using PII = pair<int, int>;
using VPII = vector<PII>;
using PLL = pair<LL, LL>;
using VPLL = vector<PLL>;
using VI = vector<int>;
using VVI = vector<VI>;
using VLL = vector<LL>;
using VVLL = vector<VLL>;
using VC = vector<char>;
using VS = vector<string>;
using VB = vector<bool>;
const int INF = 1e9;
const LL MOD = 1e9 + 7;

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()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a, b;
  cin >> a >> b;
  cout << max(0, A - 2*B) << endl;

  return 0;
}

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

#include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <math.h>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define rep+(i, a, b) for(int i = a; i < b; i++)
#define rep-(i, a, b) for(int i = a - 1; i >= b; i--)

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0, int i = 0, j = 0;
  int num = 0, count = 0, ans = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[256], a2[512], a3[1024];
  //char s1[200000], s2[200000], s3[200000];
  //string s1, s2, s3;
  
  cin >> a >> b;
  
  if(a - b * 2 <= 0){
    cout << 0 << endl;
  }else{
    cout << a - b * 2 << endl;
  }
}
  


Compiler output:
a.cc:17:9: warning: ISO C++11 requires whitespace after the macro name
   17 | #define rep+(i, a, b) for(int i = a; i < b; i++)
      |         ^~~
a.cc:18:9: warning: ISO C++11 requires whitespace after the macro name
   18 | #define rep-(i, a, b) for(int i = a - 1; i >= b; i--)
      |         ^~~
a.cc:18:9: warning: "rep" redefined
a.cc:17:9: note: this is the location of the previous definition
   17 | #define rep+(i, a, b) for(int i = a; i < b; i++)
      |         ^~~
a.cc: In function 'int main()':
a.cc:24:50: error: expected unqualified-id before 'int'
   24 |   int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0, int i = 0, j = 0;
      |                                                  ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:23: error: expected ';' before 'cout'
    9 |   result = a - (b * 2)
      |                       ^
      |                       ;
   10 |   cout << result;
      |   ~~~~
Language: C++

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

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

#include <iostream>
#include <cstdio>
#include <vector>
#include <cstring>
#include <bitset>
#include <cmath>
#include <iomanip>
#include <stack>
#include <set>
#include <queue>
#include <algorithm>
#include <deque>
#include <map>
#include <cmath>
#include <iomanip>
#include <numeric>
using namespace std;

#define INF 1e18
#define int long long

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

    int ans = max(a - 2 * b, 0);

    cout << ans << endl;
    return 0;
}


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