Problem | medianheap |
---|---|
User | back2square1 |
Submission Time | 2023-02-05 16:03:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianheap.cpp: In function ‘int main()’:
medianheap.cpp:13:24: error: expression cannot be used as a function
13 | int mid = (v.size+1())/2;
| ^
medianheap.cpp:14:19: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
14 | v.erase(v.begin+mid-1);
| ~~~~~~~^~~~
| | |
| | int
| <unresolved overloaded function type>