jobs.cpp: In function 'bool is_ok(long long int)':
jobs.cpp:15:10: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | if(ptr>=a.size()) return true;
| ~~~^~~~~~~~~~
jobs.cpp:25:13: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | return (ptr>=a.size());
| ~~~^~~~~~~~~~
jobs.cpp: At global scope:
jobs.cpp:27:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
27 | main()
| ^~~~
jobs.cpp: In function 'int main()':
jobs.cpp:47:32: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
47 | for(int j=0;j<ans;++j) if(ptr<index_v.size()) cout<<index_v[ptr]<<' ',++ptr;
| ~~~^~~~~~~~~~~~~~~