#include #include using std::vector; using std::pair; int acyclic(vector > &adj) { //write your code here return 0; } int main() { size_t n, m; std::cin >> n >> m; vector > adj(n, vector()); for (size_t i = 0; i < m; i++) { int x, y; std::cin >> x >> y; adj[x - 1].push_back(y - 1); } std::cout << acyclic(adj); }