| Problem | lowelements |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-09-14 20:48:36 |
| 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) {
| ^~~
lowelements.cpp:23:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
23 | cout << ans;
| ~~~~ ^~ ~~~
| | |
| | std::vector<long long int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from lowelements.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: