Language: C++

//BINARY_BOY!!
//Bool THINK TWICE CODE ONCE = true;
//Im back basterds
//KEEP CALM AND FUCK PYTHON
#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <cmath>
#include <map>
#include <iomanip>
#include <sstream>
#include <limits>
#include <queue>
using namespace std;
const int MAXN = 1e5 + 10;
#define salar long double
#define mp make_pair
#define sp setprecision
#define pb push_back
#define pp pop_back
#define oold numeric_limits<long double>::max()
#define _oold numeric_limits<long double>::min()
#define ooint numeric_limits<int>::max()
#define _ooint numeric_limits<int>::min()
#define ooll numeric_limits<long long>::max()
#define _ooll numeric_limits<long long>::min()
#define ct cout
#define vec vector
#define fx fixed
#define cn cin
#define input readInt()
#define print writeInt
#define pc(x) putchar(x)
typedef long long ll;
#define pii pair < int , int>
#define ppi pair < pair < int , int > , int>

void show(long double a , int x , bool endofline , bool space)
{
	ct << fx << sp(x) << a;
	if(endofline)
		ct << endl;
	if(space)
		ct << ' ';
}
int readInt () {
	bool minus = false;
	int result = 0;
	char ch;
	ch = getchar();
	while (true) {
		if (ch == '-') break;
		if (ch >= '0' && ch <= '9') break;
		ch = getchar();
	}
	if (ch == '-') minus = true; else result = ch-'0';
	while (true) {
		ch = getchar();
		if (ch < '0' || ch > '9') break;
		result = result*10 + (ch - '0');
	}
	if (minus)
		return -result;
	else
		return result;
}
inline void writeInt (long long n) {
	long long  N = n, rev, count = 0;
	rev = N;
	if (N == 0) { pc('0'); pc('\n'); return ;}
	while ((rev % 10) == 0) { count++; rev /= 10;} //obtain the count of the number of 0s
	rev = 0;
	while (N != 0) { rev = (rev<<3) + (rev<<1) + N % 10; N /= 10;}  //store reverse of N in rev
	while (rev != 0) { pc(rev % 10 + '0'); rev /= 10;}
	while (count--) pc('0');
}
ll i , z , j;
ll ar [ MAXN ] , dp [ MAXN ];
vec < ll > v , v2;
set < ll > st;
pii p;
string s;
bool flag2 , flag ;
void debug() {
	cout << "DEBUGGING\n";
}
int main()
{
	ios::sync_with_stdio(false) , cin.tie(0) , cout.tie(0);
	ll n , m;
	cin >> n >> m;
	ll preok = (1LL<<31) - 1;
	for(i = 0 ; i < n ; i++)
		ar [ i ] = preok;
	for(i = 0 ; i < n ; i++)
		dp [ i ] = (1LL<<31) - 1;
	ll k = sqrt(n);
	for(i = 0 ; i < n / k; i += k)
		for(j = i ; j < i + k ; j++)
			dp [ i ] = min(dp [i ] , ar[ j ]);
	for(i = 0 ; i < m ; i++)
	{
		ll a;
		cn >> a;
		if(a)
		{
			ll s1 , e1;
			cn >> s1 >> e1;
			if(s1 == e1)
			{
				cout << ar [ s1 ] << endl;
				continue;
			}
			ll minans = (1LL<<31) - 1;
			flag = false;
			for( ; s1 <= e && (s1 % k); s1++)
				minans = min(minans , ar [ s1 ]);
			for(j = s1/k ; (j + 1) * k <= e1 ; j++ , s1 += k , flag = true)
				minans = min(minans , dp [ j ]);
				if(flag)
					s1++;
			for( ; s1 <= e1 ; s1++)
				minans = min(minans , ar [ s1 ]);
			cout << minans << endl;		
		}
		else
		{
			ll ii , x;
			cn >> ii >> x;
			ar [ ii ] = x;
			ii = ii/k;
			ii *= k;
			for(j = 0 ; j < k ; j++)
				dp [ ii / k ] = min(dp [ ii / k ] , ar [ ii + j ]);
		}
		
	}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:117:38: error: 'e' was not declared in this scope; did you mean 'e1'?
  117 |                         for( ; s1 <= e && (s1 % k); s1++)
      |                                      ^
      |                                      e1