fork(1) download
  1. #include <iostream>
  2. #include <vector>
  3. #include <utility>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main()
  9. {
  10. int x, y, a, b, c, d, j, m, v;
  11. vector<pair<int, int> > ladder;
  12. cin >> x >> y;
  13. for (int i = 0; i < x; i++) {
  14. cin >> a >> b;
  15. ladder.push_back(pair(a, b));
  16. }
  17. vector<pair<int, int> > snake;
  18. for (int i = 0; i < y; i++) {
  19. cin >> c >> d;
  20. snake.push_back(pair(c, d));
  21. }
  22. vector<int> moves;
  23. cin >> v;
  24. while (v != 0) {
  25. moves.push_back(v);
  26. v = 0;
  27. cin >> v;
  28. }
  29. return 0;
  30. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:15:30: error: missing template arguments before ‘(’ token
         ladder.push_back(pair(a, b));
                              ^
prog.cpp:20:29: error: missing template arguments before ‘(’ token
         snake.push_back(pair(c, d));
                             ^
stdout
Standard output is empty