Код: Выделить всё
#include
#include
using namespace std;
struct task{
long long a,b;
};
maptasks;
long long lst[10012],sum[10012],sub[10012];
int main(){
long long n,p,h,m;
cin>>n>>p>>h>>m;
for(int i=0;i>ta>>tb;
task[{ta,tb}]=true;
}
for(auto &t:tasks){
task cur=t.first;
sub[cur.a+1]--;
sub[cur.b]++;
}
for(int i=1;i
Подробнее здесь: [url]https://stackoverflow.com/questions/78692402/why-am-i-getting-a-compile-error-expected-identifier-before-token-c-1[/url]