const int Max=100; vector<int> graph[Max]; while(m--) { int x,y; cin>>x>>y; graph[x].emplace_back(y); indegree[y]++; }