jobs.cpp: In function 'bool wk(LL, LL)':
jobs.cpp:15:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::array<long long int, 2>::value_type' {aka 'long long int'} [-Wformat=]
15 | if(op == 1) printf("%d ", f[0]);
| ~^
| |
| int
| %lld
jobs.cpp:19:19: warning: comparison of integer expressions of different signedness: 'LL' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | for(LL j = 0; j < B[i].size(); ++j)
| ~~^~~~~~~~~~~~~
jobs.cpp:20:37: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} [-Wformat=]
20 | if(t && (--t, op == 1)) printf("%d ", B[i][j]);
| ~^
| |
| int
| %lld
jobs.cpp: In function 'int main()':
jobs.cpp:31:28: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
31 | while(l <= r) (wk(mid = l + r >> 1, 0) ? r = mid - 1 : l = mid + 1);
| ~~^~~
jobs.cpp:32:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'LL' {aka 'long long int'} [-Wformat=]
32 | return printf("%d\n", r + 1), wk(r + 1, 1), 0;
| ~^ ~~~~~
| | |
| int LL {aka long long int}
| %lld