jobs.cpp: In function 'bool p(long long int)':
jobs.cpp:21:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(ptr<=m&&arr[ptr].f<=i&&days[i].size()<x) days[i].push_back(arr[ptr++].s);
~~~~~~~~~~~~~~^~
jobs.cpp:24:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(i>=oriarr[j]&&i+d>=oriarr[j]) continue;return false;
^~
jobs.cpp:24:46: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(i>=oriarr[j]&&i+d>=oriarr[j]) continue;return false;
^~~~~~
jobs.cpp: In function 'int main()':
jobs.cpp:62:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(auto j:days[i]) cout<<j<<" ";cout<<0<<endl;
^~~
jobs.cpp:62:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(auto j:days[i]) cout<<j<<" ";cout<<0<<endl;
^~~~