examination.cpp: In function 'int lowb(int)':
examination.cpp:50:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
50 | mid=lo+hi>>1;
| ~~^~~
examination.cpp: In function 'int query(int, int)':
examination.cpp:60:7: warning: unused variable 'bl' [-Wunused-variable]
60 | int bl = 0;
| ^~
examination.cpp: In function 'int main()':
examination.cpp:92:12: error: 'qq' was not declared in this scope; did you mean 'q'?
92 | cin >> qq[i].x >> qq[i].y >> qq[i].z;
| ^~
| q
examination.cpp:95:8: error: 'qq' was not declared in this scope; did you mean 'q'?
95 | sort(qq,qq+q,cmp);
| ^~
| q
examination.cpp:98:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
98 | for(int i = 0; i < idsz.size(); i++)pozniz[idsz[i]]=i;
| ~~^~~~~~~~~~~~~
examination.cpp:102:14: error: invalid types 'int[int]' for array subscript
102 | while(q[i].x <= a[ids[now]] && now < n)update(now),now++;
| ^
examination.cpp:103:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
103 | ans[q[i].id]=query(q[i].y,q[i].z);
| ^~~
| abs
examination.cpp:103:12: error: invalid types 'int[int]' for array subscript
103 | ans[q[i].id]=query(q[i].y,q[i].z);
| ^
examination.cpp:103:27: error: invalid types 'int[int]' for array subscript
103 | ans[q[i].id]=query(q[i].y,q[i].z);
| ^
examination.cpp:103:34: error: invalid types 'int[int]' for array subscript
103 | ans[q[i].id]=query(q[i].y,q[i].z);
| ^
examination.cpp:105:37: error: 'ans' was not declared in this scope; did you mean 'abs'?
105 | for(int i = 0; i < q; i++)cout << ans[i] << "\n";
| ^~~
| abs