sparklers.cpp: In function 'LL reach(std::vector<long long int>, std::vector<long long int>)':
sparklers.cpp:10:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(LL i = 0; i < a.size(); i++){
~~^~~~~~~~~~
In file included from /usr/include/c++/7/cassert:44:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:33,
from sparklers.cpp:1:
sparklers.cpp:16:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
assert(i + 1 != a.size());
~~~~~~^~~~~~~~~~~
sparklers.cpp:22:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(LL i = 0; i < b.size(); i++){
~~^~~~~~~~~~
In file included from /usr/include/c++/7/cassert:44:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:33,
from sparklers.cpp:1:
sparklers.cpp:28:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
assert(i + 1 != b.size());
~~~~~~^~~~~~~~~~~
sparklers.cpp:34:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i + 1 < acompress.size() || j + 1 < bcompress.size()){
~~~~~~^~~~~~~~~~~~~~~~~~
sparklers.cpp:34:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i + 1 < acompress.size() || j + 1 < bcompress.size()){
~~~~~~^~~~~~~~~~~~~~~~~~
sparklers.cpp:35:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j + 1 < bcompress.size() && bcompress[j+1].second <= acompress[i].first){
~~~~~~^~~~~~~~~~~~~~~~~~
sparklers.cpp:37:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
} else if(i + 1 < acompress.size() && bcompress[j].first <= acompress[i+1].second){
~~~~~~^~~~~~~~~~~~~~~~~~
sparklers.cpp: In function 'LL ok(std::vector<long long int>, std::vector<long long int>)':
sparklers.cpp:48:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < a.size(); i++){
~~^~~~~~~~~~
sparklers.cpp:49:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < b.size(); j++){
~~^~~~~~~~~~
sparklers.cpp: In function 'LL okay(std::vector<long long int>, std::vector<long long int>)':
sparklers.cpp:64:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(LL j = 0; j < a.size(); j++){
~~^~~~~~~~~~
sparklers.cpp:67:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(LL j = 0; j < b.size(); j++){
~~^~~~~~~~~~