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

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

#define rep(i,n) for(int i = 0; i < ((int)(n)); i++)   //0-origin昇順
#define rep1(i,n) for(int i = 1; i <= ((int)(n)); i++) //1-origin昇順
#define rrep(i,n) for(int i = ((int)(n)-1); i >= 0; i--)  //0-origin降順
#define rrep1(i,n) for(int i = ((int)(n)); i >= 1; i--)   //1-origin降順
//rep2 -> 第二引数 m から n 回繰り返し ex) m=5 n=3 なら i=5,i=6,i=7 まで
#define rep2(i,m,n) for(int i = ((int)(m)); i < ((int)(n))+((int)(m)); i++)
#define SIZE(x) ((int)((x).size()))
#define all(x) (x).begin(),(x).end()
typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<vi> vii; //2次元配列
typedef vector<ll> vll;
typedef vector<string> vs;
template<typename T> bool chmax(T &a, const T &b){ if(a<b){ a=b; return 1;} return 0;}
template<typename T> bool chmin(T &a, const T &b){ if(a>b){ a=b; return 1;} return 0;}


/*FUNCs=================================================*/


/*MAIN==================================================*/
int main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);   //cin cout 高速化

    ll l, r; cin >> l >> r;
    ll mini = 1e18;
    l = l%2019;
    r = r%2019;
    if(i>r) r+2019;
    for(ll i = l; i <= r; i++){
        for(ll j = i; j <= r; j++){
            if(i == j) continue;
            chmin<ll>(mini, ((i*j)%2019));
            if(mini == 0) break;
        }
    }
    cout << mini <<'\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:8: error: 'i' was not declared in this scope
   34 |     if(i>r) r+2019;
      |        ^
Language: C++

#include"bits/stdc++.h"
#include"math.h"
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std; 
int main(){
  long long L,R;
  cin >> L>>R;
  long long x=2019;
  for(long long i=L;i<R;i++){
    for(long long j=i+1;j<=R;j++){
      x=min(x,(i%2019*j%2019);}}
  cout <<x<<endl;}
    

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

#include"bits/stdc++.h"
#include"math.h"
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std; 
int main(){
  long long L,R;
  cin >> L>>R;
  int x=2019;
  for(long long i=L;i<R;i++){
    for(long long j=i+1;j<=R;j++){
      x=min(x,(i*j)%2019);}}
  cout <<x<<endl;}
    

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

#include <stdio.h>

int main(void){
    int i,j,min=2019;
    int L,R;
    scanf("%d %d",&L,&R);

    L %= 2019;
    R %= 2019;
    
    else{
        for(i=L;i<=R;i++){
            for(j=i+1;j<=R;j++){
                if(min>(i*j)%2019) min = (i*j)%2019;
            }
        }
        printf("%d\n",min);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:5: error: 'else' without a previous 'if'
   11 |     else{
      |     ^~~~
Language: C++

#include "stdafx.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <numeric>
#include <set>
#include <list>
#include <map>
#include<queue>

const int INF = 1 << 28;
const long long MOD = 1000000007;
using namespace std;
using Graph = vector<vector<int>>;

template<class T> bool chmin(T &a, T &b) { if (a > b) { a = b; return 1; }return 0; }
template<class T> bool chmax(T &a, T &b) { if (a < b) { a = b; return 1; }return 0; }
template<class T, class U> using P = pair<T, U>;

vector<int> seen(50,-1);
int counter_for_dfs = 0;
void dfs(Graph &G, int v) {
	seen[v] = counter_for_dfs;
	counter_for_dfs++;
	for (auto v_next : G[v]) {
		if (seen[v_next]>=0)continue;

		dfs(G, v_next);
	}
}

void bfs(Graph &G) {
	vector<int> dist(G.size(), -1);
	queue<int> que;
	
	dist[0] = 0;
	que.push(0);
	while (!que.empty()) {
		int v = que.front();
		que.pop();

		for (int g : G[v]) {
			if (dist[g] != -1)continue;
			dist[g] = dist[v] + 1;
			que.push(g);
		}
	}
	for (auto i : dist) {
		cout << i << " ";
	}
}

int counter[200005] = {};
void bfs2(Graph &G,int p,int x) {
	vector<int> dist(G.size() , -1);
	queue<int> que;
	
	dist[p] = 0;
	que.push(p);
	while (!que.empty()) {
		int v = que.front();
		que.pop();

		for (int g : G[v]) {
			if (dist[g] != -1)continue;
			dist[g] = dist[v] + 1;
			que.push(g);
			counter[g] += x;
		}
	}
}
int main()
{
	int l, r,i,j;
	scanf("%d%d", &l, &r);
	j = r;
	int min = 2019;
	for ( i = l; i < j; i++) {
		for ( j = r; j > l; j--) {
			int a = (i * j) % 2019;
			min = std::min(min, a);
			if (min == 0)break;
		}
		if (min == 0)break;
	}
	std::cout << min;

	return 0;
}

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

#include "stdafx.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <numeric>
#include <set>
#include <list>
#include <map>
#include<queue>

const int INF = 1 << 28;
const long long MOD = 1000000007;
using namespace std;
using Graph = vector<vector<int>>;

template<class T> bool chmin(T &a, T &b) { if (a > b) { a = b; return 1; }return 0; }
template<class T> bool chmax(T &a, T &b) { if (a < b) { a = b; return 1; }return 0; }
template<class T, class U> using P = pair<T, U>;

vector<int> seen(50,-1);
int counter_for_dfs = 0;
void dfs(Graph &G, int v) {
	seen[v] = counter_for_dfs;
	counter_for_dfs++;
	for (auto v_next : G[v]) {
		if (seen[v_next]>=0)continue;

		dfs(G, v_next);
	}
}

void bfs(Graph &G) {
	vector<int> dist(G.size(), -1);
	queue<int> que;
	
	dist[0] = 0;
	que.push(0);
	while (!que.empty()) {
		int v = que.front();
		que.pop();

		for (int g : G[v]) {
			if (dist[g] != -1)continue;
			dist[g] = dist[v] + 1;
			que.push(g);
		}
	}
	for (auto i : dist) {
		cout << i << " ";
	}
}

int counter[200005] = {};
void bfs2(Graph &G,int p,int x) {
	vector<int> dist(G.size() , -1);
	queue<int> que;
	
	dist[p] = 0;
	que.push(p);
	while (!que.empty()) {
		int v = que.front();
		que.pop();

		for (int g : G[v]) {
			if (dist[g] != -1)continue;
			dist[g] = dist[v] + 1;
			que.push(g);
			counter[g] += x;
		}
	}
}
int main()
{
	int l, r,i,j;
	scanf_s("%d%d", &l, &r);
	j = r;
	int min = 2019;
	for ( i = l; i < j; i++) {
		for ( j = r; j > l; j--) {
			int a = (i * j) % 2019;
			min = std::min(min, a);
			if (min == 0)break;
		}
		if (min == 0)break;
	}
	std::cout << min;

	return 0;
}

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


#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <numeric>
#include <set>
#include <list>
#include <map>
#include<queue>

const int INF = 1 << 28;
const long long MOD = 1000000007;
using namespace std;
using Graph = vector<vector<int>>;

template<class T> bool chmin(T &a, T &b) { if (a > b) { a = b; return 1; }return 0; }
template<class T> bool chmax(T &a, T &b) { if (a < b) { a = b; return 1; }return 0; }
template<class T, class U> using P = pair<T, U>;

vector<int> seen(50,-1);
int counter_for_dfs = 0;
void dfs(Graph &G, int v) {
	seen[v] = counter_for_dfs;
	counter_for_dfs++;
	for (auto v_next : G[v]) {
		if (seen[v_next]>=0)continue;

		dfs(G, v_next);
	}
}

void bfs(Graph &G) {
	vector<int> dist(G.size(), -1);
	queue<int> que;
	
	dist[0] = 0;
	que.push(0);
	while (!que.empty()) {
		int v = que.front();
		que.pop();

		for (int g : G[v]) {
			if (dist[g] != -1)continue;
			dist[g] = dist[v] + 1;
			que.push(g);
		}
	}
	for (auto i : dist) {
		cout << i << " ";
	}
}

int counter[200005] = {};
void bfs2(Graph &G,int p,int x) {
	vector<int> dist(G.size() , -1);
	queue<int> que;
	
	dist[p] = 0;
	que.push(p);
	while (!que.empty()) {
		int v = que.front();
		que.pop();

		for (int g : G[v]) {
			if (dist[g] != -1)continue;
			dist[g] = dist[v] + 1;
			que.push(g);
			counter[g] += x;
		}
	}
}
int main()
{
	int l, r,i,j;
	scanf_s("%d%d", &l, &r);
	j = r;
	int min = 2019;
	for ( i = l; i < j; i++) {
		for ( j = r; j > l; j--) {
			int a = (i * j) % 2019;
			min = min > a ? a : min;
			if (min == 0)break;
		}
		if (min == 0)break;
	}
	std::cout << min;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:77:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   77 |         scanf_s("%d%d", &l, &r);
      |         ^~~~~~~
      |         scanf
Language: C++


#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <numeric>
#include <set>
#include <list>
#include <map>
#include<queue>

const int INF = 1 << 28;
const long long MOD = 1000000007;
using namespace std;
using Graph = vector<vector<int>>;

template<class T> bool chmin(T &a, T &b) { if (a > b) { a = b; return 1; }return 0; }
template<class T> bool chmax(T &a, T &b) { if (a < b) { a = b; return 1; }return 0; }
template<class T, class U> using P = pair<T, U>;

vector<int> seen(50,-1);
int counter_for_dfs = 0;
void dfs(Graph &G, int v) {
	seen[v] = counter_for_dfs;
	counter_for_dfs++;
	for (auto v_next : G[v]) {
		if (seen[v_next]>=0)continue;

		dfs(G, v_next);
	}
}

void bfs(Graph &G) {
	vector<int> dist(G.size(), -1);
	queue<int> que;
	
	dist[0] = 0;
	que.push(0);
	while (!que.empty()) {
		int v = que.front();
		que.pop();

		for (int g : G[v]) {
			if (dist[g] != -1)continue;
			dist[g] = dist[v] + 1;
			que.push(g);
		}
	}
	for (auto i : dist) {
		cout << i << " ";
	}
}

int counter[200005] = {};
void bfs2(Graph &G,int p,int x) {
	vector<int> dist(G.size() , -1);
	queue<int> que;
	
	dist[p] = 0;
	que.push(p);
	while (!que.empty()) {
		int v = que.front();
		que.pop();

		for (int g : G[v]) {
			if (dist[g] != -1)continue;
			dist[g] = dist[v] + 1;
			que.push(g);
			counter[g] += x;
		}
	}
}
int main()
{
	int l, r,i,j;
	scanf_s("%d%d", &l, &r);
	j = r;
	int min = 2019;
	for ( i = l; i < j; i++) {
		for ( j = r; j > l; j--) {
			int a = (i * j) % 2019;
			min = min > a ? a : min;
		}
	}
	std::cout << min;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:77:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   77 |         scanf_s("%d%d", &l, &r);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
	long long int l, r,m = 9223372036854775807i64;
	cin >> l >> r;
	
	for (long long int i = l; i <= r; i++)
	{
		for (long long int j = i + 1; j <= r; j++)
		{
				m = min(m,(i*j) % 2019i64);
		}
	}

	cout << m;
	system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:32: error: unable to find numeric literal operator 'operator""i64'
    8 |         long long int l, r,m = 9223372036854775807i64;
      |                                ^~~~~~~~~~~~~~~~~~~~~~
a.cc:15:51: error: unable to find numeric literal operator 'operator""i64'
   15 |                                 m = min(m,(i*j) % 2019i64);
      |                                                   ^~~~~~~
Language: C++

#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm> //sort
using namespace std;
static const int max_ans =3000;


int main(void){
    // ~~LからRまでの数字をmod2019でソート~~
    // 入力
    long long L,R; cin >> L >> R;

    if(R-L>2019) cout << 0;
    else{
        // 全探索
        vector<long long> a(R-L+1);
        vector<long long> b(R-L+1);
        for(long long i=0; i<=R-L; i++){
            a[i] = (i+L);
            b[i] = (i+L);
        }
        int ans = max_ans;
        for(int i=0; i<=R-L; i++){
            for(int j=0; j<=R-L; j++){
                if(a[i]*b[i]%2019 < ans) ans = a[i]*b[j]%2019
            }
        }
    }

    cout << ans;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:62: error: expected ';' before '}' token
   26 |                 if(a[i]*b[i]%2019 < ans) ans = a[i]*b[j]%2019
      |                                                              ^
      |                                                              ;
   27 |             }
      |             ~                                                 
a.cc:31:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   31 |     cout << ans;
      |             ^~~
      |             abs
Language: Java

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

int main(){
	
	long long int year1,year2;
	cin>>year1>>year2;
	
	int min=2020;
	//2000 5000
	//2020 4040
	//4038
	if(year2-year1>=2019){
		min=0;
	}else{
		for(long long int i=year1;i<=year2;i++){
			for(long long int j=year1+1;j<=year2;j++){
				int s;
				s=(i%2019)*(j%2019)%2019;
				if(s<min){
					min=s;
				}
			}
		}
	}
	cout<<min<<endl;
	return 0;
}






Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:2: error: illegal character: '#'
#include<algorithm>
^
Main.java:3: error: illegal character: '#'
#include<cmath>
^
Main.java:8: error: not a statement
	long long int year1,year2;
	^
Main.java:8: error: not a statement
	long long int year1,year2;
	     ^
Main.java:9: error: not a statement
	cin>>year1>>year2;
	          ^
Main.java:18: error: not a statement
		for(long long int i=year1;i<=year2;i++){
		    ^
Main.java:18: error: not a statement
		for(long long int i=year1;i<=year2;i++){
		              ^
Main.java:18: error: not a statement
		for(long long int i=year1;i<=year2;i++){
		                           ^
Main.java:19: error: not a statement
			for(long long int j=year1+1;j<=year2;j++){
			    ^
Main.java:19: error: not a statement
			for(long long int j=year1+1;j<=year2;j++){
			              ^
Main.java:19: error: not a statement
			for(long long int j=year1+1;j<=year2;j++){
			                             ^
Main.java:28: error: not a statement
	cout<<min<<endl;
	         ^
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: ';' expected
	long long int year1,year2;
	    ^
Main.java:8: error: ';' expected
	long long int year1,year2;
	         ^
Main.java:18: error: ';' expected
		for(long long int i=year1;i<=year2;i++){
		        ^
Main.java:18: error: '.class' expected
		for(long long int i=year1;i<=year2;i++){
		                  ^
Main.java:18: error: ';' expected
		for(long long int i=year1;i<=year2;i++){
		                                      ^
Main.java:19: error: ';' expected
			for(long long int j=year1+1;j<=year2;j++){
			        ^
Main.java:19: error: '.class' expected
			for(long long int j=year1+1;j<=year2;j++){
			                  ^
Main.java:19: error: ';' expected
			for(long long int j=year1+1;j<=year2;j++){
			                                        ^
22 errors
Language: C++

#include <iostream>
#include <cstdio>
using namespace std;
	
int n,a;
int min=0x7fffffff;
int main(){
	scanf("%d%d",&n,&a);
	for(int i=n;i<=a;i++){
		for(int j=n+1;j<=a;j++){
			int sum=(i*j)%2019;
			if(sum<min){
				min=sum;
			}
		}
	}
	printf("%d",min);
//	cout<<min<<endl; 
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: reference to 'min' is ambiguous
   12 |                         if(sum<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,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidates are: '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:233:5: note:                 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:6:5: note:                 'int min'
    6 | int min=0x7fffffff;
      |     ^~~
a.cc:13:33: error: reference to 'min' is ambiguous
   13 |                                 min=sum;
      |                                 ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidates are: '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:233:5: note:                 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:6:5: note:                 'int min'
    6 | int min=0x7fffffff;
      |     ^~~
a.cc:17:21: error: reference to 'min' is ambiguous
   17 |         printf("%d",min);
      |                     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidates are: '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:233:5: note:                 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:6:5: note:                 'int min'
    6 | int min=0x7fffffff;
      |     ^~~
Language: C++

#include <bits/stdc++.h>

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

using namespace std;

int main(){
	int l,r; cin>>l>>r;

	if(r-l>=2019) cout<<0<<endl;
	else{
		int ans=2019;
		for(int i=l;i<=r;i++) for(int j=l+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:13:70: error: no matching function for call to 'min(int&, long long int)'
   13 |                 for(int i=l;i<=r;i++) for(int j=l+1;j<=r;j++) ans=min(ans,1LL*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:13:70: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   13 |                 for(int i=l;i<=r;i++) for(int j=l+1;j<=r;j++) 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:13:70: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   13 |                 for(int i=l;i<=r;i++) for(int j=l+1;j<=r;j++) ans=min(ans,1LL*i*j%2019);
      |                                                                   ~~~^~~~~~~~~~~~~~~~~~
Language: C++

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

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

  int ans = 2018;  
  if(R - L + 1 >= 2019){
    ans = 0;
  } 

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

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

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

int main() {
  unsigned long int L, R;
  unsigned long int x;
   unsigned long int y=2018;
   cin >> L >> R;
 
  if (R-L>=2018) {
        cout << 0 << endl;
        return 0;}
  for (int i=L; i< R; i++) {
	for (int j=i+1; j < R+1; j++) {
y = min(y, i * j % 2019);
      if (y==0) {
        cout << 0 << endl;
        return 0;}
    }
  }

      cout << y << endl;

}

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

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

int main() {
  int L, R;
  int x;
  int y=2018;
   cin >> L >> R;
 
  for (int i=L; i< R+1; i++) {
	for (int j=1; j < R-L +1; j++) {
      x=i*(i+j)%2019;
      if (x=1) {
        cout << 1 << endl;
        return 0;
        if (x<=y) {
          y = x;
        }
    }
  }

      cout << y << endl;

}

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

#include <iostream>

int main() {
    int ans = 2018;
    long l, r;
    std::cin >> l >> r;

    for (int i = l; i < r; i++) {
        for (int j = i + 1; j <= right; j++) {
            ans = std::min(ans, (i * j) % 2019);
          	if (ans == 0) {
             	std::cout << 0 << std::endl;
              	return 0;
            }
        }
    }
    std::cout << ans << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:34: error: 'right' was not declared in this scope; did you mean 'std::right'?
    9 |         for (int j = i + 1; j <= right; j++) {
      |                                  ^~~~~
      |                                  std::right
In file included 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/ios_base.h:1070:3: note: 'std::right' declared here
 1070 |   right(ios_base& __base)
      |   ^~~~~
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        long l = sc.nextLong();
        long r = sc.nextLong();
        long tmp = 2018;

        if(r-l >= 2019){
            tmp = 0;
        }else{
            for(long i = 0;i < r;i++){
                for(long j = i+1;j <= b;j++){
                    tmp = Math.min(tmp,(i*j)%2019);
                }
            }
            System.out.println(tmp);
        }
            
        }
    }


Compiler output:
Main.java:14: error: cannot find symbol
                for(long j = i+1;j <= b;j++){
                                      ^
  symbol:   variable b
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>
#include <string>
#include <functional>
#include <queue>
#include <map>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;
const int INF = 100000000;

const int tmp = 2019;

int main(){
    ll l, r;
    cin >> l >> r;

    if(l / tmp == r / tmp){
        if(l % tmp == 0 || r % tmp == 0){
            cout << 0 << endl;
            return 0;
        }
        ll m = l / tmp;
        ll t = l - m * tmp;
        ll k = t * (t + 1) - t * (t + 1) / tmp * tmp
        cout << k << endl;
    }else{
        cout << 0 << endl;
    }
}

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

#include <bits/stdc++.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>
#include <string>
#include <functional>
#include <queue>
#include <map>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;
const int INF = 100000000;

const int tmp = 2019;

int main(){
    ll l, r;
    cin >> l >> r;

    if(l / tmp == r / tmp){
        if(l % tmp == 0 || r % tmp == 0){
            cout << 0 << endl;
            return 0;
        }
        ll m = l / tmp;
        ll t = l - m * tmp;
        ll k = t * (t + 1) - t * (t + 1) / tmp * tmp
        cout <<  << endl;
    }else{
        cout << 0 << endl;
    }
}

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

int main()
{
	int L, R;
	cin >> L >> R;
	if ((L%2019==0 || R%2019==0) || (L / 2019 != R / 2019))
	{
		cout << 0;
	}
	else
	{
		ll ans = 2018;
		for (ll i = L; i <= R; i++)
		{
			for (ll j = i+1; j <=R; j++)
			{
				ll cand = i * j;
				cand %= 2019;
				ans = min(ans, cand);
			}
		}
		cout << ans;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> L >> R;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << 0;
      |                 ^~~~
a.cc:11:17: error: 'll' was not declared in this scope
   11 |                 ll ans = 2018;
      |                 ^~
a.cc:12:24: error: expected ';' before 'i'
   12 |                 for (ll i = L; i <= R; i++)
      |                        ^~
      |                        ;
a.cc:12:32: error: 'i' was not declared in this scope
   12 |                 for (ll i = L; i <= R; i++)
      |                                ^
a.cc:14:32: error: expected ';' before 'j'
   14 |                         for (ll j = i+1; j <=R; j++)
      |                                ^~
      |                                ;
a.cc:14:42: error: 'j' was not declared in this scope
   14 |                         for (ll j = i+1; j <=R; j++)
      |                                          ^
a.cc:16:35: error: expected ';' before 'cand'
   16 |                                 ll cand = i * j;
      |                                   ^~~~~
      |                                   ;
a.cc:17:33: error: 'cand' was not declared in this scope
   17 |                                 cand %= 2019;
      |                                 ^~~~
a.cc:18:33: error: 'ans' was not declared in this scope
   18 |                                 ans = min(ans, cand);
      |                                 ^~~
a.cc:18:39: error: 'min' was not declared in this scope; did you mean 'main'?
   18 |                                 ans = min(ans, cand);
      |                                       ^~~
      |                                       main
a.cc:21:17: error: 'cout' was not declared in this scope
   21 |                 cout << ans;
      |                 ^~~~
a.cc:21:25: error: 'ans' was not declared in this scope
   21 |                 cout << ans;
      |                         ^~~
Language: Java

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
 
		long a,b;
 
		Scanner sc = new Scanner(System.in);
 
		a = sc.nextLong();
		b = sc.nextLong();
 
		long ans = 2018;
 
		if (b - a >= 2019) {
			ans = 0;
		} else {
 
			for (long i = a; i < b; ++i) {
				for (long j = i+1; j <= b; ++j) {
					ans = Math.min(ans, (i * j) % 2019);
				}
 
			}
  
		}
 
	}
  
			System.out.println(ans);
  
}

Compiler output:
Main.java:30: error: <identifier> expected
			System.out.println(ans);
			                  ^
Main.java:30: error: <identifier> expected
			System.out.println(ans);
			                      ^
2 errors
Language: Java

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
 
		long a,b;
 
		Scanner sc = new Scanner(System.in);
 
		a = sc.nextLong();
		b = sc.nextLong();
 
		long ans = 2018;
 
		if (b - a >= 2018) {
			ans = 0;
		} else {
 
			for (long i = a; i < b; ++i) {
				for (long j = i+1; j <= b; ++j) {
					ans = Math.min(ans, (i * j) % 2019);
				}
 
			}
  
		}
 
	}
  
			System.out.println(ans);
  
}

Compiler output:
Main.java:30: error: <identifier> expected
			System.out.println(ans);
			                  ^
Main.java:30: error: <identifier> expected
			System.out.println(ans);
			                      ^
2 errors
Language: C++

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

int main() {
  ll l,r;
  cin >> l >> r;

  bool flag = false;
  for(int i = l; i <= r; i++){
    if(i % 2019 == 0){
      flag = true;
      break;
    }
  }

  if(flag){
    cout << 0 << endl;
  }
  else{
    int ans = 2018;
    for(ll i = l; i <= r; i++){
      for(ll j = i+1; j <= r; j++){
        int s;
        s = (i*j) % 2019
        if(ans > s){
          ans = s;
        }
      }
    }
    cout << ans << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: expected ';' before 'if'
   26 |         s = (i*j) % 2019
      |                         ^
      |                         ;
   27 |         if(ans > s){
      |         ~~
Language: C++

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

int main() {
  ll l,r;
  cin >> l >> r;

  bool flag = false;
  for(int i = l; i <= r; i++){
    if(i % 2019 == 0){
      flag = true;
      break;
    }
  }

  if(flag){
    cout << 0 << endl;
  }
  else{
    int ans = 2018;
    for(int i = l; i <= r; i++){
      for(int j = i+1; j <= r; j++){
        int s;
        s = (i*j) % 2019
        if(ans > s){
          ans = s;
        }
      }
    }
    cout << ans << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: expected ';' before 'if'
   26 |         s = (i*j) % 2019
      |                         ^
      |                         ;
   27 |         if(ans > s){
      |         ~~
Language: C++

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

int main(){
  long long a, b;
  cin >> a >> b;
  
  long long ans = 0;
  //string ans = "Yes";
  //string ans = "No";
  //string ans = "YES";
  //string ans = "NO";
  if (b - a >= 2019) ans = 0;
  else for (int i = a; i < b; i++){
    for (int 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:18:16: error: no matching function for call to 'min(long long int&, int)'
   18 |       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:18:16: 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:
/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:16: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   18 |       ans = min(ans, i * j % 2019);
      |             ~~~^~~~~~~~~~~~~~~~~~~
Language: C++

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

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


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

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

int main(){
  ll l,r; cin >> l >> r;
  int low=2020;
  for(ll i=l;i<r;i++){
    for(ll j=i+1;j<=r;j++){
      low=min(low,(i*j)%2019);
    }
  }
  cout << low << endl;
}


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

V#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 (int i = l;i < r;i++){
        for (int j = i+1;j <= r;j++){
            int m = i*j%2019;
            ans = min(ans,m);
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | V#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'V' does not name a type
    1 | V#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> l >> r;
      |     ^~~
a.cc:7:9: error: 'min' was not declared in this scope; did you mean 'main'?
    7 |     r = min (r,l+2019);
      |         ^~~
      |         main
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << ans << endl;
      |     ^~~~
a.cc:15:20: error: 'endl' was not declared in this scope
   15 |     cout << ans << endl;
      |                    ^~~~
Language: C++

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

template <class T>ostream &operator<<(ostream &o,const vector<T>&v)
{o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<<v[i];o<<"}";return o;}

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


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

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

int main () {
  int64_t l, r, ans; 
  cin >> l >> r;
  int ans = 2020;
  for (int64_t i=l;i<r;i++) {
    for (int64_t j=l+1;j=r;j++) {
      if (j<=i)
        continue;
      if ((i*j)%2019 < ans)
        ans = (i*j)%2019;
      if (ans == 0) {
        cout << ans;
        return 0;
      }
    }
  }
  cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: conflicting declaration 'int ans'
    7 |   int ans = 2020;
      |       ^~~
a.cc:5:17: note: previous declaration as 'int64_t ans'
    5 |   int64_t l, r, ans;
      |                 ^~~