Language: C++

#include<iostream>
using ll  = long long;
#define int ll
#define rep(i,n) for(int i=0;i<n;i++)
#define loop(i,s,n) for(int i=s;i<n;i++)
#define erep(e,v) for(auto && e :v)
#define all(in) in.begin(), in.end()
#define MP make_pair
#define INF (sizeof(int) == 4 ? (int)1e9:(int)1e18)
#define EPS 0.0000000001
using namespace std;
template<class T, class S> void cmin(T &a, const S &b) { if (a > b)a = b; }
template<class T, class S> void cmax(T &a, const S &b) { if (a < b)a = b; }
template<typename Head, typename Value> auto vectors(const Head &head, const Value &v) { return vector<Value>(head, v); }
template<typename Head, typename... Tail> auto vectors(Head x, Tail... tail) { auto inner = vectors(tail...); return vector<decltype(inner)>(x, inner); }
template<class T> void join(T a){for(auto itr :a){if(itr != *a.begin())cout << " "; cout << itr;} }
using ld  = long double;
using pii = pair<int,int>;
using piii = pair<int,pii>;
int W,H;
int dx[]={0,0,1,-1}, dy[]={1,-1,0,0};
bool valid(int x,int y){return (0<=x&&x<W)&&(0<=y&&y<H);}
int maxi = 1;
int n,m;
auto f(){
    for(int i = 2; i*n<=m ; i++)if(m%i == 0)cmax(maxi,i);
}
signed main(){
    cin >> n >> m;
    f();
    cout << maxi << endl;
}




Compiler output:
a.cc: In function 'auto vectors(const Head&, const Value&)':
a.cc:14:97: error: 'vector' was not declared in this scope
   14 | template<typename Head, typename Value> auto vectors(const Head &head, const Value &v) { return vector<Value>(head, v); }
      |                                                                                                 ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using ll  = long long;
a.cc:14:109: error: expected primary-expression before '>' token
   14 | template<typename Head, typename Value> auto vectors(const Head &head, const Value &v) { return vector<Value>(head, v); }
      |                                                                                                             ^
a.cc: In function 'auto vectors(Head, Tail ...)':
a.cc:15:118: error: 'vector' was not declared in this scope
   15 | template<typename Head, typename... Tail> auto vectors(Head x, Tail... tail) { auto inner = vectors(tail...); return vector<decltype(inner)>(x, inner); }
      |                                                                                                                      ^~~~~~
a.cc:15:118: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
a.cc:15:125: error: expected primary-expression before 'decltype'
   15 | template<typename Head, typename... Tail> auto vectors(Head x, Tail... tail) { auto inner = vectors(tail...); return vector<decltype(inner)>(x, inner); }
      |                                                                                                                             ^~~~~~~~~~~~~~~
a.cc:15:125: error: expected ';' before 'decltype'
   15 | template<typename Head, typename... Tail> auto vectors(Head x, Tail... tail) { auto inner = vectors(tail...); return vector<decltype(inner)>(x, inner); }
      |                                                                                                                             ^~~~~~~~~~~~~~~
      |                                                                                                                             ;
a.cc:15:140: error: expected unqualified-id before '>' token
   15 | template<typename Head, typename... Tail> auto vectors(Head x, Tail... tail) { auto inner = vectors(tail...); return vector<decltype(inner)>(x, inner); }
      |                                                                                                                                            ^