library.cpp:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
#incldue "library.h"
^~~~~~~
include
library.cpp: In function 'int get(int)':
library.cpp:29:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=mid;i<v.size();i++)r.pb(v[i]);
~^~~~~~~~~
library.cpp:30:9: error: 'Query' was not declared in this scope
int x=Query(s);
^~~~~
library.cpp:31:4: error: no match for 'operator[]' (operand types are 'std::vector<int>' and 'std::vector<int>')
s[r]=1;
^
In file included from /usr/include/c++/7/vector:64:0,
from /usr/include/c++/7/queue:61,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:86,
from library.cpp:3:
/usr/include/c++/7/bits/stl_vector.h:795:7: note: candidate: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::reference = int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
operator[](size_type __n) _GLIBCXX_NOEXCEPT
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:795:7: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<int>::size_type {aka long unsigned int}'
/usr/include/c++/7/bits/stl_vector.h:813:7: note: candidate: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::const_reference = const int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]
operator[](size_type __n) const _GLIBCXX_NOEXCEPT
^~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:813:7: note: no known conversion for argument 1 from 'std::vector<int>' to 'std::vector<int>::size_type {aka long unsigned int}'
library.cpp: In function 'void Solve(int)':
library.cpp:49:6: error: 'Query' was not declared in this scope
if(Query(v)==1)r=i;
^~~~~
library.cpp:61:2: error: 'Answer' was not declared in this scope
Answer(ans);
^~~~~~