jobs.cpp: In function 'bool check(int)':
jobs.cpp:10:28: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
for(int i=0;i<M;i++)if(s[i]+D<max(s[i],i/T+1)return false;
^
jobs.cpp:10:50: error: expected ';' before 'return'
for(int i=0;i<M;i++)if(s[i]+D<max(s[i],i/T+1)return false;
^~~~~~
jobs.cpp:10:34: warning: value computed is not used [-Wunused-value]
for(int i=0;i<M;i++)if(s[i]+D<max(s[i],i/T+1)return false;
~~~~~~^~~~~~~~~~~~~~~~
jobs.cpp:11:6: error: expected primary-expression before 'return'
return true;
^~~~~~
jobs.cpp:11:6: error: expected ')' before 'return'
jobs.cpp:12:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^