| Problem | lowelements |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-09-14 20:48:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lowelements.cpp: In function ‘int32_t main()’:
lowelements.cpp:15:26: error: ‘vec’ was not declared in this scope
15 | ans[i] = (int)count_if(vec.begin(), vec.end(), [b](int y) {return y > b});
| ^~~
lowelements.cpp: In lambda function:
lowelements.cpp:15:74: error: expected ‘;’ before ‘}’ token
15 | ans[i] = (int)count_if(vec.begin(), vec.end(), [b](int y) {return y > b});
| ^
| ;
lowelements.cpp: In function ‘int32_t main()’:
lowelements.cpp:21:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
21 | cout << ans;
| ~~~~ ^~ ~~~
| | |
| | std::vector<long long int>
| std::ostream {aka