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

#include<bits/stdc++.h>

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

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

#inclue<iostream>

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:8: error: 'cin' is not a member of 'std'
    5 |   std::cin >> A >> B;
      |        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclue<iostream>
a.cc:6:8: error: 'cout' is not a member of 'std'
    6 |   std::cout << (B*2 >= A) ? 0 : (A - B*2);
      |        ^~~~
a.cc:6:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <utility>
#include <set>
#include <stack>
#include <climits>
#include <cmath>

#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define rep1(i,n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
#define reps(i,s,n) for(int i=s, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define MEMSET(v, h) memset((v), h, sizeof(v))
typedef long long ll;
const char sp = ' ';


using namespace std;

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: 'ednl' was not declared in this scope
    8 |   else cout << a - 2 * b << ednl;
      |                             ^~~~
Language: C++

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


int main() {
int n,count=0;
cin>>n;
string s;
cin>>s;
for(int i=0;i<n-1;i++){
    if(s[i]!=s[i+1]){
        count++;
    }
}


cout<<count+1<<endl;

return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>n;
      | ^~~
a.cc:8:1: error: 'string' was not declared in this scope
    8 | string s;
      | ^~~~~~
a.cc:9:6: error: 's' was not declared in this scope
    9 | cin>>s;
      |      ^
a.cc:17:1: error: 'cout' was not declared in this scope; did you mean 'count'?
   17 | cout<<count+1<<endl;
      | ^~~~
      | count
a.cc:17:16: error: 'endl' was not declared in this scope
   17 | cout<<count+1<<endl;
      |                ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define cvector vector<char>
#define svector vector<string>
#define lque queue<ll>
#define lpque priority_queue<ll>
#define dlpque priority_queue<ll,lvector,greater<ll>>
#define P pair<ll,ll>
#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()
#define rep(i,n) for(ll i=0; i<n; ++i)
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll a,b;cin>>a>>b;
  print(max(0,a-2*b));
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define cvector vector<char>
#define svector vector<string>
#define lque queue<ll>
#define lpque priority_queue<ll>
#define dlpque priority_queue<ll,lvector,greater<ll>>
#define P pair<ll,ll>
#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()
#define rep(i,n) for(ll i=0; i<n; ++i)
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll a,b;cin>>a>>b;
  print(min(0,a-2*b));
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: no matching function for call to 'min(int, long long int)'
   20 |   print(min(0,a-2*b));
      |         ~~~^~~~~~~~~
a.cc:14:27: note: in definition of macro 'print'
   14 | #define print(a) cout << (a) << 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: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:20:12: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   20 |   print(min(0,a-2*b));
      |         ~~~^~~~~~~~~
a.cc:14:27: note: in definition of macro 'print'
   14 | #define print(a) cout << (a) << endl
      |                           ^
/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:20:12: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   20 |   print(min(0,a-2*b));
      |         ~~~^~~~~~~~~
a.cc:14:27: note: in definition of macro 'print'
   14 | #define print(a) cout << (a) << endl
      |                           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
#define rrep(i,n) for(int i=n-1;i>=0;--i)
#define REP(i,a,b) for(int i=a;i<b;i++)
#define yesno(flg) if(flg){cout<<'YES'<<endl;}else{cout<<'NO'<<endl;}
#define vi vector<int>
#define pb push_back
#define i197 1000000007
#define MAX_N 200002
using namespace std;

typedef long long ll;
typedef pair<int,int> Pii;
typedef pair<Pii,int> Piii;
typedef pair<int,ll> Pil;
typedef pair<ll,ll> Pll;
typedef pair<string,int> Psi;
typedef pair<Psi,int> Psii;

const int inf=1000000000;
struct edge{
	int myc,to,c,cost;
};
struct pos{
	int to,cost,color;
};
int dy[]={0, 0, 1, -1};
int dx[]={1, -1, 0, 0};

vi vec[200001];
int x[200001]={};
int dp[200001];

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


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

#include <iostream>

using namespace std;

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

	cin >> A >> B;

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

}

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

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define pb push_back
#define INF 0x3f3f3f3f
#define LINF 0x3f3f3f3f3f3f3f
#define endl '\n'
#define ll long long
#define int long long
#define f first
#define s second
#define FAST cin.tie(0), cout.tie(0), ios::sync_with_stdio(0)
#define debug(x) cout << "DEBUG " << x << endl
#define debug2(x, y) cout << "DEBUG " << x << " " << y << endl
#define debug3(x, y, z) cout << "DEBUG " << x << " " << y << " " << z<< endl
#define debug4(x, y, z, o) cout << "DEBUG " << x << " " << y << " " << z<< " " << o << endl
using namespace std;
typedef pair<ll, ll> pii;
typedef vector<vector<ll>> mat;
const ll mod = 1e9+7;
const int MAXN = 1e6+5;



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


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

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

Compiler output:
main.c: In function 'main':
main.c:11:1: error: expected statement before ']' token
   11 | ]
      | ^
main.c:11:1: error: expected declaration or statement at end of input
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
#include <math.h>
using namespace std;
using vi = vector<int>;
using vll = vector<long long int>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vvll = vector<vector<long long int>>;
using ll = long long int;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: expected primary-expression before ')' token
   14 |    cout << max(A-2*B, 0>>ll);
      |                            ^
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
#include <math.h>
using namespace std;
using vi = vector<int>;
using vll = vector<long long int>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vvll = vector<vector<long long int>>;
using ll = long long int;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected primary-expression before numeric constant
   14 |    cout << max(A-2*B, ll 0);
      |                          ^
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
#include <math.h>
using namespace std;
using vi = vector<int>;
using vll = vector<long long int>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vvll = vector<vector<long long int>>;
using ll = long long int;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: expected primary-expression before '>>' token
   14 |    cout << max(A-2*B, ll>>0);
      |                         ^~
Language: C++

#include <bits/stdc++.h>
#include <stdio.h>
#include <math.h>
using namespace std;
using vi = vector<int>;
using vll = vector<long long int>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vvll = vector<vector<long long int>>;
using ll = long long int;

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

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'elsee' was not declared in this scope
    7 |     elsee cout<<0<<endl;
      |     ^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: 'max' was not declared in this scope
    5 |   ans=max(0,a-2*b);
      |       ^~~
Language: C++

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

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

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

#include <bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   std::cout << max(0, a - 2 * b);
      |                ^~~
      |                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)
      |     ^~~
Language: C++

#include<bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'max' was not declared in this scope; did you mean 'std::max'?
    7 |   std::cout << max(0, a - 2 * b);
      |                ^~~
      |                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)
      |     ^~~
Language: C++

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

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

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <utility>
#include <set>
#include <stack>
#include <climits>
#include <cmath>

#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define rep1(i,n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
#define reps(i,s,n) for(int i=s, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define MEMSET(v, h) memset((v), h, sizeof(v))
typedef long long ll;
const char sp = ' ';


using namespace std;

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


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

using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> a >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:16: error: 'cout' was not declared in this scope
    8 |   if(a <= 2*b) cout << 0 << endl;
      |                ^~~~
a.cc:8:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:29: error: 'endl' was not declared in this scope
    8 |   if(a <= 2*b) cout << 0 << endl;
      |                             ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << a-2*b << endl;
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:25: error: 'endl' was not declared in this scope
    9 |   else cout << a-2*b << endl;
      |                         ^~~~
a.cc:9:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:3: error: expected declaration or statement at end of input
   16 |   return 0;
      |   ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'll' was not declared in this scope
    5 |         ll a, b;
      |         ^~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b;
      |               ^
a.cc:7:5: error: expected ';' before 'ans'
    7 |   ll ans = max(0LL, a - 2*b);
      |     ^~~~
      |     ;
a.cc:8:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define INF 1000007
#define MOD 1000000007
#define maxn 1e5
#define PI 3.141592653589793
#define int long long int
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) FOR(i, 0, n)

int gcd(int a, int b)
{
    return b ? gcd(b, a % b) : a;
}
int lcm(int a, int b) { return a / gcd(a, b) * b; }
int mpow(int N, int P, int M) //繰り返し自乗法
{
    if (P == 0)
        return 1;
    if (P % 2 == 0)
    {
        int t = mpow(N, P / 2, M);
        return t * t % M;
    }
    return N * mpow(N, P - 1, M) % M;
}
signed main()
{
  int A,B;
  cin >> A >> B;
  B = 2 * B;
  int ns = A - B;
  if(ans < 0)ans = 0;
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:6: error: 'ans' was not declared in this scope; did you mean 'ns'?
   35 |   if(ans < 0)ans = 0;
      |      ^~~
      |      ns
a.cc:36:11: error: 'ans' was not declared in this scope; did you mean 'ns'?
   36 |   cout << ans << endl;
      |           ^~~
      |           ns
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define INF 1000007
#define MOD 1000000007
#define maxn 1e5
#define PI 3.141592653589793
#define int long long int
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, n) FOR(i, 0, n)

int gcd(int a, int b)
{
    return b ? gcd(b, a % b) : a;
}
int lcm(int a, int b) { return a / gcd(a, b) * b; }
int mpow(int N, int P, int M) //繰り返し自乗法
{
    if (P == 0)
        return 1;
    if (P % 2 == 0)
    {
        int t = mpow(N, P / 2, M);
        return t * t % M;
    }
    return N * mpow(N, P - 1, M) % M;
}
signed main()
{
  int A,B;
  cin >> A >> B;
  B = 2 * B;
  ans = A - B;
  if(ans < 0)ans = 0;
  cout << ans << endl;
}


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

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

int main()
{

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

    
if (1<=A && A=>9 && 1<=B && B>=9) {
cout << A*B <<endl; 
}

else{
cout <<-1 <<endl;
}
    
}    
    
   

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected primary-expression before '>' token
   12 | if (1<=A && A=>9 && 1<=B && B>=9) {
      |               ^
Language: C++

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: unable to find numeric literal operator 'operator""B'
    6 |   if (2B >= A) {
      |       ^~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:19: error: invalid suffix "a" on integer constant
    5 |     scanf("%d %d",7a,&b);
      |                   ^~
main.c:7:9: error: 'rea' undeclared (first use in this function); did you mean 'res'?
    7 |     if (rea<0)
      |         ^~~
      |         res
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

a, b= map(int, input().split())
eq= 2*b
if eq < a:
	print(a-eq)
else:
	print("0")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a, b= map(int, input().split())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:4: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    1 | a, b= map(int, input().split())
      |    ^
main.c:1:7: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | a, b= map(int, input().split())
      |       ^~~
main.c:1:11: error: expected expression before 'int'
    1 | a, b= map(int, input().split())
      |           ^~~
main.c:2:1: error: expected ',' or ';' before 'eq'
    2 | eq= 2*b
      | ^~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int n;
  cin >> n;
  int b;
  cin >> b;
  if(b*2 > N) cout << 0 << endl; return 0;
  cout << n - b*2 << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'N' was not declared in this scope
    8 |   if(b*2 > N) cout << 0 << endl; return 0;
      |            ^
Language: C

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'result' undeclared (first use in this function)
    5 |     result=a-(b+b);
      |     ^~~~~~
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: 'res' undeclared (first use in this function)
    6 |     if(res<0){
      |        ^~~
main.c:9:1: error: expected declaration or statement at end of input
    9 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:23: error: 'uncoveted_part' undeclared (first use in this function); did you mean 'uncovered_part'?
   10 |         printf ("%d", uncoveted_part);
      |                       ^~~~~~~~~~~~~~
      |                       uncovered_part
main.c:10:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: 'else' without a previous 'if'
   11 |         else {
      |         ^~~~
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf ("%d %d", &a, &b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude <stdio.h>
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf ("%d %d", &a, &b);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:20: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |                    printf("%d", 0);
      |                    ^~~~~~
main.c:8:20: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:20: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:20: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |                     printf("%d\n", uncovered_part);
      |                     ^~~~~~
main.c:11:21: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf ("%d %d", &a, &b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlude <stdio.h>
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf ("%d %d", &a, &b);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:20: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |                    printf("0");
      |                    ^~~~~~
main.c:8:20: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:20: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:20: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |                     printf("%d\n", uncovered_part);
      |                     ^~~~~~
main.c:11:21: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'uncovered_part' undeclared (first use in this function); did you mean 'uncoverd_part'?
    6 |         uncovered_part = a - (2 * b);
      |         ^~~~~~~~~~~~~~
      |         uncoverd_part
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf ("%d %d", &a, &b);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlude <stdio.h>
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf ("%d %d", &a, &b);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:9: error: 'uncovered_part' undeclared (first use in this function); did you mean 'uncoverd_part'?
    6 |         uncovered_part = a - (2 * b);
      |         ^~~~~~~~~~~~~~
      |         uncoverd_part
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:20: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |                    printf("0");
      |                    ^~~~~~
main.c:8:20: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:20: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:20: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |                     printf("%d\n", uncovered_part);
      |                     ^~~~~~
main.c:11:21: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main ()

{
  int A,B,sum;
  printf("Enter two integer numbers:");
  scanf("%d %d",sum);
  sum=A -(B+B)
  printf("%d",sum);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected ';' before 'printf'
    8 |   sum=A -(B+B)
      |               ^
      |               ;
    9 |   printf("%d",sum);
      |   ~~~~~~
Language: C

#include<stdio.h>
int main ()

{
  int A,B,sum;
  printf("Enter two integer numbers:");
  scanf("%d %d",sum);
  sum=A - (B*2)
  printf("%d",sum);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected ';' before 'printf'
    8 |   sum=A - (B*2)
      |                ^
      |                ;
    9 |   printf("%d",sum);
      |   ~~~~~~
Language: C

#include<stdio.h>
int main()
{
  int A,B,sum;
  int A=12;
  int B=4;
  scanf("%d %d",sum);
  sum=A sub (B*2)
  printf("%d",sum);

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: redeclaration of 'A' with no linkage
    5 |   int A=12;
      |       ^
main.c:4:7: note: previous declaration of 'A' with type 'int'
    4 |   int A,B,sum;
      |       ^
main.c:6:7: error: redeclaration of 'B' with no linkage
    6 |   int B=4;
      |       ^
main.c:4:9: note: previous declaration of 'B' with type 'int'
    4 |   int A,B,sum;
      |         ^
main.c:8:8: error: expected ';' before 'sub'
    8 |   sum=A sub (B*2)
      |        ^~~~
      |        ;
Language: C++

#include<stdio.h>
int main()
{
int a,b:
scanf("%d %d",&a,&b);
printf("%d",a-(b+b));
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: found ':' in nested-name-specifier, expected '::'
    4 | int a,b:
      |        ^
      |        ::
a.cc:4:7: error: 'b' has not been declared
    4 | int a,b:
      |       ^
a.cc:5:6: error: qualified-id in declaration before '(' token
    5 | scanf("%d %d",&a,&b);
      |      ^
a.cc:6:16: error: 'b' was not declared in this scope
    6 | printf("%d",a-(b+b));
      |                ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   13 |     getch();
      |     ^~~~~
      |     getc
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 | int a,b;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:4:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 | if(a>2*b) cout<<a-2*b;
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | else cout<<0;}
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Scanner;

public class Curtain {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();

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

}

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

package practice;

import java.util.Scanner;

public class Curtain {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();

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

}


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

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

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

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

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

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

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

}





Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'return0' was not declared in this scope
   10 |   return0
      |   ^~~~~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;




int main(){
      //memset( par, -1, sizeof par );
    ll n,m;
    cin>>n>>m;
    l v=2*m;
    if(v>=n)cout<<"0";
    else cout<<n-v;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'l' was not declared in this scope
   13 |     l v=2*m;
      |     ^
a.cc:14:8: error: 'v' was not declared in this scope
   14 |     if(v>=n)cout<<"0";
      |        ^