books.cpp: In function 'void solve(int, int, long long int, int)':
books.cpp:5:5: error: 'vector' was not declared in this scope
5 | vector<int> n1;
| ^~~~~~
books.cpp:5:5: note: suggested alternatives:
In file included from /usr/include/c++/13/vector:66,
from books.h:4,
from books.cpp:1:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
books.cpp:5:12: error: expected primary-expression before 'int'
5 | vector<int> n1;
| ^~~
books.cpp:6:12: error: expected primary-expression before 'int'
6 | vector<int> pre;
| ^~~
books.cpp:7:5: error: 'n1' was not declared in this scope
7 | n1.resize(N);
| ^~
books.cpp:21:16: error: expected primary-expression before 'int'
21 | vector<int> a;
| ^~~
books.cpp:22:11: error: request for member 'push_back' in 'a', which is of non-class type 'long long int'
22 | a.push_back(b);
| ^~~~~~~~~
books.cpp:23:37: error: request for member 'push_back' in 'a', which is of non-class type 'long long int'
23 | for (int i = 0;i<K-1;i++) a.push_back(i+1);
| ^~~~~~~~~
books.cpp:24:16: error: could not convert 'a' from 'long long int' to 'std::vector<int>'
24 | answer(a);
| ^
| |
| long long int
books.cpp:44:16: error: expected primary-expression before 'int'
44 | vector<int> a;
| ^~~
books.cpp:45:35: error: request for member 'push_back' in 'a', which is of non-class type 'long long int'
45 | for (int i = c;i<K;i++) a.push_back(i+1);
| ^~~~~~~~~
books.cpp:46:38: error: request for member 'push_back' in 'a', which is of non-class type 'long long int'
46 | for (int i = b+1;i<b1;i++) a.push_back(i+1);
| ^~~~~~~~~
books.cpp:47:16: error: could not convert 'a' from 'long long int' to 'std::vector<int>'
47 | answer(a);
| ^
| |
| long long int