| Problem | arrayfind |
|---|---|
| User | placeholder |
| Submission Time | 2026-06-25 15:09:12 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:13:14: error: expected ‘;’ before ‘sort’
13 | cin >> a[i]
| ^
| ;
14 |
15 | sort(a.begin(), a.end());
| ~~~~
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";
| ^~