jobs.cpp: In function 'bool check(int)':
jobs.cpp:2:11: error: request for member 'first' in 's[i]', which is of non-class type 'int'
#define f first
^
jobs.cpp:16:20: note: in expansion of macro 'f'
j=max(j,s[i].f);
^
jobs.cpp:2:11: error: request for member 'first' in 's[i]', which is of non-class type 'int'
#define f first
^
jobs.cpp:17:15: note: in expansion of macro 'f'
if(s[i].f+D<j)return false;
^
jobs.cpp: In function 'int main()':
jobs.cpp:2:11: error: request for member 'first' in 's[i]', which is of non-class type 'int'
#define f first
^
jobs.cpp:24:15: note: in expansion of macro 'f'
cin>>s[i].f;
^
jobs.cpp:3:12: error: request for member 'second' in 's[i]', which is of non-class type 'int'
#define se second
^
jobs.cpp:25:10: note: in expansion of macro 'se'
s[i].se=i;
^~
jobs.cpp:2:11: error: request for member 'first' in 's[i]', which is of non-class type 'int'
#define f first
^
jobs.cpp:37:20: note: in expansion of macro 'f'
j=max(j,s[i].f);
^
jobs.cpp:2:11: error: request for member 'first' in 's[i]', which is of non-class type 'int'
#define f first
^
jobs.cpp:38:15: note: in expansion of macro 'f'
if(s[i].f+D<j)st[j].push_back(s[i].se);
^
jobs.cpp:3:12: error: request for member 'second' in 's[i]', which is of non-class type 'int'
#define se second
^
jobs.cpp:38:42: note: in expansion of macro 'se'
if(s[i].f+D<j)st[j].push_back(s[i].se);
^~
jobs.cpp:41:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int z=0;z<st[i].size();z++)cout<<st[i][z]<<" ";
~^~~~~~~~~~~~~