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

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

int main() {
    ll L,R; cin >> L >> R; int ans=20000;
    if(R-L>=2019)cout << 0 << endl;
    else{
    for(ll i=L;i<R;i++){
      for(ll j=i+1;j<=R;j++){
        ans=min(ans,((i%2019)*(j%2019))%2019);
      }
    }
      cout << ans << endl;
    }
        
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: no matching function for call to 'min(int&, long long int)'
   12 |         ans=min(ans,((i%2019)*(j%2019))%2019);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:12:16: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   12 |         ans=min(ans,((i%2019)*(j%2019))%2019);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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:12:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   12 |         ans=min(ans,((i%2019)*(j%2019))%2019);
      |             ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

#include <iostream>
using namespace std;
void main(){
  int n,a,b;
  cin>>n>>a>>b;
  if(n*a<=b) cout<<n*a<<endl;
  else cou<<b<<endl;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:8: error: 'cou' was not declared in this scope
    7 |   else cou<<b<<endl;
      |        ^~~
Language: C++

#include<iostream>
int main(){
  int a, b, n;
  cin >> n >> a >> b;
  cout << min(n * a, b);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> n >> 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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout << min(n * a, b);
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:11: error: 'min' was not declared in this scope; did you mean 'std::min'?
    5 |   cout << min(n * a, b);
      |           ^~~
      |           std::min
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C

#include<stdio.h>
int main(){
  int L,R;
  printf("L");
  scanf("%d",&L);
  printf("R");
  scanf("%d:",&R);
  int max=0;
  if(L<0||R<0){
    printf("error");
  } else {
    for(int i=L;i<=R-1;i++){
      for(int j=i+1;j<=R;j++){
        if( max < (i*j) % 2019){
          max = (i*j)%2019;
        }
      }
    }
    printf("%d\n",max);
}

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

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

#define N ((int)1e5 + 1)
#define forn(i,x,y) for(int i = int(x); i<int(y); i++)
#define debug(x) cerr << #x << " == " << (x) << '\n';

template<typename T> ostream &operator<<(ostream &out, const pair<T, T> &P){ out << P.first << ' ' << P.second; return out; }
template<typename T>
ostream &operator<<(ostream &out, const vector<T> &V){ for(int i = 0; i<V.size(); ++i) out << V[i] << (i == V.size() - 1 ? "" : " "); return out; }

template<typename T> istream &operator>>(istream &in, vector<T> &V){ for(T &i : V) in >> i; return in; }
template<typename T> istream &operator>>(istream &in, pair<T,T> &P){ in >> P.first >> P.second; return in; }

int main(){
    ios::sync_with_stdio(false);
    int n, a, b; cin >> n >> a >> b;
    cout << min(b, n*a) << '\n';

    return 0;
}

/* don't forget to check:
   int overflow
   min/max cases
   printing index of sorted array
   limits for ans
 *

Compiler output:
a.cc:23:1: error: unterminated comment
   23 | /* don't forget to check:
      | ^
Language: C

#inculude<stdio.h>

int main(){
  int n,a,b;
  scanf("%d %d %d",&n,&a,&b);
  if(n*a <= b){
    printf("%d",n*a);
  }else{
    printf("%d",b);
  }
}

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

import java.util.*;

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

Compiler output:
Main.java:10: error: > or ',' expected
    if(N*A =< B){
               ^
1 error
Language: C++

#include<bits/stdio.h>
using namespace std;
int main()
{
  int a, b, c;
  cin >> a >> b >> c;
  cout << min(a * b, c);
  return 0;
}


Compiler output:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<bits/stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << min(a * b, c);
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:11: error: 'min' was not declared in this scope; did you mean 'main'?
    7 |   cout << min(a * b, c);
      |           ^~~
      |           main
Language: C++

#include<iostream>
#include<string>
#include<cmath>

using namespace std;

template<class T>
T min(T l, T r) {
	return l > r ? r : l;
}
template<class T>
T max(T l, T r) {
	return l > r ? l : r;
}

int main() {
	int n, a, b;
	cin >> n >> a >> b;
	cout << min(n * a, b) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: call of overloaded 'min(int, int&)' is ambiguous
   19 |         cout << min(n * a, b) << endl;
      |                 ~~~^~~~~~~~~~
a.cc:8:3: note: candidate: 'T min(T, T) [with T = int]'
    8 | T min(T l, T r) {
      |   ^~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
Language: Java

import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A = scan.nextInt();
        int B = scan.nextInt();

        if(N*A > B){

            System.out.println(N*A);

        }else{

            System.out.println(B);
        }

    }

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

#include<iostream>
using na,espace std;
int main(){
  int n,a,b;cin>>n>>a>>b;
  cout<<min(n*a,b)<<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'na'
    2 | using na,espace std;
      |       ^~
a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int n,a,b;cin>>n>>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:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<min(n*a,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:5:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
    5 |   cout<<min(n*a,b)<<endl;
      |         ^~~
      |         std::min
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:5:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout<<min(n*a,b)<<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<iostream>
#include<string>
#include<stdio.h>
#include<cctype>
#include<algorithm>
#include<climits>
#include<cmath>
#include<map>
#include<vector>
#define INF INT_MAX
using namespace std;

int N, A, B;

int main(){
	cin >> N >> A >> B;
	A *= N;
	if (A < B){
		cout << A << endl;
	}
	else if (A > B) {
		cout << B << endl;
	}
	else {
		cout << A << endl;
	}


	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:29:18: error: expected '}' at end of input
   29 |         return 0;
      |                  ^
a.cc:15:11: note: to match this '{'
   15 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'if'
    8 |   if (X >= B) {
      |   ^~
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int a = input.nextInt();
        int b = input.nextInt();

        System.out.println(a *n < b ? a*n:b);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner input = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner input = new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

#include<stdio.h>
int main(){
 int a, b, c;
 scanf(a,b,c,%d,%d,%d);
 if(b*n > c){
   printf("b*n");
 }else if(b*n < c){
   printf("c");
 }
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: expected expression before '%' token
    4 |  scanf(a,b,c,%d,%d,%d);
      |              ^
main.c:4:8: error: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion]
    4 |  scanf(a,b,c,%d,%d,%d);
      |        ^
      |        |
      |        int
In file included from main.c:1:
/usr/include/stdio.h:428:42: note: expected 'const char *' but argument is of type 'int'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:5:7: error: 'n' undeclared (first use in this function)
    5 |  if(b*n > c){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
 int a, b, c;
 scanf(%d,%d,%d,a,b,c);
 if(b*n > c){
   printf("b*n");
 }else if(b*n < c){
   printf("c");
 }
}

Compiler output:
main.c: In function 'main':
main.c:4:8: error: expected expression before '%' token
    4 |  scanf(%d,%d,%d,a,b,c);
      |        ^
main.c:5:7: error: 'n' undeclared (first use in this function)
    5 |  if(b*n > c){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
 int N , A , B ;
  cin >> N , A , B ;
  if(N * A >= B){
    cout << B << endl ;
  }
  if(N * A <= B){
    cout << N * A << endl ;
  }

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

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

int main() {
 int N , A , B ;
  if(N * A >= B){
    cout << B;
  }
  if(N * A <= B){
    cout << N * A;
  }

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

import java.util.*;
class Ans{
public static void main(String[] args){

	Scanner s = new Scanner(System.in);
  	int a = s.nextInt() , b = s.nextInt() , c = s.nextInt();
  	System.out.println( (int)Math.min(a*b , c );

	}
}

Compiler output:
Main.java:7: error: ')' or ',' expected
  	System.out.println( (int)Math.min(a*b , c );
  	                                           ^
1 error
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;
#define NMAX 11
#define DMAX 11
int n , d;

bool integer(int a){
    int b = sqrt(a);
    return a == b * b;
}

int X[NMAX][DMAX];

int getdis(int X[],int Y[]){
    int sum = 0;
    for(int i = 0;i < d;i++){
        sum += (X[i] - Y[i]) * (X[i] - Y[i]); 
    }

    return sum;
}

int main(){
    cin >> n >> d;
    for(int i = 0;i < n;i++){
        for(int j = 0;j < d;j++){
            cin >> X[i][j];
        }
    }
    int cnt = 0;
    for(int i;i < n;i++){
        for(int j = 0;j < n;j++){
            if(i == j) continue;
            if(integer(getdis(X[i],X[j]))){
                cnt++;
            }
        }
    }

    cout << cnt;

    return 0;

}

Compiler output:
a.cc: In function 'bool integer(int)':
a.cc:9:13: error: 'sqrt' was not declared in this scope
    9 |     int b = sqrt(a);
      |             ^~~~
Language: C++

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

int main(){
	int N, A, B;
	cin >> N >> A >> B;
	int ans = min(N * A, B)
	cout << ans << endl;
}

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

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

int main(){
	int N, A, B;
	cin >> N >> A >> B;
	
	cout < min(N * A, B) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:30: error: invalid operands of types 'const int' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |         cout < min(N * A, B) << endl;
      |                ~~~~~~~~~~~~~~^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'c' was not declared in this scope
    7 |   c=n*a;
      |   ^
Language: C++

#include <iostream>
#include <cmath>

using namespace std;
bool isint(int x)
{
  int root = sqrt(x);
  if(x/root==root)
    return true;
  else
    return false;
}
  
int main()
{
  int n,d;
  cin>>n>>d;
  int point[n][d];
  int count=0;
  for(int i=0;i<n;i++)
  {
    for(int j=0;j<d;j++)
    {
      cin>>point[i][j];
    }
  }
  for(int i=0;i<n;i++)
  {
    for(int j=i+1;j<n;j++)
    {
      int dist = 0;
      for(int k=0;k<d;k++)
     	 dist += (points[i][k]-points[j][k])*(points[i][k]-points[j][k]);
      if(isint(dist)
         count++;
    }
    
  }
  cout<<count;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:19: error: 'points' was not declared in this scope; did you mean 'point'?
   33 |          dist += (points[i][k]-points[j][k])*(points[i][k]-points[j][k]);
      |                   ^~~~~~
      |                   point
a.cc:34:21: error: expected ';' before 'count'
   34 |       if(isint(dist)
      |                     ^
      |                     ;
   35 |          count++;
      |          ~~~~~       
a.cc:36:5: error: expected primary-expression before '}' token
   36 |     }
      |     ^
a.cc:35:18: error: expected ')' before '}' token
   35 |          count++;
      |                  ^
      |                  )
   36 |     }
      |     ~             
a.cc:34:9: note: to match this '('
   34 |       if(isint(dist)
      |         ^
a.cc:36:5: error: expected primary-expression before '}' token
   36 |     }
      |     ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n>>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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<n*a;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

bool check(long n) {
  return long(sqrt(n)) * long(sqrt(n)) == n;
}

long dis(vector<int> a, vector<int> b, int n) {
  vector<pair<int,int>> t(n);
  for(int i = 0; i < n; i++)
    t[i].first = a[i], t[i].second = b[i];
  long x = accumulate(t.begin(), t.end(), 0, [](pair<int,int> a, pair<int,int> b) { return (a.first-a.second)*(a.first-a.second) + (b.first-b.second)*(b.first-b.second);});
  if(check(x)) return x;
  else return -1;
}

int main() {
  int m,n;
  cin >> m >> n;
  vector<vector<int>> arr(m);
  for(auto &i:arr) i.resize(n);
  
  for(int i = 0; i < m; i++)
    for(int j = 0; j < n; j++)
      cin >> arr[i][j];
  for(int i = 0; i < m; i++)
    for(int j = i+1; j < m; j++) {
      long x = dis(arr[i], arr[j], n);
      if(x != -1) {
      	cout << x;
        return 0;
      }
    }
}


Compiler output:
In file included from /usr/include/c++/14/numeric:62,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_numeric.h: In instantiation of '_Tp std::accumulate(_InputIterator, _InputIterator, _Tp, _BinaryOperation) [with _InputIterator = __gnu_cxx::__normal_iterator<pair<int, int>*, vector<pair<int, int> > >; _Tp = int; _BinaryOperation = dis(std::vector<int>, std::vector<int>, int)::<lambda(pair<int, int>, pair<int, int>)>]':
a.cc:12:22:   required from here
   12 |   long x = accumulate(t.begin(), t.end(), 0, [](pair<int,int> a, pair<int,int> b) { return (a.first-a.second)*(a.first-a.second) + (b.first-b.second)*(b.first-b.second);});
      |            ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_numeric.h:169:29: error: no match for call to '(dis(std::vector<int>, std::vector<int>, int)::<lambda(std::pair<int, int>, std::pair<int, int>)>) (int&, std::pair<int, int>&)'
  169 |         __init = __binary_op(_GLIBCXX_MOVE_IF_20(__init), *__first);
      |                  ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_numeric.h:169:29: note: candidate: 'int (*)(std::pair<int, int>, std::pair<int, int>)' (conversion)
/usr/include/c++/14/bits/stl_numeric.h:169:29: note:   candidate expects 3 arguments, 3 provided
a.cc:12:46: note: candidate: 'dis(std::vector<int>, std::vector<int>, int)::<lambda(std::pair<int, int>, std::pair<int, int>)>'
   12 |   long x = accumulate(t.begin(), t.end(), 0, [](pair<int,int> a, pair<int,int> b) { return (a.first-a.second)*(a.first-a.second) + (b.first-b.second)*(b.first-b.second);});
      |                                              ^
a.cc:12:46: note:   no known conversion for argument 1 from 'int' to 'std::pair<int, int>'
Language: Java

import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int A=sc.nextInt();
int B=sc.nextInt();
System.out.println(max(N*A,B));
}
}

Compiler output:
Main.java:8: error: cannot find symbol
System.out.println(max(N*A,B));
                   ^
  symbol:   method max(int,int)
  location: class Main
1 error
Language: Java

import java.util.Scanner;

class Main {
    
    Main main = new Main ();
    
    Scanner sc = new Scanner (System.in);
    
    int N = sc.nextInt();
    int A = sc.nextInt();
    int B = sc.nextInt();
    
    if (N*A>B){
        System.out.println(B);
    } else {
        System.out.println(A);
    }
}

Compiler output:
Main.java:13: error: illegal start of type
    if (N*A>B){
    ^
Main.java:13: error: <identifier> expected
    if (N*A>B){
         ^
Main.java:13: error: <identifier> expected
    if (N*A>B){
           ^
Main.java:13: error: <identifier> expected
    if (N*A>B){
             ^
Main.java:15: error: illegal start of type
    } else {
      ^
5 errors
Language: C++

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

int main()
{
  cout << min(n * a, b) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cout << min(n * a, b) << endl;
      |               ^
      |               yn
a.cc:6:19: error: 'a' was not declared in this scope
    6 |   cout << min(n * a, b) << endl;
      |                   ^
a.cc:6:22: error: 'b' was not declared in this scope
    6 |   cout << min(n * a, b) << endl;
      |                      ^
Language: Java

import java.util.Scanner;

public class _133 {

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

			System.out.println(B);
		}
	}
}

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

#include<iostream>
#include<vector>
#define MAX_N 100000
#define MOD (1000000007)
#define int long long
using namespace std;
vector<int> g[MAX_N];
int n,k,a,b;
int P(int n,int r){
  int tmp=1;
  for(int i=0;i<r;i++){
    tmp*=(n-i);
    tmp%=MOD;
  }
  return tmp%MOD;
}
int dfs(int now,int from){
  int next_val,result=1,K;
  if(from==-1){
    K=P(k-1,g[now].size());
  }else{
    K=P(k-2,g[now].size()-1);
  }
  for(int i=0;i<g[now].size();i++){
    if(g[now][i]==from) continue;
    else{
      result *=dfs(g[now][i],now);
      result %= MOD;
    }
  }
  return (K*result)%MOD;
}
int main(){
  int ans=1;
  cin >> n >> k;
  for(int i=0;i<n-1;i++){
    cin >> a >> b;
    a--;
    b--;
    g[a].push_back(b);
    g[b].push_back(a);
  }
  cout <<(dfs(0,-1)*k)%MOD<<endl;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <utility>
#include <tuple>
#include <string>
#include <cctype>
#include <cstdio>
#include <math.h>
using i8 = int8_t;
using u8 = uint8_t;
using i16 = int16_t;
using u16 = uint16_t;
using i32 = int32_t;
using u32 = uint32_t;
using i64 = int64_t;
using u64 = uint64_t;

using f32 = float;
using f64 = double;
using f80 = __float80;
constexpr i64 INF = 1'010'000'000'000'000'017LL;

constexpr i64 MOD = 1'000'000'007LL;

constexpr f64 EPS = 1e-12;

constexpr f64 PI = 3.14159265358979323846;
using namespace std;
#define rep(i, n) for (i64 i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (i64 i = m; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.begin(), x.end())
#define all(x) (x).begin(), (x).end()
#define fst first
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pob pop_back
#define sw swap
#define UP(x) transform(x.begin(), x.end(), x.begin(), ::toupper);
#define down(x) transform(x.begin(), x.end(), x.begin(), ::tolower);
using LL = long long;
using ULL = unsigned long long;
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return 1;
    }
    return 0;
}

int main()
{
  cin.tie(0);
ios::sync_with_stdio(false);
i64 L, R,w;
cin >> L >> R;
  w= L*R;
if(R-L>=2019)return cout << 0,0;
FOR(i,L,R){
		for(j=L+1;j<=R;j++)
			w=min(w,(i*j)%2019);
}
cout << w << endl;
  return 0;
}

Compiler output:
a.cc:13:12: error: 'uint8_t' does not name a type
   13 | using u8 = uint8_t;
      |            ^~~~~~~
a.cc:12:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   11 | #include <math.h>
  +++ |+#include <cstdint>
   12 | using i8 = int8_t;
a.cc:15:13: error: 'uint16_t' does not name a type
   15 | using u16 = uint16_t;
      |             ^~~~~~~~
a.cc:15:13: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc:17:13: error: 'uint32_t' does not name a type
   17 | using u32 = uint32_t;
      |             ^~~~~~~~
a.cc:17:13: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc:19:13: error: 'uint64_t' does not name a type
   19 | using u64 = uint64_t;
      |             ^~~~~~~~
a.cc:19:13: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc: In function 'int main()':
a.cc:77:21: error: 'j' was not declared in this scope
   77 |                 for(j=L+1;j<=R;j++)
      |                     ^
Language: C

#include<stdio.h>


int D,N,n,d,x[100][100],q[110];
int uke(int x[100][100])
{
	scanf("%d%d",&N,&D);
	for(n=1;n<=N;n++){
		for(d=1;d<=D;d++){
			scanf("%d",&x[n][d]);
		}		
	}
	return x[n][d];
}
int y[30],p[30];
int sa(int y[30])
{	
	for(d=1;d<=D;d++){
		for(n=1;n<=N;n++){
			if (i == j) continue;
				q[n] = 0;
			for (k = 0; k < d; k++) {
				q[n] += (x[i][k] - x[j][k]) * (x[i][k] - x[j][k]);
			}		
			
			
			
			/*y[d]=x[n][d]-x[n+1][d];
			
			p[d]=y[d]*y[d];
			q[n]=p[n]+p[n+1];
		}	
		y[d]=x[1][d]-x[N][d];
		p[d]=y[d]*y[d];
		q[n]=p[n]+p[n+1];*/
			
	}

	for(int x=0;x<20;x++){		
		if(q[n]==x*x){
			return 1;
		}
	}
}



int num=0;

int main()
{
	uke(x);
	sa(y);
	if(sa(y)){
		num++;
	}
	printf("%d\n",num);
	return 0;
}

	
	
	
	
	
	
	


Compiler output:
main.c: In function 'sa':
main.c:20:29: error: 'i' undeclared (first use in this function)
   20 |                         if (i == j) continue;
      |                             ^
main.c:20:29: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:34: error: 'j' undeclared (first use in this function)
   20 |                         if (i == j) continue;
      |                                  ^
main.c:22:30: error: 'k' undeclared (first use in this function)
   22 |                         for (k = 0; k < d; k++) {
      |                              ^
main.c:59:1: error: expected declaration or statement at end of input
   59 | }
      | ^
Language: Java

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

Compiler output:
Main.java:9: error: cannot find symbol
      System.out.pritnln(n*a);
                ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: Java

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

Compiler output:
Main.java:4: error: ';' expected
    Scanner sc = new Scanner(System.in):
                                       ^
Main.java:12: error: ';' expected
	  System.out.println(b):
	                       ^
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int n, a, b;
  scanf("%d %d %d", &n, &a, &b);4 2 7
  printf("%d", min(a * n, b));
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: expected ';' before numeric constant
    7 |   scanf("%d %d %d", &n, &a, &b);4 2 7
      |                                  ^~
      |                                  ;
Language: C++

#include <bits/c++.h>
using namespace std;
typedef long long ll;
int main()
{
   ll l,r;
  
  cin>>l>>r;
  
  if(l-r>=2019)
  {
    cout<<"0";
  }
  else
  {
    ll ans=2019;
  for(int i=l;i<=r;i++)
  {
    for(int j=i+1;j<=r;j++)
    {
      ans=min(ans , (i*j)%2019);
    }
  }
  }
  
  return ans;
}

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

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

  
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  cout << min(a*b,c) << endl;
  return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
......
    5 | int main(){
      | ~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
	
    ll L,R; 
	if(R-L>=2019)
    cout <<"0";
	else {
		ll ans=0x3f3f3f3f;
		for(int i=L;i<=R;i++)
			for(int j=i+1;j<=R;j++)
			ans=min(ans,ll*i*j%2019);
		cout<<ans;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:39: error: expected primary-expression before '*' token
   13 |                         ans=min(ans,ll*i*j%2019);
      |                                       ^
Language: C++

#include <iostream>
using namespace std;
int main(){
	long int L,R;
    
    cin >>L>>R;
	if(R-L>=2019) 
     cout <<"0";
	else {
		ll ans=0x3f3f3f3f;
		for(int i=L;i<=R;i++)
			for(int j=i+1;j<=R;j++)
			ans=min(ans,ll*i*j%2019);
		cout<<ans;
	}
	return 0;
}
#include<bits/stdc++.h>

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'll' was not declared in this scope
   10 |                 ll ans=0x3f3f3f3f;
      |                 ^~
a.cc:13:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |                         ans=min(ans,ll*i*j%2019);
      |                         ^~~
      |                         abs
a.cc:14:23: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |                 cout<<ans;
      |                       ^~~
      |                       abs
Language: C++

#include <bits/stdc++.h>
#define N 1000005
#define ll long long int 	
#define MP make_pair
#define pb push_back
#define ppb pop_back
#define sp " "
#define endl "\n"
#define fi first
#define se second
#define ii pair<int,int>
#define lli pair<ll,ll>
#define fast cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(false)
#define fast2 freopen ("kmp.gir","r",stdin);freopen ("kmp.cik","w",stdout);
#define mod 1000000009
#define fs(x,y) for(int i=1;i<=y;i++) cin>>x[i]
#define fo(i,x,y) for(int i=x;i<=y;i++)
using namespace std;

ll n,m,ar[N],sum;

int main()
{
	fast;
	cin>>n>>a>>b;
	cout<<min(a*n,b);



}



/*     cd onedrive\desktop\kod
cls


*/

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

#include <stdio.h>

int main(void)
{
	int n, d, i, j, count2 = 0, f;
	double sue;
	int nd[10][10];
	double ans = 0;
	
	scanf("%d", &n);
	scanf("%d", &d);
	
	for (i = 0; i < n; i++){
		for (j = 0; j < d; j++){
			scanf("%d", &nd[i][j]);
		}
	}
	
	for (i = 0; i < n; i++){
		for (j = 0; j < d; j++){
			if (i == n - 1){
					sue = nd[i][j] - nd[0][j];
			}
			else {
				sue = nd[i][j] - nd[i + 1][j];
			}
			ans += sue * sue;
		}
		for (f = 0; f < 100; f++){
			if (f * f == ans){a
				count2++;
			}
		}
		ans = 0;		
	}
	printf("%d\n", count2);
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:30:43: error: unknown type name 'a'
   30 |                         if (f * f == ans){a
      |                                           ^
main.c:31:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   31 |                                 count2++;
      |                                       ^~
Language: C++

using namespace std;
 
const int mod = 2019;
typedef long long ll;
 
 
int main()
{
    int l, r;
    cin >> l >> r;
    ll ans = 1e9 + 5;
    for (ll i = l; i <= r; i++){
         for (ll j = i + 1; j <= r; j++){
           if (j - i >= 3000) goto finish;
             ans = min(ans, (i * j) % mod);
         }
   }
  finish:
  	;
    cout << ans;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin >> l >> r;
      |     ^~~
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:15:20: error: 'min' was not declared in this scope; did you mean 'main'?
   15 |              ans = min(ans, (i * j) % mod);
      |                    ^~~
      |                    main
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << ans;
      |     ^~~~
a.cc:20:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main(){
  longlong l, r, i, j, mod, mini=2500, a, b;
  cin >> l >> r;

  if(l%2019==0 || r%2019==0) mini=0;
  else{
    if(r-l>2019) mini=0;
    else{
      mini = (l%2019) * ((l+1)%2019);
    }
  }


  cout << mini << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'longlong' was not declared in this scope
    5 |   longlong l, r, i, j, mod, mini=2500, a, b;
      |   ^~~~~~~~
a.cc:6:10: error: 'l' was not declared in this scope
    6 |   cin >> l >> r;
      |          ^
a.cc:6:15: error: 'r' was not declared in this scope
    6 |   cin >> l >> r;
      |               ^
a.cc:8:30: error: 'mini' was not declared in this scope
    8 |   if(l%2019==0 || r%2019==0) mini=0;
      |                              ^~~~
a.cc:10:18: error: 'mini' was not declared in this scope
   10 |     if(r-l>2019) mini=0;
      |                  ^~~~
a.cc:12:7: error: 'mini' was not declared in this scope
   12 |       mini = (l%2019) * ((l+1)%2019);
      |       ^~~~
a.cc:17:11: error: 'mini' was not declared in this scope
   17 |   cout << mini << endl;
      |           ^~~~
Language: C++

#include<bits/stdc++.h>
using namepsace std;
int main()
{
  int n,a,b;
  cin>>n>>a>>b;
  cout<<min(n*a,b);
  return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepsace'
    2 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n>>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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout<<min(n*a,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:7:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
    7 |   cout<<min(n*a,b);
      |         ^~~
      |         std::min
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: 'std::min' declared here
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Language: C++

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

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

Compiler output:
a.cc:13:1: error: expected unqualified-id before 'return'
   13 | return 0;
      | ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a,b;
int main()
{
	scanf("%d",&n);
	printf("%d\n",min(a*n,b));
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |         scanf("%d",&n);
      |                     ^
      |                     yn
Language: C++

#include<stdio.h>



int main() {

	int L, R;
	int i;
	scanf("%d", &L);
	scanf("%d", &R);
	int min = 2019;
	if ((R - L) >= 2018||(R=>2019&&L<=2019)) {
		min = 0;
	} 
	
	else {
		for (i = 0; i <= R - L; i++) {
			if (((L + i) % 2019) < min) {
				min = (L + i) % 2019;
			}
		}


	printf("%d\n", min*(min + 1));

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: expected primary-expression before '>' token
   12 |         if ((R - L) >= 2018||(R=>2019&&L<=2019)) {
      |                                 ^
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'ntotal' was not declared in this scope; did you mean 'total'?
    8 |         if(sum<=ntotal)
      |                 ^~~~~~
      |                 total
Language: C++

#include <bits/c++std.h>
using namespace std;
int main(){
  int n,a,b;
  cin >> n >> a >> b;
  int c;
  c = n*a;
  if (c > b){
    cout << b << endl;
  }else{
    cout << c << endl;
  }
  
}



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

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    try{
    	int N = sc.nextInt();
    	int A = sc.nextInt();
    	int B = sc.nextInt();
    	int train = N * A;
    	int taxi = B;
    }catch(NumberFormatException e){
      System.out.println("型が違います" + e);
    }
    
    if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){
      return;
    }
    
    if(train >= taxi){
      System.out.println(train);
    }else{
      System.out.println(taxi);
    }
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
    if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){
       ^
  symbol:   variable N
  location: class Main
Main.java:16: error: cannot find symbol
    if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){
                 ^
  symbol:   variable N
  location: class Main
Main.java:16: error: cannot find symbol
    if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){
                          ^
  symbol:   variable A
  location: class Main
Main.java:16: error: cannot find symbol
    if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){
                                    ^
  symbol:   variable A
  location: class Main
Main.java:16: error: cannot find symbol
    if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){
                                             ^
  symbol:   variable B
  location: class Main
Main.java:16: error: cannot find symbol
    if(N > 20 || N < 1 || A > 50 || A < 1 || B > 20 || B < 1 ){
                                                       ^
  symbol:   variable B
  location: class Main
Main.java:20: error: cannot find symbol
    if(train >= taxi){
       ^
  symbol:   variable train
  location: class Main
Main.java:20: error: cannot find symbol
    if(train >= taxi){
                ^
  symbol:   variable taxi
  location: class Main
Main.java:21: error: cannot find symbol
      System.out.println(train);
                         ^
  symbol:   variable train
  location: class Main
Main.java:23: error: cannot find symbol
      System.out.println(taxi);
                         ^
  symbol:   variable taxi
  location: class Main
10 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
	int X, A;
	cin >> X >> A >> B;
	puts(X*A < B ? "X*A" : "B");
    return 0;
}

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

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

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

    scanf("%d, %d, %d",&N, &A, &B);
    if(N<1||N>20||A<1||A>50||B<1||B>50){
        printf("初めは1〜20, 次の二つには1〜50の整数を入力してください");
    }   

    train = N*A;
    taxi = B;

    if(train >= taxi){
        printf("%d", train);
    }else{
        printf("taxi");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:5: error: 'train' undeclared (first use in this function)
   13 |     train = N*A;
      |     ^~~~~
main.c:13:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:5: error: 'taxi' undeclared (first use in this function)
   14 |     taxi = B;
      |     ^~~~
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextLine();
    int A = sc.nextLine();
    int B = sc.nextLine();
    int train = N * A;
    int taxi = B;
    
    if(train >= taxi){
      System.out.println(train);
    }else{
      System.out.println(taxi);
    }
  }
}
    
    

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
    int N = sc.nextLine();
                       ^
Main.java:7: error: incompatible types: String cannot be converted to int
    int A = sc.nextLine();
                       ^
Main.java:8: error: incompatible types: String cannot be converted to int
    int B = sc.nextLine();
                       ^
3 errors
Language: C++

// Author: 23forever
#include <bits/stdc++.h>
#define pb push_back
#define pii pair<int, int>
#define mp make_pair
#define fi first
#define se second
typedef long long LL;
const int MAXN = 200000;
using namespace std;

inline int read() {
  int x = 0, w = 1;
  char c = ' ';
  
  while (!isdigit(c)) {
    c = getchar();
    if (c == '-') w = -1;
  }

  while (isdigit(c)) {
    x = (x << 1) + (x << 3) + (c ^ 48);
    c = getchar();
  }

  return x * w;
}

void init() {
  n = read();
  a = read();
  b = read();
}

int main() {
#ifdef forever23
  freopen("test.in", "r", stdin);
  //freopen("test.out", "w", stdout);
#endif
  init();

  int ans = min(n * a, b);
  printf("%d\n", ans);
  return 0;
}

Compiler output:
a.cc: In function 'void init()':
a.cc:30:3: error: 'n' was not declared in this scope; did you mean 'yn'?
   30 |   n = read();
      |   ^
      |   yn
a.cc:31:3: error: 'a' was not declared in this scope
   31 |   a = read();
      |   ^
a.cc:32:3: error: 'b' was not declared in this scope; did you mean 'pb'?
   32 |   b = read();
      |   ^
      |   pb
a.cc: In function 'int main()':
a.cc:42:17: error: 'n' was not declared in this scope; did you mean 'yn'?
   42 |   int ans = min(n * a, b);
      |                 ^
      |                 yn
a.cc:42:21: error: 'a' was not declared in this scope
   42 |   int ans = min(n * a, b);
      |                     ^
a.cc:42:24: error: 'b' was not declared in this scope; did you mean 'pb'?
   42 |   int ans = min(n * a, b);
      |                        ^
      |                        pb