| Problem | mirrors |
|---|---|
| User | yanganyi |
| Submission Time | 2025-06-20 14:45:22 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
mirrors.cpp: In lambda function:
mirrors.cpp:12:140: error: inconsistent types ‘int’ and ‘long long int’ deduced for lambda return type
12 | auto lb=[&](int pos,int h){if(!pos||!h) return 0;int lo=0,hi=pos;while(lo<hi){int m=(lo+hi+1)>>1;(sum(pos-m+1,pos)<=h?lo:hi)=m;}return lo;};
| ^~
mirrors.cpp: In lambda function:
mirrors.cpp:13:140: error: inconsistent types ‘int’ and ‘long long int’ deduced for lambda return type
13 | auto rb=[&](int st,int h){if(st>n||!h) return 0;int lo=0,hi=n-st+1;while(lo<hi){int m=(lo+hi+1)>>1;(sum(st,st+m-1)<=h?lo:hi)=m;}return lo;};
| ^~
mirrors.cpp: In function ‘int32_t main()’:
mirrors.cpp:23:44: error: