jobs.cpp: In function 'bool check(int)':
jobs.cpp:14:20: error: request for member 'f' in 's[i]', which is of non-class type 'int'
j=max(j,s[i].f);
^
jobs.cpp:15:15: error: request for member 'f' in 's[i]', which is of non-class type 'int'
if(s[i].f+D<j)return false;
^
jobs.cpp: In function 'int main()':
jobs.cpp:22:15: error: request for member 'f' in 's[i]', which is of non-class type 'int'
cin>>s[i].f;
^
jobs.cpp:23:10: error: request for member 's' in 's[i]', which is of non-class type 'int'
s[i].s=i;
^
jobs.cpp:35:20: error: request for member 'f' in 's[i]', which is of non-class type 'int'
j=max(j,s[i].f);
^
jobs.cpp:36:15: error: request for member 'f' in 's[i]', which is of non-class type 'int'
if(s[i].f+D<j)st[j].push_back(s[i].s);
^
jobs.cpp:36:42: error: request for member 's' in 's[i]', which is of non-class type 'int'
if(s[i].f+D<j)st[j].push_back(s[i].s);
^
jobs.cpp:39:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int z=0;z<st[i].size();z++)cout<<st[i][z]<<" ";
~^~~~~~~~~~~~~