peru.cpp: In member function 'void RangeMaximumQuery::Build(int*)':
peru.cpp:50:42: error: 'max' was not declared in this scope
50 | sparseTable[lg][i] = max(sparseTable[lg-1][i], sparseTable[lg-1][i+jump]);
| ^~~
peru.cpp: In member function 'int RangeMaximumQuery::Query(int, int)':
peru.cpp:58:16: error: 'max' was not declared in this scope
58 | return max(sparseTable[log[rightQ-leftQ+1]][leftQ],
| ^~~
peru.cpp: In function 'int evaluateAnswer(int, int*)':
peru.cpp:66:5: error: 'int64_t' was not declared in this scope
66 | int64_t ans = 0;
| ^~~~~~~
peru.cpp:69:9: error: 'ans' was not declared in this scope
69 | ans = (ans*23 + arr[i])%mod;
| ^~~
peru.cpp:72:12: error: 'ans' was not declared in this scope
72 | return ans;
| ^~~
peru.cpp: In function 'int solve(int, int, int*)':
peru.cpp:91:30: error: 'min' was not declared in this scope
91 | for (int j = 1; j <= min(i+1, k); j++)
| ^~~
peru.cpp:99:5: error: 'cout' was not declared in this scope
99 | cout << evaluateAnswer(n, dp2) << endl;
| ^~~~
peru.cpp:99:39: error: 'endl' was not declared in this scope
99 | cout << evaluateAnswer(n, dp2) << endl;
| ^~~~