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

using Map = map<string,ll>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;

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


return 0;
}


Compiler output:
a.cc:1:13: error: 'map' does not name a type
    1 | using Map = map<string,ll>;
      |             ^~~
a.cc:2:12: error: 'vector' does not name a type
    2 | using vl = vector<ll>;
      |            ^~~~~~
a.cc:3:13: error: 'vector' does not name a type
    3 | using vvl = vector<vector<ll>>;
      |             ^~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'll' was not declared in this scope
    6 |     ll A;
      |     ^~
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> A;
      |     ^~~
a.cc:7:12: error: 'A' was not declared in this scope
    7 |     cin >> A;
      |            ^
a.cc:8:7: error: expected ';' before 'B'
    8 |     ll B;
      |       ^~
      |       ;
a.cc:9:12: error: 'B' was not declared in this scope
    9 |     cin >> B;
      |            ^
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<min(0,A-2*B)<<endl;
      |     ^~~~
a.cc:10:11: error: 'min' was not declared in this scope; did you mean 'main'?
   10 |     cout<<min(0,A-2*B)<<endl;
      |           ^~~
      |           main
a.cc:10:25: error: 'endl' was not declared in this scope
   10 |     cout<<min(0,A-2*B)<<endl;
      |                         ^~~~
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int a,b;
  cin>>a>>b;
 int ans=a-2*b;
  if(ans<0) ans=0;
  coout<<ans<<endl;
}


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

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
  int a,b;
  cin>>a>>b;
  ans=a-2*b;
  if(ans<0) ans=0;
  coout<<ans<<endl;
}

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

#include <bits/stdc++.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: In function 'int main()':
a.cc:6:6: error: expected ';' before 'a'
    6 |   cin a >> b;
      |      ^~
      |      ;
Language: C++

#include<iostream>
using namespace std;

int main(){
  int a,b;
  if(a-b*2 < 0){
    cout << "0" << endl;
  }else{
    cout << a-b*2 << endl:
  }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ':' token
    9 |     cout << a-b*2 << endl:
      |                          ^
      |                          ;
Language: Java

import java.util.*;

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

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

//INCLUDE
//------------------------------------------
#include <bits/stdc++.h>
//DEFINE
//------------------------------------------
#define ll long long
#define ld long double
#define ALLv(a)  (a).begin(),(a).end()
#define ALL(a,n)  (a),(a)+n
#define vi vector<long long>
#define vd vector<long double>
#define vs vector<string>
//CONST
//------------------------------------------
#define INF 1010000000000000017LL
#define MOD 1000000007LL
#define EPS 1e-12
#define PI 3.14159265358979323846
//REPEAT
//------------------------------------------
#define   FOR(i,m,n) for(ll (i)=(m);   (i)<(n);  (i)++)
#define   REP(i,n)   for(ll (i)=0;     (i)<(n);  (i)++)
#define  REPS(i,x)   for(ll (i)=1;     (i)<=(x); (i)++)
#define  RREP(i,x)   for(ll (i)=(x)-1; (i)>=0;   (i)--)
#define RREPS(i,x)   for(ll (i)=(x);   (i)> 0;   (i)--)
#define  WREP(i,in,j,jn) REP(i,in)REP(j,jn)
//-----------------------------------------
#define ifYN(x) cout<<(x?"Yes":"No")<<"\n" 
#define dcml(n) fixed<<setprecision(n)

 
ll GCD(ll a,ll b) { return b ? GCD(b,a%b) : a; } 
ll LCM(ll a,ll b) { return a/GCD(a,b)*b; } 
ll Factorial(ll n){ ll m=1;while(n>=1)m*=n--;return m; } 
ll modPow(ll x,ll n,ll mod=MOD){ 
    return (!n?1:!n%2?modPow(x*x,n/2,mod)%mod:x%mod*modPow(x,n-1,mod)%mod); 
} 
ll GetDigit(ll num){ 
    ll digit=0; 
    while(num!=0){num/=10;digit++;} 
    return digit; 
} 


using namespace std;
//-------------------------------------------
int main(){
  ll A,B;cin>>A>>B;
  cout<<(A-2*B<0?0:A-2*B)<<"\n;
}


Compiler output:
a.cc:49:28: warning: missing terminating " character
   49 |   cout<<(A-2*B<0?0:A-2*B)<<"\n;
      |                            ^
a.cc:49:28: error: missing terminating " character
   49 |   cout<<(A-2*B<0?0:A-2*B)<<"\n;
      |                            ^~~~
a.cc: In function 'int main()':
a.cc:50:1: error: expected primary-expression before '}' token
   50 | }
      | ^
Language: Java

/*
 *  author : Atul Anand   
 *  created on : Wed Apr 01 2020
 */

import java.io.*;
import java.util.*;

public class A{

    public static void main(String[] args) throws IOException {
        int A = in.nextInt();
        int B = in.nextInt();
        println(Math.max(0, A - 2 * B));
        in.close();
        out.close();
    }

    static int MIN = Integer.MIN_VALUE;
    static int MAX = Integer.MAX_VALUE;
    static Reader in = new Reader();
    static PrintWriter out = new PrintWriter(System.out);

    static void read(int arr[], int N) throws IOException { 
    	for(int i = 0; i < N; i++){ 
    		arr[i] = in.nextInt(); 
    	} 
    }
    
    static void read(long arr[], int N) throws IOException { 
    	for(int i = 0; i < N; i++){ 
    		arr[i] = in.nextLong(); 
    	} 
    }
    
    static void read(String arr[], int N) throws IOException { 
    	for(int i = 0; i < N; i++){ 
    		arr[i] = in.next(); 
    	} 
    }
    
    static void print(Object O) {  
    	out.print(O); 
    }
    
    static void println(Object O) { 
    	out.println(O); 
    }
    
    static void println(int arr[]) { 
    	for(int i = 0; i < arr.length; i++){ 
    		print(arr[i]+" "); 
    	} 
    	println(""); 
    }

    static void println(int arr[][]) { 
    	for(int i = 0; i < arr.length; i++){ 
    		println(arr[i]); 
    	}
    }
    
    static void debug(Object O) { 
    	System.out.println(O); 
    }
}

class Reader {
    BufferedReader reader;
    StringTokenizer tokenizer;

    Reader() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    String next() throws IOException {
        while (!tokenizer.hasMoreTokens() ) { 
            tokenizer = new StringTokenizer(reader.readLine()); 
        }
        return tokenizer.nextToken();
    }

    int nextInt() throws IOException { 
        return Integer.parseInt(next()); 
    }
    
    double nextDouble() throws IOException { 
        return Double.parseDouble(next());
    }
    
    long nextLong() throws IOException { 
        return Long.parseLong(next()); 
    }
    
    String nextLine() throws IOException { 
        return reader.readLine(); 
    }
    
    void close() throws IOException { 
        reader.close(); 
    }
}

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

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

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

#include <iostream>

int main()
{
	int a, b; cin >> a >> b;
  
	int tmp = a - b * b;

  	std::cout << ((tmp < 0) ? 0 : tmp) << std::endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected unqualified-id before '>>' token
    6 |   int >> a >> b;
      |       ^~
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok(input, " ");
	secondInput = &input[3];

	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   15 |         gets_s(input);
      |         ^~~~~~
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char input[50];
char * secondInput;
char * firstInput;
int inputA = 0;
int inputB = 0;

int main(void)
{

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   15 |         gets_s(input);
      |         ^~~~~~
main.c:16:22: error: implicit declaration of function 'strtok_s'; did you mean 'strtok_r'? [-Wimplicit-function-declaration]
   16 |         firstInput = strtok_s(input, " ", &secondInput);
      |                      ^~~~~~~~
      |                      strtok_r
main.c:16:20: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   16 |         firstInput = strtok_s(input, " ", &secondInput);
      |                    ^
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char input[50];
char * secondInput;
char * firstInput;
int inputA = 0;
int inputB = 0;

int main(void)
{

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   15 |         gets_s(input);
      |         ^~~~~~
main.c:16:22: error: implicit declaration of function 'strtok_s'; did you mean 'strtok_r'? [-Wimplicit-function-declaration]
   16 |         firstInput = strtok_s(input, " ", &secondInput);
      |                      ^~~~~~~~
      |                      strtok_r
main.c:16:20: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   16 |         firstInput = strtok_s(input, " ", &secondInput);
      |                    ^
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

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

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

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

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   15 |         gets_s(input);
      |         ^~~~~~
main.c:16:22: error: implicit declaration of function 'strtok_s'; did you mean 'strtok_r'? [-Wimplicit-function-declaration]
   16 |         firstInput = strtok_s(input, " ", &secondInput);
      |                      ^~~~~~~~
      |                      strtok_r
main.c:16:20: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   16 |         firstInput = strtok_s(input, " ", &secondInput);
      |                    ^
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include "stdio.h"
#include "string.h"
#include "stdlib.h"


int charToInt(char inputA)
{
	return inputA - '0';
}

int main()
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:21:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   21 |         gets_s(input);
      |         ^~~~~~
main.c:22:22: error: implicit declaration of function 'strtok_s'; did you mean 'strtok_r'? [-Wimplicit-function-declaration]
   22 |         firstInput = strtok_s(input, " ", &secondInput);
      |                      ^~~~~~~~
      |                      strtok_r
main.c:22:20: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   22 |         firstInput = strtok_s(input, " ", &secondInput);
      |                    ^
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include "stdio.h"
#include "string.h"
#include "stdlib.h"


int charToInt(char inputA)
{
	return inputA - '0';
}

int main()
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets(input);
	firstInput = strtok(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:9: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   21 |         gets(input);
      |         ^~~~
      |         fgets
main.c:22:22: error: too many arguments to function 'strtok'
   22 |         firstInput = strtok(input, " ", &secondInput);
      |                      ^~~~~~
In file included from main.c:4:
/usr/include/string.h:356:14: note: declared here
  356 | extern char *strtok (char *__restrict __s, const char *__restrict __delim)
      |              ^~~~~~
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//
#include "stdio.h"
#include "string.h"
#include "stdlib.h"


int charToInt(char inputA)
{
	return inputA - '0';
}

int main()
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:9: error: implicit declaration of function 'gets_s' [-Wimplicit-function-declaration]
   21 |         gets_s(input);
      |         ^~~~~~
main.c:22:22: error: implicit declaration of function 'strtok_s'; did you mean 'strtok_r'? [-Wimplicit-function-declaration]
   22 |         firstInput = strtok_s(input, " ", &secondInput);
      |                      ^~~~~~~~
      |                      strtok_r
main.c:22:20: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
   22 |         firstInput = strtok_s(input, " ", &secondInput);
      |                    ^
Language: C

// AtCoderCLanguage.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "string.h"
#include "stdlib.h"

int main()
{
	char input[50];
	char * secondInput;
	char * firstInput;
	int inputA = 0;
	int inputB = 0;

	gets_s(input);
	firstInput = strtok_s(input, " ", &secondInput);
	
	inputA = atoi(firstInput);
	inputB = atoi(secondInput);

	if (inputA < inputB * 2)
	{
		printf("0");
	}
	else
	{
		int printOutput = inputA - (inputB * 2);
		printf("%d \n", printOutput);
	}

	return 0;
}

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

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

int main() {
int n;
cin >> n;
vector<int> d(n);
for(inti=0;i<n;i++)cin>>d[i];
int ans=0;
for(inti=0;i<n;i++){
for(int j = i + 1; j < n; j++) {
ans += d[i] * d[j];
}
}
cout << ans << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'inti' was not declared in this scope; did you mean 'int'?
    8 | for(inti=0;i<n;i++)cin>>d[i];
      |     ^~~~
      |     int
a.cc:8:12: error: 'i' was not declared in this scope
    8 | for(inti=0;i<n;i++)cin>>d[i];
      |            ^
a.cc:10:5: error: 'inti' was not declared in this scope; did you mean 'int'?
   10 | for(inti=0;i<n;i++){
      |     ^~~~
      |     int
a.cc:10:12: error: 'i' was not declared in this scope
   10 | for(inti=0;i<n;i++){
      |            ^
Language: C++

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

int main(){
  int n,ans;
  cin >> n;
  vector<int> vec(n);
  for(int i=0;i<n;i++){cin >> vec.at(i);}
  ans = 0;
  for(int i=0;i<n;i++){
    for(int j=k+1;j<n-1;j++){
      ans += vec.at(i)*vec.at(j);
    }
  }
  cout << ans << endl;
  return 0;
}

                     
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'k' was not declared in this scope
   11 |     for(int j=k+1;j<n-1;j++){
      |               ^
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if(Ans < 0)cout << 0 << endl;
      |   ^~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else cout << Ans << endl;
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

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:8:41: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     cout << (a - 2*b > 0) ? a - 2*b : 0 << endl;
      |                                       ~~^~~~~~~
Language: C++

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ')' before ';' token
   10 |     cout << 0 << endl;
      |                      ^
      |                      )
a.cc:9:8: note: to match this '('
    9 |   else (
      |        ^
a.cc:11:3: error: expected primary-expression before ')' token
   11 |   )
      |   ^
Language: C

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


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

import java.util.*;

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


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

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

Compiler output:
main.c: In function 'main':
main.c:11:3: error: expected declaration or statement at end of input
   11 |   printf("%d",ans);
      |   ^~~~~~
Language: C

#include <stdio.h>
int main (void){
  int A,B;
  scanf("%x%x",&A,&B);
  
  printf("%x",A-B*2);
  
  retrun 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'retrun' undeclared (first use in this function)
    8 |   retrun 0;
      |   ^~~~~~
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: expected ';' before numeric constant
    8 |   retrun 0;
      |         ^~
      |         ;
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:9:11: error: 'eles' undeclared (first use in this function)
    9 |         } eles {
      |           ^~~~
main.c:9:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:15: error: expected ';' before '{' token
    9 |         } eles {
      |               ^~
      |               ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
    8 |   cout<<ans<<endl;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected primary-expression before '<' token
    8 |   if(ans=<0)ans=0;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected primary-expression before '<' token
    8 |   if(ans=<0)ans=0;
      |          ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   ans=A-2*B;
      |   ^~~
      |   abs
a.cc:8:10: error: expected primary-expression before '<' token
    8 |   if(ans=<0)ans=0;
      |          ^
Language: C++

#include<buts/stdc++.h>
using namespace std;
int main(){

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

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

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

Compiler output:
Main.java:7: error: ')' expected
if(2b>=a){
    ^
Main.java:7: error: not a statement
if(2b>=a){
     ^
Main.java:7: error: ';' expected
if(2b>=a){
        ^
Main.java:10: error: ')' or ',' expected
System.out.println(2b-a);
                    ^
Main.java:10: error: not a statement
System.out.println(2b-a);
                     ^
Main.java:10: error: ';' expected
System.out.println(2b-a);
                       ^
Main.java:9: error: 'else' without 'if'
}else{
 ^
7 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:14: error: expected ')' before 'a'
    8 |   printf("%d"a-2*b);
      |         ~    ^
      |              )
Language: C++

#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
#include <iomanip>


#define rep(i,n) for(int i=0; i< (n); ++i)

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

  if (A - B * 2 < 0) cout << 0 << endl;
  else cout << A - B * 2 << endl;
}


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

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

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:34: error: 'emdl' was not declared in this scope
   12 |                 cout << a-b-b << emdl;
      |                                  ^~~~
Language: C++

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

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

#include <bits/stdc++.h>
 #include <math.h>
using namespace std;
#define ll long long
#define pi 3.14159265359

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

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define de cout<<"siktim seni\n";
ll int a,i,b,ans=LLONG_MAX;
int main(){
	cin>>a>>b;
	cout<<max(a-2*b,0);
}

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

using namespace std;
int main(){
int A, B;
cin >> A >> B;
A -= (B << 1);
if(A<=0) cout << 0;
else cout << A;
cout << endl;
return -1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | 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:6:10: error: 'cout' was not declared in this scope
    6 | if(A<=0) cout << 0;
      |          ^~~~
a.cc:6:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:6: error: 'cout' was not declared in this scope
    7 | else cout << A;
      |      ^~~~
a.cc:7:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout << endl;
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:9: error: 'endl' was not declared in this scope
    8 | cout << 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;
Language: C++

using namespace std;
int main(){
int A, B;
cin >> A >> B;
A -= (B << 1);
if(A<=0) cout << 0;
else cout << A;
cout << endl;
return -1;
}
main();

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | 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:6:10: error: 'cout' was not declared in this scope
    6 | if(A<=0) cout << 0;
      |          ^~~~
a.cc:6:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:6: error: 'cout' was not declared in this scope
    7 | else cout << A;
      |      ^~~~
a.cc:7:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout << endl;
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:9: error: 'endl' was not declared in this scope
    8 | cout << 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: At global scope:
a.cc:11:7: error: expected constructor, destructor, or type conversion before ';' token
   11 | main();
      |       ^
Language: C++

using namespace std;
int A, B;
cin >> A >> B;
A -= (B << 1);
if(A<=0) cout << 0;
else cout << A;
cout << endl;

Compiler output:
a.cc:3:1: error: 'cin' does not name a type
    3 | cin >> A >> B;
      | ^~~
a.cc:4:1: error: 'A' does not name a type
    4 | A -= (B << 1);
      | ^
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if(A<=0) cout << 0;
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else cout << A;
      | ^~~~
a.cc:7:1: error: 'cout' does not name a type
    7 | cout << endl;
      | ^~~~
Language: C++

int A, B;
cin >> A >> B;
A -= (B << 1);
if(A<=0) cout << 0;
else cout << A;
cout << endl;
  

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> A >> B;
      | ^~~
a.cc:3:1: error: 'A' does not name a type
    3 | A -= (B << 1);
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(A<=0) cout << 0;
      | ^~
a.cc:5:1: error: expected unqualified-id before 'else'
    5 | else cout << A;
      | ^~~~
a.cc:6:1: error: 'cout' does not name a type
    6 | cout << endl;
      | ^~~~
Language: C

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>


void insert_sort(int* arr,int id) {
	int temp;
	int new = arr[id];

	for (int i = id; i >= 0; i--) {
		if (arr[i - 1] > arr[i]) {
			temp = arr[i];
			arr[i] = arr[i - 1];
			arr[i -1] = temp;
		}
		else break;
	}
}
int asc(const void* a, const void* b) {
	return *(int*)b - *(int*)a;
}
int tri_deci(int a, int b, int c) {
	if (a + b > c ) return 1;
	else return 0;
}
int main() {
	int n;
	int l[2000] = { 0 };
	long int total = 0;
	int ans = 0;
	/*
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &l[i]);
		insert_sort(l,i);
	}
	*/
	n = 10;
	srand(1);
	for (int i = 0; i < n; i++) {
		l[i] = rand(6);
		insert_sort(l, i);
	}
	qsort(l, n, sizeof(int), asc);
	for (int i = 0; i < n ; i++) {
		for (int j = i + 1; j < n; j++) {
			for (int k = j + 1; k < n; k++) {
				//if (tri_deci(l[i], l[j], l[k]))
					if (l[i] < l[j] + l[k]) {
					total++;
					printf("%ld: l[%d]=%d,l[%d]=%d, l[%d]=%d\n",total, i, l[i], j, l[j], k, l[k]);
				}
				//else break;
			}
		}
	}
	
	/*
	for (int i = 0; i < n; i++)
	{
		for (int j = i + 1; j < n; j++)
		{
			for (int k = j + 1; k < n; k++)
			{
				if (l[i] < l[j] + l[k])ans++;
			}
		}
	}
	*/
	printf("%ld\n", total);
	
	for (int i = 0; i < n; i++) printf("l[%d]=%d\n",i, l[i]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:42:24: error: too many arguments to function 'rand'
   42 |                 l[i] = rand(6);
      |                        ^~~~
In file included from main.c:3:
/usr/include/stdlib.h:573:12: note: declared here
  573 | extern int rand (void) __THROW;
      |            ^~~~
Language: C++

using System;
class ProgramB
    {
        static void Main(string[] args)
        {	
          	var line = Console.ReadLine();
			var data = line.Split(' ');
			var a1 = int.Parse(data[0]); //first integer
			var b1 = int.Parse(data[1]); //sec
          
          
         	Console.WriteLine(((a1-2*b1)<=0?0:a1-2*b1));
           
        }
    }


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:26: error: 'string' has not been declared
    4 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:4:35: error: expected ',' or '...' before 'args'
    4 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:15:6: error: expected ';' after class definition
   15 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ProgramB::Main(int*)':
a.cc:6:17: error: 'var' was not declared in this scope
    6 |                 var line = Console.ReadLine();
      |                 ^~~
a.cc:7:29: error: expected ';' before 'data'
    7 |                         var data = line.Split(' ');
      |                             ^~~~
a.cc:8:29: error: expected ';' before 'a1'
    8 |                         var a1 = int.Parse(data[0]); //first integer
      |                             ^~
a.cc:9:29: error: expected ';' before 'b1'
    9 |                         var b1 = int.Parse(data[1]); //sec
      |                             ^~
a.cc:12:17: error: 'Console' was not declared in this scope
   12 |                 Console.WriteLine(((a1-2*b1)<=0?0:a1-2*b1));
      |                 ^~~~~~~
a.cc:12:37: error: 'a1' was not declared in this scope
   12 |                 Console.WriteLine(((a1-2*b1)<=0?0:a1-2*b1));
      |                                     ^~
a.cc:12:42: error: 'b1' was not declared in this scope
   12 |                 Console.WriteLine(((a1-2*b1)<=0?0:a1-2*b1));
      |                                          ^~
Language: C++

using System;
class ProgramB
    {
        static void Main(string[] args)
        {
        var line = Console.ReadLine();
        var data = line.Split(' ');
        var a1 = int.Parse(data[0]); //first integer
        var b1 = int.Parse(data[1]); //sec
          
         Console.WriteLine(((a1-2*b1)<=0?0:a1-2*b1));
           
        }
    }


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:26: error: 'string' has not been declared
    4 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:4:35: error: expected ',' or '...' before 'args'
    4 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:14:6: error: expected ';' after class definition
   14 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ProgramB::Main(int*)':
a.cc:6:9: error: 'var' was not declared in this scope
    6 |         var line = Console.ReadLine();
      |         ^~~
a.cc:7:13: error: expected ';' before 'data'
    7 |         var data = line.Split(' ');
      |             ^~~~
a.cc:8:13: error: expected ';' before 'a1'
    8 |         var a1 = int.Parse(data[0]); //first integer
      |             ^~
a.cc:9:13: error: expected ';' before 'b1'
    9 |         var b1 = int.Parse(data[1]); //sec
      |             ^~
a.cc:11:10: error: 'Console' was not declared in this scope
   11 |          Console.WriteLine(((a1-2*b1)<=0?0:a1-2*b1));
      |          ^~~~~~~
a.cc:11:30: error: 'a1' was not declared in this scope
   11 |          Console.WriteLine(((a1-2*b1)<=0?0:a1-2*b1));
      |                              ^~
a.cc:11:35: error: 'b1' was not declared in this scope
   11 |          Console.WriteLine(((a1-2*b1)<=0?0:a1-2*b1));
      |                                   ^~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: invalid type argument of unary '*' (have 'int')
    7 |   if(A<=B**2)
      |           ^~
a.cc:10:17: error: invalid type argument of unary '*' (have 'int')
   10 |     cout << A-B**2 << endl;
      |                 ^~
Language: C++

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

long long n,a,m,k,q,b,c=1;
float qq,ww,ff=2,qs;
string ss,s1,s2;
int main(){
    cin>>a>>b;
    cout<<max(0,a-b*2);
}


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

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

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

import java.util.*;
import java.lang.*;
public class curtain
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a,b,u;
    println("Enter width of the window");
    a=in.nextInt();
    println("Enter horizontal length of curtain");
    b=in.nextInt();
    u=a-(2*b);
    if(u>0)
      println("Uncovered portion is" +u);
    elseif(u==0)
    println("Uncovered portion is 0");
    elseif(a<2b)
    {
     println("Uncovered portion is 0");
    }
  }
}

    

Compiler output:
Main.java:16: error: ';' expected
    elseif(u==0)
                ^
Main.java:18: error: ')' or ',' expected
    elseif(a<2b)
              ^
Main.java:18: error: ';' expected
    elseif(a<2b)
               ^
3 errors
Language: C++

#include<iostream>

using namspace std;

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namspace'
    3 | using namspace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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
      |                  ^~~~