Problem arrayfind
User leafeon
Submission Time 2025-06-08 21:53:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:23:12: error: request for member ‘begin’ in ‘f’, which is of non-class type ‘long long int [l]’
23 | sort(f.begin(),f.end());
| ^~~~~
arrayfind.cpp:23:22: error: request for member ‘end’ in ‘f’, which is of non-class type ‘long long int [l]’
23 | sort(f.begin(),f.end());
| ^~~
arrayfind.cpp:28:21: error: request for member ‘end’ in ‘f’, which is of non-class type ‘long long int [l]’
28 | auto up = f.end() - upper_bound(f.begin(),f.end(),ram);
| ^~~
arrayfind.cpp:28:43: error: request for member ‘begin’ in ‘f’, which is of non-class type ‘long long int [l]’
28 | auto up = f.end() - upper_bound(f.begin(),f.end(),ram);
| ^~~~~
arrayfind.cpp:28:53: error: request for member ‘end’ in ‘f’, which is of non-class type ‘long long int [l]’
28 |