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

#include <cstdio>
using namespace std;
int main () {
  int A, B;
  cin >> A >> B;
  cout << max(0, A - B - B) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> A >> B;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << max(0, A - B - B) << endl;
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:11: error: 'max' was not declared in this scope
    6 |   cout << max(0, A - B - B) << endl;
      |           ^~~
a.cc:6:32: error: 'endl' was not declared in this scope
    6 |   cout << max(0, A - B - B) << endl;
      |                                ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
Language: C++

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

Compiler output:
a.cc:2:7: error: stray '#' in program
    2 | using #include <bits/stdc++.h>
      |       ^
a.cc:2:8: error: expected nested-name-specifier before 'include'
    2 | using #include <bits/stdc++.h>
      |        ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> A >> B;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:6: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |      cout << A-2*B << endl;
      |      ^~~~
      |      std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |      cout << A-2*B << endl;
      |                       ^~~~
      |                       std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout << "0" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout << "0" << endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>

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

	else
		printf("%d", C)

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:32: error: expected ';' before 'return'
   13 |                 printf("%d", C)
      |                                ^
      |                                ;
   14 | 
   15 |         return 0;
      |         ~~~~~~
Language: C++

#include<stdio.h>

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

	else
		printf("%d", C)

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected unqualified-id before '&' token
    6 |         scanf("%d".&A); scanf("%d", &B);
      |                    ^
a.cc:13:32: error: expected ';' before 'return'
   13 |                 printf("%d", C)
      |                                ^
      |                                ;
   14 | 
   15 |         return 0;
      |         ~~~~~~
Language: C++

#include<stdio.h>

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

	else
		printf("%d", C)

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected unqualified-id before '&' token
    6 |         scanf("%d".&A); scanf("%d", &B);
      |                    ^
a.cc:12:32: error: expected ';' before 'return'
   12 |                 printf("%d", C)
      |                                ^
      |                                ;
   13 | 
   14 |         return 0;
      |         ~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main ()

{

int a,b;

cin>>a>>b;

if(b+b>a) cout << 0\n;

else cout << a-(b+b)\n;

}

Compiler output:
a.cc:13:20: error: stray '\' in program
   13 | if(b+b>a) cout << 0\n;
      |                    ^
a.cc:15:21: error: stray '\' in program
   15 | else cout << a-(b+b)\n;
      |                     ^
a.cc: In function 'int main()':
a.cc:13:20: error: expected ';' before 'n'
   13 | if(b+b>a) cout << 0\n;
      |                    ^~
      |                    ;
a.cc:15:21: error: expected ';' before 'n'
   15 | else cout << a-(b+b)\n;
      |                     ^~
      |                     ;
Language: C++

#include<bits\stdc++.h>
using namespace std;
int a,b;
int main(){
  cin>>a>>b;
  if(a>b*2)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: Java

import java.math.*;
import java.text.SimpleDateFormat;
import java.util.*;
import java.io.*;

public class Solve {


    public static long f(long n){
        if(n==1) return 1;
        return n*f(n-1);
    }

    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        System.out.print(Math.max(a-2*b,0));




    }

    
}


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

#include <stdio.h>
int main() {

  int a, b, c;
  scanf("%d", &a);
  scanf("%d", &b);

  c = a - b * 2  

  printf("%d\n", c);
   return 0;
     }
  }   

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected ';' before 'printf'
    8 |   c = a - b * 2
      |                ^
      |                ;
    9 | 
   10 |   printf("%d\n", c);
      |   ~~~~~~        
main.c: At top level:
main.c:13:3: error: expected identifier or '(' before '}' token
   13 |   }
      |   ^
Language: C

#include <stdio.h>
int main() {

  int a, b, c;
  if(scanf("%d", &a)== 1);
  if(scanf("%d", &b)== 1);

  c = a - b * 2  

  printf("%d\n", c);
   return 0;
     }
  }   

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected ';' before 'printf'
    8 |   c = a - b * 2
      |                ^
      |                ;
    9 | 
   10 |   printf("%d\n", c);
      |   ~~~~~~        
main.c: At top level:
main.c:13:3: error: expected identifier or '(' before '}' token
   13 |   }
      |   ^
Language: C++


#include <iostream>
#include <cstdio>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <math.h>
#include <cmath>
#include <stdlib.h>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <regex>
#include <unordered_set>
#include <string>
#include <map>
#include <iomanip>
#include <sstream>
#include <cassert>
#include <time.h>
#include <numeric>
#include <complex>
 
using namespace std;
using ull = unsigned long long;
using ll = long long;
using ld = long double;
using D = double;
using ii = pair<int, int>;
using vi = vector<int>;
using vii = vector<ii>;
 
#define pb push_back
#define mp make_pair
#define all(x) x.begin(),x.end()
#define makeunique(x) sort(all(x)), (x).resize(unique(all(x)) - (x).begin())
#define rep(i, x)  for(int i = 0; i < (x); i++)
#define rrep(i, x) for(int i = (x - 1); i >= 0; i--)
#define sqrt(x) sqrt(abs(x))
#define y1 y1_1234413
#define j1 j1_235
#define y0 y0_235
#define j0 j0_256
#define fi first
#define se second
#define re return
#define prev PREV
#define next NEXT
#define sz(x) ((int)x.size())
#define FOR(i,a,n) for (int i=(a);i<(n);++i)
#define MEMS(a, b) memset(a, b, sizeof(a))
 
template<typename T> T sqr(T a) { re a * a; }
template<typename T> T gcd(T a, T b) { re b ? gcd(b, a % b) : a; }
template<typename T> T sgn(T a) { re a > 0 ? 1 : (a < 0 ? -1 : 0); }
template<typename T> T abs(T a) { re a > 0 ? a : -a; }
 
const int inf = 2e9;
const ld st = 0.000001;
const ld pi = acos((ld)-1);
const int MAXN = 200001;
const int mod = 1e9 + 7;
 
 
#define FILENAME ""

int main() {
    ios::sync_with_stdio(0);
    cin.tie(NULL);
     //freopen("input.txt", "r", stdin);
     //freopen("output.txt", "w", stdout);
    ll a, b;
    cin >> a >> b;
    cout << max((ll) 0, a - 2*b);x    
    return 0;
}

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

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

typedef long long int ll;
// priority_queue<pi, vector<pi>, greater<pi> > pq; //min heap

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

	ll a,b;
	cin>>a>>b;

	cout<<min(a-2*b,0)<<"\n";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: no matching function for call to 'min(ll, int)'
   16 |         cout<<min(a-2*b,0)<<"\n";
      |               ~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: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:16:18: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'int')
   16 |         cout<<min(a-2*b,0)<<"\n";
      |               ~~~^~~~~~~~~
/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:16:18: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   16 |         cout<<min(a-2*b,0)<<"\n";
      |               ~~~^~~~~~~~~
Language: C++

#include <algorithm>

int main(void)
{
  int a, b, ans;
  scanf("%d %d", &a, &b);
  ans = std::max(0, a - 2 * b);
  printf("%d", ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf' was not declared in this scope
    6 |   scanf("%d %d", &a, &b);
      |   ^~~~~
a.cc:8:3: error: 'printf' was not declared in this scope
    8 |   printf("%d", ans);
      |   ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <algorithm>
  +++ |+#include <cstdio>
    2 |
Language: Java

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

Compiler output:
Main.java:4: error: ')' or ',' expected
    Scanner sc = new Scanner(System in);
                                   ^
Main.java:4: error: not a statement
    Scanner sc = new Scanner(System in);
                                    ^
Main.java:4: error: ';' expected
    Scanner sc = new Scanner(System in);
                                      ^
Main.java:11: error: reached end of file while parsing
    System.out.println(c);
                          ^
4 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main()
{
  ll A,B;
  cin>>A>>B;
  ll rem=max(0,A-2*B);
  cout<<rem<<"\n";
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: expected ')' before ';' token
    7 |   ans= max(0LL,a-(b*2) ;
      |           ~           ^~
      |                       )
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1e9
#define ALL(v) v.begin(),v.end()
typedef long long ll;
int main() {
  int a,b;
  cin >> a >> b;
  int s=a-2*b;
  if(s>0){
    cout << s << endl;

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


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

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

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

Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int ans = A - 2*B;
        if (ans < 0)
        {
            ans = 0;
        }
        System.out.println(ans);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner sc = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
        if (ans < 0)
        ^
Main.java:8: error: class, interface, enum, or record expected
        }
        ^
3 errors
Language: Java

import java.util.Scanner;

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

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

#include <stdio.h>
int main ()
{
   int A,B;

   scanf("%d %d",&A,&B);

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


    return.0

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected ';' before '}' token
   19 |     return.0
      |             ^
      |             ;
   20 | 
   21 | }
      | ~
Language: C++

#include <stdio.h>
int main ()
{
   int A,B;

   scanf("%d %d",&A,&B);

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


    return.0

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected ';' before '}' token
   19 |     return.0
      |             ^
      |             ;
   20 | 
   21 | }
      | ~
Language: C++

#include <stdio.h>
int main ()
{
   int A,B;

   scanf("%d %d",&A,&B);

    printf("%d",A-2*B);

    return.0

}


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

int a,b;
scanf(&a,"%c");

scanf(&b,"%c");

if(a<b*2)print('0');

else print("%d",a-b*2);

Compiler output:
a.cc:2:6: error: expected constructor, destructor, or type conversion before '(' token
    2 | scanf(&a,"%c");
      |      ^
a.cc:4:6: error: expected constructor, destructor, or type conversion before '(' token
    4 | scanf(&b,"%c");
      |      ^
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(a<b*2)print('0');
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else print("%d",a-b*2);
      | ^~~~
Language: C++

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

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

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

int main() {
    int n;
    cin >> n;
    int l[n];
    for (int i=0; i<n; i++) cin >> l[i];
    int ans = 0;
    int L[2001];
    for (int i=0; i<2001; i++) L[i] = 0;
    int s[2002];
    for (int i=0; i<2002; i++) s[i] = 0;
    for (int k=0; k<n; k++) L[l[k]-1] += 1;
    for (int x=0; x<2001; x++) s[x+1] = s[x] + L[x];
    for (int i=0; i<n-1; i++) {
        for (int j=i+1; j<n; j++) {
            int exc = 0;
            int m = abs(l[i]-l[j]);
            int M = l[i] + l[j];
            if (l[i] > m) exc += 1;
            if (l[j] > m) exc += 1;
            ans += s[M] - s[m] - L[M-1] - exc;

        }
    }

    cout << ans/3 << endl;
    
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> n;
      |     ^~~
a.cc:16:21: error: 'abs' was not declared in this scope; did you mean 'ans'?
   16 |             int m = abs(l[i]-l[j]);
      |                     ^~~
      |                     ans
a.cc:25:5: error: 'cout' was not declared in this scope
   25 |     cout << ans/3 << endl;
      |     ^~~~
a.cc:25:22: error: 'endl' was not declared in this scope
   25 |     cout << ans/3 << endl;
      |                      ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vc= vector<char>;
#define REP(i,x,n) for(int i=x; i<n; i++)
#define rep(i,n) REP(i,0,n)
#define all(x) x.begin(), x.end()


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:17:8: error: expected primary-expression before '>' token
   17 |   if(a=>b*2){
      |        ^
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 {


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected '}' at end of input
   10 |         else {
      |              ~^
a.cc:10:15: error: expected '}' at end of input
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  int a,b;
  cin>>a>>b;
  for(int i=0;i<1e9;i++);
  cout<<max(0,n-2*m);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'n' was not declared in this scope
    8 |   cout<<max(0,n-2*m);
      |               ^
a.cc:8:19: error: 'm' was not declared in this scope
    8 |   cout<<max(0,n-2*m);
      |                   ^
Language: C++

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

int main(){
  int a,b;
  cin>>a>>b;
  for(int i=0;i<1e9;i++);
  cout<<max(0,n-2*m);
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'n' was not declared in this scope
    8 |   cout<<max(0,n-2*m);
      |               ^
a.cc:8:19: error: 'm' was not declared in this scope
    8 |   cout<<max(0,n-2*m);
      |                   ^
a.cc:8:22: error: expected '}' at end of input
    8 |   cout<<max(0,n-2*m);
      |                      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int n;
  cin >> n; 
  vector<int> l(n),L(100000);
  for(int i=0;i<n;i++){
    cin >> l.at(i);
    L.at(l.at(i))++;
  }
  
  sort(l.begin(),l.end());
  long long ans =0;
  
  for(int i=0;i<n-2;i++){
      for(int k=j+1;k<n;k++){
        if(l.at(k) < l.at(i) + l.at(j)){
          ans++;
        }
      }
    }
  }
  
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: 'j' was not declared in this scope
   17 |       for(int k=j+1;k<n;k++){
      |                 ^
a.cc: At global scope:
a.cc:25:3: error: 'cout' does not name a type
   25 |   cout << ans << endl;
      |   ^~~~
a.cc:26:3: error: expected unqualified-id before 'return'
   26 |   return 0;
      |   ^~~~~~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a >> b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << max(0, 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:6:11: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |   cout << max(0, a - 2*b);
      |           ^~~
      |           std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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

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

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(a,b){scanf("%d%d",&a,&b);printf("%d",a<b*2?0,a-b*2);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:1: error: type of 'b' defaults to 'int' [-Wimplicit-int]
main.c:1:11: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);printf("%d",a<b*2?0,a-b*2);}
      |           ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(a,b){scanf("%d%d",&a,&b);printf("%d",a<b*2?0,a-b*2);}
main.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(a,b){scanf("%d%d",&a,&b);printf("%d",a<b*2?0,a-b*2);}
      |           ^~~~~
main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:31: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(a,b){scanf("%d%d",&a,&b);printf("%d",a<b*2?0,a-b*2);}
      |                               ^~~~~~
main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:31: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:31: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:56: error: expected ':' before ')' token
    1 | main(a,b){scanf("%d%d",&a,&b);printf("%d",a<b*2?0,a-b*2);}
      |                                                        ^
      |                                                        :
Language: C++

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

#include <iostream>

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
  
  long long A, B;
  cin >> A >> B;
  
  cout << max(0, A - 2*B) << endl;
}


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

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
  
  long long A,B,ans;
  cin >> A >> B;
  ans = max(0,A-2*B);
  
  cout << ans << endl;
}


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

Compiler output:
a.cc:1:24: error: missing terminating > character
    1 | #include<bits/stdc++.h.
      |                        ^
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>

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

Compiler output:
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream> 
#include<algorithm> 
int n,k;
int main ()
{ std::cin>>n>>k;
 cout << max(n-2*k,0); 
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |  cout << max(n-2*k,0);
      |  ^~~~
      |  std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:10: error: 'max' was not declared in this scope; did you mean 'std::max'?
    6 |  cout << max(n-2*k,0);
      |          ^~~
      |          std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:2:
/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++

		/*Read the problem carefully before starting to work on it*/
#include <bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
//using namespace boost::multiprecision;
//#include <ext/pb_ds/assoc_container.hpp> 
//#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
//using namespace __gnu_pbds;

typedef long long ll;

//ll ncr(ll n,ll r){ll ans=1;r=min(r,n-r);for (int i=1;i<=r;i++){ans*=(n-r+i);ans/=i;}return ans;}

#define pb push_back
#define eb emplace_back
#define mp(x,y) make_pair(x,y)
#define mod 1000000007

double PI=3.1415926535897932384626;

//template<typename T> T power(T x,T y,ll m=mod){T ans=1;while(y>0){if(y&1LL) ans=(ans*x)%m;y>>=1LL;x=(x*x)%m;}return ans%m;}

//typedef tree<ll,null_type,less<ll>,rb_tree_tag,tree_order_statistics_node_update> ost;

#define fi first
#define se second

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


//252908XL

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

import java.util.Scanner;
public class Takoyaki {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();

		int sum = 0;
		int [] a = new int[n];
		for(int i = 0;i < n; i++) {
			a[i] = stdIn.nextInt();
		}

		for(int i = 0; i < n; i++) {
			for(int j = 1; j>i+1 && j < n; j++) {
				sum+=(a[i])+(a[j]);
			}
		}

		System.out.println(sum);


	}

}


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

#include <stdio.h>
int main() {
 int A, B;
 loop:;
  if(scanf("%d", &A)== 1);
  if(scanf("%d", &B)== 1);
  
  if (1 <= A <= 100 && 1<= B <= 100) {
  goto loop;
}else{
     printf("%d\n", c);
   return 0;
     }
  }   

Compiler output:
main.c: In function 'main':
main.c:11:21: error: 'c' undeclared (first use in this function)
   11 |      printf("%d\n", c);
      |                     ^
main.c:11:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(){
   int a,c=0;
   int k[a];
   for(a=1; a<a(a-1)/2; a++){
       printf("%d",k[a]);
      c=c+k[a];
   }
  
   printf("%d",c);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: called object 'a' is not a function or function pointer
    5 |    for(a=1; a<a(a-1)/2; a++){
      |               ^
main.c:3:8: note: declared here
    3 |    int a,c=0;
      |        ^
Language: C

#include <stdio.h>
int main() {

 loop:;
  
  int A;
  if(scanf("%d", &A)== 1);
 
  int B;
  if(scanf("%d", &B)== 1);
  if (1 <= A <= 100 && 1<= B <= 100) {
  goto loop;
}else{
     printf("%d\n", c);
   return 0;
     }
  }   

Compiler output:
main.c: In function 'main':
main.c:14:21: error: 'c' undeclared (first use in this function)
   14 |      printf("%d\n", c);
      |                     ^
main.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>
int main(){
  int N;
  scanf("%d",&N);
  int L[N];
  int i,j,k;
  for(i=1;i<=N;++i){
scanf("%d",&L[i]);
  }
  int c2;
  c2=N;
  for(i=1;i<=N-2;++i){
    for(j=i+1;j<=N-1;++j){
for(k=j+1;k<=N;++j){
  if(L[i]=L[j]+L[k]||L[j]=L[i]+L[k]||L[k]=L[i]+L[j]){
    c2+=-1;
}
}
    }
  }
  printf("%d\n",c2);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: lvalue required as left operand of assignment
   15 |   if(L[i]=L[j]+L[k]||L[j]=L[i]+L[k]||L[k]=L[i]+L[j]){
      |                           ~~~~~~~~~^~~~~~
Language: C++

#include <stdio.h>
int main() {

 loop:;
  
  int A;
  if(scanf("%d", &A)== 1);
 
  int B;
  if(scanf("%d", &B)== 1);
  if (1 <= A <= 100 && 1<= B <= 100) {
  goto loop;
}else{
     printf("%d\n", c);
   return 0;
     }
  }   

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: 'c' was not declared in this scope
   14 |      printf("%d\n", c);
      |                     ^
Language: C++

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

int main() {
  int N,s;
  cin >> N;

  vector<int>d(N);
  
  for (int i = 0; i < N; i++) {
    cin >> d.at(i);
  }
for (int i = 0; i < N-1; i++) {
  for (int j = 0; j < N; j++) {
 s=d.at(i)*d.at(j)
  }
 }
    


  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: expected ';' before '}' token
   15 |  s=d.at(i)*d.at(j)
      |                   ^
      |                   ;
   16 |   }
      |   ~                
a.cc:17:3: error: expected '}' at end of input
   17 |  }
      |   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <stdio.h>
int main() {

 loop:;
  
  int A;
  if(scanf("%d", &A)== 1);
 
  int B;
  if(scanf("%d", &B)== 1);
  if (1 <= A <= 100 && 1<= B <= 100) {
  goto loop;
  }else{
     if (A - B < 0){
         goto loop;
     }else{
     printf("%d\n", c);
   return 0;
     }
  }   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: 'c' was not declared in this scope
   17 |      printf("%d\n", c);
      |                     ^
Language: C++

#include<iostream>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
int main() {
	//input
	int n,count=0;
	int d[2000];
	cin >> n;

	rep(i, n) {
		cin >> d[i];
	}
	
	//compute

	rep(k, n - 2) {
		for (int j = k + 1; j < (n - 1); j++) {
			for (int m = j + 1; m < n; m++) {
				if (d[k] < (d[j] + d[m]) ){
					if (d[j] < (d[m] + d[k])) {
						if(d[m] < (d[k] + d[j])) {
						count++;
					}
				}
			}
		}
	}
	


	//output
	cout << count;

	return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:35:2: error: expected '}' at end of input
   35 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


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

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
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;
      |               ^
Language: C

#include <stdio.h>
int main() {

 loop:;
  
  int A;
  if(scanf("%d", &A)== 1);
 
  int B;
  if(scanf("%d", &B)== 1);
  if (1 <= A <= 100 && 1<= B <= 100) break;
  goto loop;
  
   printf("%d\n", A - B);
   return 0;
   
}


Compiler output:
main.c: In function 'main':
main.c:11:38: error: break statement not within loop or switch
   11 |   if (1 <= A <= 100 && 1<= B <= 100) break;
      |                                      ^~~~~
Language: C

#include <stdio.h>

int main(void){
    int n=0;
  scanf("%d",&n);
  int L[n];
  for(int i=0;i<n;i++){
 	scanf("%d",&L[i]);
 }
//ここまで入力
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]&&L[j]<L[k]+L[i]&&L[k]<L[i]+L[j]){
  	        sum++;
  	        }
  	    }
    }
  }
  printf("%d",sum);
}


Compiler output:
main.c: In function 'main':
main.c:15:17: error: 'sum' undeclared (first use in this function)
   15 |                 sum++;
      |                 ^~~
main.c:15:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main() {

 loop:
  
  int A;
  if(scanf("%d", &A)== 1);
 
  int B;
  if(scanf("%d", &B)== 1);
  if (1 <= A <= 100 && 1<= B <= 100) break;
  goto loop;
  
   printf("%d\n", A - B);
   return 0;
   
}


Compiler output:
main.c: In function 'main':
main.c:11:38: error: break statement not within loop or switch
   11 |   if (1 <= A <= 100 && 1<= B <= 100) break;
      |                                      ^~~~~
Language: C

#include <stdio.h>
int main() {

 loop;
  
  int A;
  if(scanf("%d", &A)== 1);
 
  int B;
  if(scanf("%d", &B)== 1);
  if (1 <= A <= 100 && 1<= B <= 100) break;
  goto loop;
  
   printf("%d\n", A - B);
   return 0;
   
}

Compiler output:
main.c: In function 'main':
main.c:4:2: error: 'loop' undeclared (first use in this function)
    4 |  loop;
      |  ^~~~
main.c:4:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:38: error: break statement not within loop or switch
   11 |   if (1 <= A <= 100 && 1<= B <= 100) break;
      |                                      ^~~~~
main.c:12:3: error: label 'loop' used but not defined
   12 |   goto loop;
      |   ^~~~
Language: C

#include <stdio.h>
int main() {
 
 for(;;){

  int A;
  if(scanf("%d", &A)== 1);
 
  int B;
  if(scanf("%d", &B)== 1);
  if (1 <= A, B <= 100) break;
 }
   
  printf("%d\n", A - B);
  return 0;

}

Compiler output:
main.c: In function 'main':
main.c:14:18: error: 'A' undeclared (first use in this function)
   14 |   printf("%d\n", A - B);
      |                  ^
main.c:14:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:22: error: 'B' undeclared (first use in this function)
   14 |   printf("%d\n", A - B);
      |                      ^
Language: C

#include <stdio.h>
int main() {
 
 for(;;){

  int A;
  if(scanf("%d", &A)== 1);
 
  int B;
  if(scanf("%d", &B)== 1);
 if (1 <= A, B <= 100) break;

  printf("%d\n", A - B);
  return 0;

}

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

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

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



}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'emdl' was not declared in this scope
   10 |     cout << 0 << emdl;
      |                  ^~~~