Problem photo
User rasquait
Submission Time 2026-02-19 21:25:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

photo.cpp: In function ‘int main()’:
photo.cpp:20:20: error: ‘INT_MAX’ was not declared in this scope
20 | int l=0, r=0, ans=INT_MAX, unq=1;
| ^~~~~~~
photo.cpp:3:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
2 | #include <algorithm>
+++ |+#include <climits>
3 | #include <vector>
photo.cpp:23:6: error: ‘unq’ was not declared in this scope
23 | if(unq < n){
| ^~~