jobs.cpp: In function 'bool is_ok(long long int)':
jobs.cpp:14: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]
14 | if(ptr>=a.size()) return true;
| ~~~^~~~~~~~~~
jobs.cpp:8:12: warning: unused variable 'day' [-Wunused-variable]
8 | int ptr=0,day=n;
| ^~~
jobs.cpp: At global scope:
jobs.cpp:21:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
21 | main()
| ^~~~
jobs.cpp: In function 'int main()':
jobs.cpp:40: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]
40 | for(int j=0;j<ans;++j) if(ptr<index_v.size()) cout<<index_v[ptr++]<<' ';
| ~~~^~~~~~~~~~~~~~~