library.cpp: In function 'void Solve(int)':
library.cpp:80:18: error: conflicting declaration 'std::vector<int> ok'
80 | vector <int> ok;
| ^~
library.cpp:77:9: note: previous declaration as 'int ok'
77 | int ok = 0;
| ^~
library.cpp:81:8: error: request for member 'push_back' in 'ok', which is of non-class type 'int'
81 | ok.push_back(1);
| ^~~~~~~~~
library.cpp:85:16: error: request for member 'push_back' in 'ok', which is of non-class type 'int'
85 | ok.push_back(0);
| ^~~~~~~~~
library.cpp:87:16: error: request for member 'push_back' in 'ok', which is of non-class type 'int'
87 | ok.push_back(1);
| ^~~~~~~~~
library.cpp:89:16: error: request for member 'push_back' in 'ok', which is of non-class type 'int'
89 | ok.push_back(Query(m));
| ^~~~~~~~~
library.cpp:94:20: error: invalid types 'int[int]' for array subscript
94 | deg[i] = ok[i + 1] - ok[i] + 1;
| ^
library.cpp:94:32: error: invalid types 'int[int]' for array subscript
94 | deg[i] = ok[i + 1] - ok[i] + 1;
| ^
In file included from /usr/include/c++/10/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from library.cpp:1:
library.cpp:122:24: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
122 | assert(comp.size() == n);
| ~~~~~~~~~~~~^~~~