Problem arrayfind
User placeholder
Submission Time 2026-06-25 15:10:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:24:63: error: expected ‘,’ or ‘;’ before ‘)’ token
24 | int smaller = lower_bound(a.begin(), a.end(), x) - a.begin());
| ^
arrayfind.cpp:26:59: error: missing template arguments before ‘<<’ token
26 | cout << "Smaller:" << smaller << ",Greater:" << greater << "\n";
| ^~