| Problem | binarysearch |
|---|---|
| User | Fr5ctal |
| Submission Time | 2025-12-18 21:19:26 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
binarysearch.cpp: In function ‘bool comp(std::pair<int, int>, std::pair<int, int>)’:
binarysearch.cpp:4:47: error: named return values are no longer supported
4 | bool comp(pair<int, int> a, pair<int, int> b) return a.second < b.second;
| ^~~~~~
binarysearch.cpp:12:17: error: declaration of ‘std::vector<int> a’ shadows a parameter
12 | vector<int> a(n);
| ^