Language: C++

//c++ テンプレ
#include<bits/stdc++.h>
using namespace std;

typedef long long llint;
typedef long double ld;

#define inf 1e18
#define mod 1000000007
priority_queue<llint,vector<llint>,greater<llint> > que;
priority_queue<llint> Que;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

llint L,R;
void solve(){
    cin >> L >> R;
    ll mn=inf;
    llint v;
    for(llint i=L;i<R;i++){
        for(llint j=i+1;j<=R;j++){
            v=i*j%2019;
            mn=min(v,min);
            if(mn==0){
                cout << mn << endl;
                return 0;
            }
        }
    }
    cout << mn << endl;
}

int main(){
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:17:5: error: 'll' was not declared in this scope; did you mean 'ld'?
   17 |     ll mn=inf;
      |     ^~
      |     ld
a.cc:22:13: error: 'mn' was not declared in this scope; did you mean 'yn'?
   22 |             mn=min(v,min);
      |             ^~
      |             yn
a.cc:22:19: error: no matching function for call to 'min(llint&, <unresolved overloaded function type>)'
   22 |             mn=min(v,min);
      |                ~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long long int]'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:36: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'const long long int&'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |                         ~~~~~~~~~~~^~~
/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:22:19: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   22 |             mn=min(v,min);
      |                ~~~^~~~~~~
a.cc:25:24: error: return-statement with a value, in function returning 'void' [-fpermissive]
   25 |                 return 0;
      |                        ^
a.cc:29:13: error: 'mn' was not declared in this scope; did you mean 'yn'?
   29 |     cout << mn << endl;
      |             ^~
      |             yn