fork download
  1. #include <iostream>
  2. #include <list>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. int n,i,v1,v2;
  9. cin >> n;
  10.  
  11. list<int> * A;
  12. A = new list<int> [n];
  13.  
  14. for(i = 0; i < n; i++)
  15. {
  16. cin >> v1 >> v2;
  17. A[v1].push_back(v2);
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0s 3272KB
stdin
2
1 0
1 1
stdout
Standard output is empty