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

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;

int get_mod(int num1, int num2){
  int mod = num1*num2 % 2019;
  
  return mod;
}



int main(void){
  int l, r;
  vector<int> ans;
  cin >> l >> r;
  int min = 2019;
  for(int i = l; i <= r; i++){
    for(int j = i+1; j <= r; j++){
     int new_min = get_mod(i, j);
     if(min > new_min || new_min == 0){
      min = new_min;
      break;
     }
    }
    if(new_min == 0){break;}  
  
  }
   
  cout << min << endl;
  return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:8: error: 'new_min' was not declared in this scope
   28 |     if(new_min == 0){break;}
      |        ^~~~~~~
Language: C++

void func_C(int L, int R) {
	long int value = 2020;
	for (int i = L; i <= R; i++) {
		for (int j = i+1; j <= R; j++) {
			if (value > (i * j) % 2019) {
				value = (i * j) % 2019;
			}
		}
	}
	std::cout << value << std::endl;
}

//Bまでで37分

int main() {
	int N, D;
	std::cin >> N >> D;
	func_C(N, D);
	return 0;
}

Compiler output:
a.cc: In function 'void func_C(int, int)':
a.cc:10:14: error: 'cout' is not a member of 'std'
   10 |         std::cout << value << std::endl;
      |              ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | void func_C(int L, int R) {
a.cc:10:36: error: 'endl' is not a member of 'std'
   10 |         std::cout << value << std::endl;
      |                                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | void func_C(int L, int R) {
a.cc: In function 'int main()':
a.cc:17:14: error: 'cin' is not a member of 'std'
   17 |         std::cin >> N >> D;
      |              ^~~
a.cc:17:14: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
	long long L,R;
	cin>>L>>R;
	if(R-L>2019) cout<<0<<endl;
	else{
		long long ans=3000;
		for( int i=L;i<=R;i++){
			for(int j=i+1;j<=R;j++){
				ans=min(ans,(long long)((1LL)i%2019*(1LL)j%2019)%2019);
			}
		}
		cout<<ans<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:62: error: expected ')' before 'i'
   12 |                                 ans=min(ans,(long long)((1LL)i%2019*(1LL)j%2019)%2019);
      |                                                        ~     ^
      |                                                              )
a.cc:12:87: error: expected ')' before ';' token
   12 |                                 ans=min(ans,(long long)((1LL)i%2019*(1LL)j%2019)%2019);
      |                                        ~                                              ^
      |                                                                                       )
Language: C++

using namespace std;
typedef long long ll;
#define INF 1LL<<62
#define inf 1000000007 


int main() {
	ll l,r,ans=INF;
	cin>>l>>r;
	r=min(r,l+8019);
	for(int i=l;i<r;i++){
		ll sum=0;
		for(int j=i+1;j<=r;j++){
			sum=(i*j)%2019;
			ans=min(ans,sum);
		}
	}
	cout <<ans;
}

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

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

int main() {
    int l, r, ans = 2019;
    cin >> l >> r;
    r = min(r, l + 2019);
    for (int i = l; i < r; i++) {
        for (int j = i + 1; j < r; j++) {
            ans = min(ans, 1LL * i * j % 2019);
        }
    }
    cout << ans << endl;
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  long long int l,r;
  cin >> l >> r;
  if(l%2019 != 0 && r%2019 != 0 && l/2019 == r/2019){
    cout << min (l*(l+1))%2019,(r*(r-1))%2019) << endl;
  }
  else cout << 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: no matching function for call to 'min(long long int)'
    7 |     cout << min (l*(l+1))%2019,(r*(r-1))%2019) << endl;
      |             ~~~~^~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   candidate expects 2 arguments, 1 provided
/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, 1 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:   template argument deduction/substitution failed:
a.cc:7:17: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
    7 |     cout << min (l*(l+1))%2019,(r*(r-1))%2019) << endl;
      |             ~~~~^~~~~~~~~
/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:   candidate expects 2 arguments, 1 provided
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

int main() {
   
 
    long long int L, R; 
    cin >> L >> R;
    if ((L-1) / 2019 != R / 2019) {
        cout << 0 << endl; return 0;
    }
    L = L % 2019; R = R % 2019;
    int ans = 2018;
    FOR(i, L, R+1) {
        FOR(j, i+1, R+1) {
            ans = min(ans, (i*j)%2019);
        }
    }
    cout << ans << endl;
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'i' was not declared in this scope
   16 |     FOR(i, L, R+1) {
      |         ^
a.cc:16:5: error: 'FOR' was not declared in this scope
   16 |     FOR(i, L, R+1) {
      |     ^~~
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        long L = sc.nextInt();
        long R = sc.nextInt();

        if ((R - L) >= 2019) {
            System.out.println(0);
        }
        else {
            long res = 2019;
            for(int i = L; i <= R; i++) {
                for(int j = i + 1; j <= R; j++ ) {
                    int temp = (i * j) % 2019;
                    res = Math.min(res , temp);

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

    }
}


Compiler output:
Main.java:16: error: incompatible types: possible lossy conversion from long to int
            for(int i = L; i <= R; i++) {
                        ^
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    while(sc.hasNext()){
      int L=sc.nextInt();
      int R=sc.nextInt();
      int cal=0;
      int ans=10000000000;
      if(R-L>=2019){
        System.out.println(0);
      }else{
        for(int i=L;i<R;i++){
          for(int j=i+1;j<=R;j++){
            cal=(i*j)%2019;
            ans=Math.min(ans,cal);
          }
        }
      }
      System.out.println(ans);





    }
  }
}

Compiler output:
Main.java:10: error: integer number too large
      int ans=10000000000;
              ^
1 error
Language: C++

#include<iostream>
using namespace std;

int main()
{
  i L, R;

  cin >> L >> R;
  int ret = 2018;

  if((R-L) <= 2019){
    cout << 0 << endl;
    return 0;
  }

  for(int i=L; i<R ;i++){
    for(int j=(i+1); j<=R ; j++){
      ret = min(ret, i*j%2019);
    }
  }

  cout << ret << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'i' was not declared in this scope
    6 |   i L, R;
      |   ^
a.cc:8:10: error: 'L' was not declared in this scope
    8 |   cin >> L >> R;
      |          ^
a.cc:8:15: error: 'R' was not declared in this scope
    8 |   cin >> L >> R;
      |               ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
  i L, R;

  cin >> L >> R;
  int ret = 2018;

  if((R-L) <= 2019){
    cout << 0 << endl;
    return 0;
  }

  for(int i=L; i<R ;i++){
    for(int j=(i+1); j<=R ; j++){
      ret = min(ret, i*j%2019)
    }
  }

  cout << ret << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'i' was not declared in this scope
    6 |   i L, R;
      |   ^
a.cc:8:10: error: 'L' was not declared in this scope
    8 |   cin >> L >> R;
      |          ^
a.cc:8:15: error: 'R' was not declared in this scope
    8 |   cin >> L >> R;
      |               ^
a.cc:18:31: error: expected ';' before '}' token
   18 |       ret = min(ret, i*j%2019)
      |                               ^
      |                               ;
   19 |     }
      |     ~
Language: C++

#include <bits/stdc++>
using namespace std;
int main(void){
    int l,r,c[2000000000];
    cin>>l>>r;
    for(int i=0;i<(r-l+1);i++)c[i]=((0+l)%2019);
    sort(c,c+(r-l+1));
    cout<<(c[0]*c[1])<<endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
    long long l,r;
    cin>>l>>r;
    r=min(r,l+2019);
    int ans=2018;
    for(long long i=l;i<=r;i++){
        for(long long j=i+1;j<=r;j++){
            ans=min(i*j%2019,ans);
        }
    }
    cout<<ans<<endl;
    return 0;
}


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

#include<iostream>
using ll = long long;
#define int ll
signed main(){
  int l,r; 
  std:: cin >> l >> r;
  int dif = r - l;
  if(dif >= 2030) {
    std::cout << 0 << std:: endl;
  } else {
    int ans = 100000000000000000LL;
    for(int i = l; i <= r; ++i){
      for(int j = i + 1; j <= r; ++j){
       int cnt = (i * j) % 2019LL;
       ans = (ans > cnt ? cnt :  ans );
  	}
    std::cout << ans << std::endl;
  }
  
}


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

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


typedef long long ll;
int main() {
  ll L,R;
  cin>>L>>R;
  vector<int>amari;
  ll ret,minval=R;
  if((R-L)>2020){
    ret=0;
  }else{
    for(int i=L;i<R;i++){
    if((i%2019)==0){ret=0;break;}
    for(int j=L;j<R;j++){
      if(i!=j)minval=min(((i*j)%2019),minval);
    }
    }
    ret=minval;
  }
  cout<<ret<<endl;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'mi' was not declared in this scope; did you mean 'i'?
   18 |                 mi=min(mi,(*j)%2019);
      |                 ^~
      |                 i
a.cc:18:28: error: invalid type argument of unary '*' (have 'long long int')
   18 |                 mi=min(mi,(*j)%2019);
      |                            ^~
a.cc:21:13: error: 'mi' was not declared in this scope; did you mean 'i'?
   21 |     cout << mi << endl;
      |             ^~
      |             i
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int l,r,c[2000000000],a;
    cin>>l>>r;
    for(int i=0;i<(r-l+1);i++)c[i]=((0+l)%2019);
    a=(c.size());
    sort(c,c+a);
    cout<<(c[0]*c[1])<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: request for member 'size' in 'c', which is of non-class type 'int [2000000000]'
    7 |     a=(c.size());
      |          ^~~~
a.cc:8:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |     sort(c,c+a);
      |     ^~~~
      |     short
Language: C++

#include<cstdio>
#include<algorithm>
using namespace std;

int l, r;

int main() {
	scanf("%d%d", &l, &r);
	
	if(r-l>=2019) puts("0");
	else {
		int ans = 2018;
		for(int i=l;i<=r;i++)
			for(int j=i+1;j<=r;j++)
				ans = min(ans, 1LL*i*j%2019);
		printf("%d\n", ans);
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:42: error: no matching function for call to 'min(int&, long long int)'
   15 |                                 ans = min(ans, 1LL*i*j%2019);
      |                                       ~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from a.cc:2:
/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:15:42: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   15 |                                 ans = min(ans, 1LL*i*j%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:15:42: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   15 |                                 ans = min(ans, 1LL*i*j%2019);
      |                                       ~~~^~~~~~~~~~~~~~~~~~~
Language: C

#include <stdio.h>
#include <limits.h>

#define LENGTH 256

int mod(int l, int r) {
    int a, b, n;
    int c, d
    int m = INT_MAX;
    if ((r-l) >= 2019) return 0;
    if (l+2019 < r) r = l + 2019;

    for (a = l; a < r; a++) {
        for ( b = a+1; b <=r; b++) {
            c = a % 2019;
            d = b % 2019;
            n = (c * d) % 2019;
            if ( n < m) m = n;
            if ( m == 0) return 0;
        }
    }
    return m;
}

int main(void) {
    char input[LENGTH];
    int l, r;
    int n;
    if (scanf("%d %d", &l, &r) == 1);
    n = mod(l ,r);
    printf("%d", n);
    return 0;
}

Compiler output:
main.c: In function 'mod':
main.c:9:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    9 |     int m = INT_MAX;
      |     ^~~
main.c:16:13: error: 'd' undeclared (first use in this function)
   16 |             d = b % 2019;
      |             ^
main.c:16:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:22: error: 'm' undeclared (first use in this function)
   18 |             if ( n < m) m = n;
      |                      ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repf(i,a,b) for (int i = (a); i < (b); i++)
#define repi(i,a,b) for (int i = (a); i <= (b); i++)
#define repr(i,a,b) for (int i = (a); i >= (b); i--)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
#define debug(x)  cout << #x << " = " << (x) << endl;
#define SORT(x) sort(all(x));
#define RSORT(x) sort(rall(x));
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vi>;
using vd = vector<double>;
using vb = vector<bool>;
using pii = pair<int, int>;
using vc = vector<char>;
using vvc = vector<vc>;
using vs = vector<string>;
using tiii = tuple<int, int, int>;
const ll inf = 1ll<<29;
const ll mod = 1000000007;
const double eps = 1e-9;
const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};

int main() {
  ll L, R; cin >> L >> R;

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

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

import java.util.Scanner;

public class main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        int L = Integer.parseInt(sc.next());
        int R = Integer.parseInt(sc.next());

        sc.close();

        if (R -L > 2019) {

        	System.out.println(0);
        	System.exit(0);
        }

        long mod2019;
        long min = 2*10^9;

        for (long i = L; i < R; i++) {

            for (long j = i+1; j <= R; j++) {

            	mod2019 = i*j%2019;

                if (min > mod2019) {

                    min = mod2019;
                }

                if (min == 0) {

                	break;
                }
            }

            if (min == 0) {

            	break;
            }
        }

        System.out.println(min);
    }

}

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

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int L = Integer.parseInt(sc.next());
        int R = Integer.parseInt(sc.next());
        sc.close();
        int ans = 0;
        int i = mod2019(L); 
        int j = 2018;int  memo = 0;
        //mod2019が最小の時のkをmemoに書き込む
        for(int k = L;k <= R && (k <= (k + 2019));k++){         
            i = Math.min(mod2019(k) , i);    
            if(mod2019(memo) != i){
                memo = k;System.out.println("memo:"+memo);
            }      
        }
        
        for(int k = L;k <= R && (k <= (k + 2019));k++){
        	if(k != memo) {      		
        		j = Math.min(mod2019(k) , j);
        	}
        }   
        ans = mod2019(i * j);     
        System.out.println(ans);
    }
    private static int mod2019(int n){
        return n % 2019;
    }
}

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

import java.util.Scanner;
 
class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
        int r = sc.nextInt();
        long remain = (long)(2 * Math.pow(10,9)) * 2;
        a:for (int i = l; i < r; i++) {
            for (int j = i + 1; j <= r; j++) {
                if(i*j % 2019 < remain)
                    remain = i*j % 2019;
                if(remain == 0)
                    break a;
            }
        }
		System.out.println(remain);
	}
}import java.util.Scanner;
 
class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
        int r = sc.nextInt();
        long remain = (long)(2 * Math.pow(10,9)) * 2;
        a:for (int i = l; i < r; i++) {
            for (int j = i + 1; j <= r; j++) {
                if(i*j % 2019 < remain)
                    remain = i*j % 2019;
                if(remain == 0)
                    break a;
            }
        }
		System.out.println(remain);
	}
}

Compiler output:
Main.java:19: error: class, interface, enum, or record expected
}import java.util.Scanner;
 ^
1 error
Language: Java

import java.util.Scanner;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
		int r = sc.nextInt();
		int x = 0;
		a: for(int i = l; i < r; i++){
				for(int j = i+1; j <= r; j++){
						System.out.println(i+" "+j);
						System.out.println(x);
						break a;
					}else if(x == 2018){
						System.out.println(2018);
					}
				}
			}
		}
	}
}

Compiler output:
Main.java:14: error: 'else' without 'if'
					}else if(x == 2018){
					 ^
Main.java:20: error: class, interface, enum, or record expected
	}
	^
2 errors
Language: C

#include<stdio.h>

int L;
int R;
int ans = 2018;
int x = 0;

int main(void){
  if(scanf("%d%d",&L,&R) == 1);
  if((R-L) >= 2019){
    printf("0 /n");
    return 0;
  }
  for(int i = L; i < R; i++){
    for(int j = i + 1; j <= R; j++){
      x = (i%2019)*(j%2019)%2019;
      if(x < ans){
        if(c == 0){
          printf("0 /n");
          return 0;
        }
        ans = c;
      }
    }
  }
  printf("%d /n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:12: error: 'c' undeclared (first use in this function)
   18 |         if(c == 0){
      |            ^
main.c:18:12: 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 l,r;
    cin>>l>>r;
    r-=l;
    l%=2019;
    r=l+r%2019;
    if(l==r) cout<<0<<endl;
    else{
        int min=2019;
        for(int i=l;i<r;i++){
            for(int j=i+1;j<=r;j++) min=min(min,i*j%2019);
        }
        cout<<min<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:44: error: 'min' cannot be used as a function
   14 |             for(int j=i+1;j<=r;j++) min=min(min,i*j%2019);
      |                                         ~~~^~~~~~~~~~~~~~
Language: C++

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

int main(){
    in
    int l,r;
    cin>>l>>r;
    r-=l;
    l%=2019;
    r=l+r%2019;
    int min=l*r%2019;
    for(int i=l;i<j;i++)
        for(int j=l+1;j<=r;j++) if(i*j%2019<min) min=i*j%2019;
    cout<<min<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'in' was not declared in this scope; did you mean 'yn'?
    5 |     in
      |     ^~
      |     yn
a.cc:7:10: error: 'l' was not declared in this scope
    7 |     cin>>l>>r;
      |          ^
a.cc:7:13: error: 'r' was not declared in this scope
    7 |     cin>>l>>r;
      |             ^
a.cc:12:19: error: 'j' was not declared in this scope
   12 |     for(int i=l;i<j;i++)
      |                   ^
Language: Java

public class Main {

	public static void main(String[] args){
		
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int D = input.nextInt();
		int mod = 2019;
		for(int i = N+1; i <= D; i++ ){
			int currentMod = (N*i)%2019;
			if(currentMod < mod ){
				mod = currentMod;
			}
		}
		System.out.println(mod);
	}
}


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

#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define  _CRT_SECURE_NO_DEPRECATE
using namespace std;
#define maxv 100005
#define che 1LL<<32
#define modi 1000000007
int main()
{
    ll a,b;
    cin>>a>>b;
    ll x=b/2019;
    ll y=(a-1)/2019;
    if(x==y+1)
        cout<<"0"<<endl;
    else
    {
      ll i,j,ans=LLONG_MAX;
      for(i=a;i<=b;i++)
      {
        for(j=i+1;j<=b;j++)
        {
          ans=min(ans,(i*j)%2019)
        }
      }
      cout<<ans<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:34: error: expected ';' before '}' token
   25 |           ans=min(ans,(i*j)%2019)
      |                                  ^
      |                                  ;
   26 |         }
      |         ~
Language: C

#include<stdio.h>
int main(void)
{int long l,r,i,j,k,
 int code;
 min=(-1);
 scanf("%ld %ld",&l,&r);
 for(j=r;j<=r;j--)
   for(i=l;i<j;i++)
   { k=(i*j)%2019;
    if(min<0){min=k;code=k;}
    if(min>k)min=k;
    if(k==code){i+=r;j+=r;}
   }
 printf("%d",min);
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:2: error: expected identifier or '(' before 'int'
    4 |  int code;
      |  ^~~
main.c:5:2: error: 'min' undeclared (first use in this function); did you mean 'main'?
    5 |  min=(-1);
      |  ^~~
      |  main
main.c:5:2: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:21: error: 'code' undeclared (first use in this function)
   10 |     if(min<0){min=k;code=k;}
      |                     ^~~~
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;

typedef long long ll;
int main(){
    int R,L,i,j;
    ll ans;


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

}

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

#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
	int l,r;
	scanf("%d%d",&l,&r);
	l%=2019;
	r%=2019;
	if(l==0 || r==0){
		printf("0");
		return 0;
	}
	int ans=1e9;
	if(r<l){
		printf("0");
		return;
	}
	for(int i=l;i<=r-1;i++)
		for(int j=i+1;j<=r;j++) ans=min(ans,(i*j)%2019);
	printf("%d",ans);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |                 return;
      |                 ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

/**
 *  Name: Chris M. Perez
 *  University: Interamerican University Metro Campus
 *
**/

#define endl '\n'
#define MOD 10E9
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define gcd(x , y) __gcd(x , y)
#define all(x) (x).begin() , (x).end()
#define forn(i , a , b) for(int i=(a);i<(b);i++)
#define forrange(j , a , b) for(int j=(a);j<=(b);j++)
#define nestedforn(i , a , b , j , c , d) for(int i=(a);i<=(b);i++) for(int j=(c);j<=(d);j++)
#define sort_all(x) sort(all(x))
#define zeros_at_beginning(x) __builtin_clz(x)
#define zeros_at_end(x) __builtin_ctz(x)
#define ones(x) __builtin_popcount(x)
#define parity_even_or_odd_ones __builtin_parity(x)
#define PI 3.141592653589793

template<class T> bool minn(T &a ,T b){
  return (a > b ? (a = b , true) : false);
};

template<class T> bool maxn(T &a ,T b){
 return (a < b ? (a = b , true) : false);
};

                                       
int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.precision(10);
  cout << fixed;  

#ifdef LOCAL_DEFINE
  freopen("input.txt" , "rt" , stdin);
#endif
 
  int l; cin >> l;
  int r; cin >> r;
  if(r - l + 1 >= 2019){
    cout << "0" << endl;
    return 0;
  }
  int res = k;
  for(int i = l; i < r; i++){
    for(int j = (i + 1); j <= r; j++){
      minn(res , (i * j) % 2019);
    }
  }
  cout << res << endl;  
                                           
#ifdef LOCAL_DEFINE 
  cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
#endif  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:54:13: error: 'k' was not declared in this scope
   54 |   int res = k;
      |             ^
Language: C++

#include <iostream> // cin, cout, cerr, clog
#include <algorithm> // min, max, sort, swap
#include <numeric> // iota, accumulate, inner_product
#include <climits> // INT_MIN, LLONG_MIN
#include <cmath> // long, trig, pow
#include <string> // string, stoi, to_string
#include <vector> // vector
#include <queue> // queue, priority_queue
#include <stack> // stack
#include <deque> // deque
#include <map> // key-value pairs sorted by keys
#include <set> // set
#include <unordered_map> // hashed by keys
#include <unordered_set> // hashed by keys
#include <iomanip> // cout<<setprecision(n)

using namespace std;

typedef long long Int;
const Int mod = 1000000007;
const Int INF = mod * mod;

signed main() {
	Int l, r;
	cin >> l >> r;
	Int res = 1e;
	for (Int i = l; i <= min(2019 + l, r); i++) {
		for (Int j = i + 1; j <= min(2019 + l, r); j++) {
			res = min(res, i * j % 2019);
		}
	}
	cout << res << endl;
}

Compiler output:
a.cc:26:19: error: exponent has no digits
   26 |         Int res = 1e;
      |                   ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;
const int MOD = 2019;

int main(){
    int l, r; cin >> l >> r;
    if (l/MOD < r/MOD){
        cout << "0\n";
        return 0;
    }

    int mn = MOD;
    for (int i = l; i <= r; ++ i)
    for (int j = i+1; j <= r; ++ j)
        mn = min(mn, (i*1LL*j)%MOD);
    cout << mn << "\n";
}


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

#include <iostream>
#include <algorithm>
#define rep(i, j, k) for (long long (i) = (j); (i) < (k); ++(i))
#define repr(i, j, k) for (long long (i) = (j); (i) <= (k); ++(i))

using namespace std;

int solve() {
	long long l, r;
	cin >> l >> r;
	if (r/2019 != l/2019 || l % 2019 == 0) {
		return 0;
	}
	
	int min_num = 2019;
	repr(i, l, r-1) {
		repr(j, i+1, r) {
			min_num = min(min_num, i*j%2019);
		}
	}
	return min_num;
}

int main()
{
	cout << solve() << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int solve()':
a.cc:18:38: error: no matching function for call to 'min(int&, long long int)'
   18 |                         min_num = min(min_num, i*j%2019);
      |                                   ~~~^~~~~~~~~~~~~~~~~~~
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: '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:18:38: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   18 |                         min_num = min(min_num, i*j%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,
                 from a.cc:2:
/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:18:38: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   18 |                         min_num = min(min_num, i*j%2019);
      |                                   ~~~^~~~~~~~~~~~~~~~~~~