Problem intercastellar
User JhoCyber
Submission Time 2025-04-24 16:52:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

intercastellar.cpp:6:33: error: ‘auto’ parameter not permitted in this context
6 | int lower_bound_iterator(vector &<int> size,int it, int n){
| ^
intercastellar.cpp:6:34: error: expected ‘,’ or ‘...’ before ‘<’ token
6 | int lower_bound_iterator(vector &<int> size,int it, int n){
| ^
intercastellar.cpp: In function ‘long long int lower_bound_iterator()’:
intercastellar.cpp:7:15: error: ‘n’ was not declared in this scope
7 | int l=0,r=n-1,ans=-1;
| ^
intercastellar.cpp:10:20: error: invalid types ‘<unresolved overloaded function type>[long long int]’ for array subscript
10 | if(size[mid]>=it){
| ^
intercastellar.cpp:10:23: error: ‘it’ was not declared in this scope; did you mean ‘int’?
10 | if(size[mid]>=it){
| ^~
|