Submission #1305931

#TimeUsernameProblemLanguageResultExecution timeMemory
1305931orgiloogiiCrocodile's Underground City (IOI11_crocodile)C++20
Compilation error
0 ms0 KiB
#include "crocodile.h" //#include <bits/stdc++.h> using namespace std; vector <vector <pair <int, int>>> adj; vector <int> fin; int dfs(int u) { int m = INT_MAX, m1 = INT_MAX; for (auto [x, y] : adj) { int u = dfs(x) + y; if (u < m) { m1 = m; m = u; } else if (u < m1) { m1 = u; } } if (m1 == INT_MAX) { return 0; } return m1; } int travel_plan(int n, int m, int r[][2], int l[], int k, int p[]) { adj.resize(n); fin.resize(n); for (int i = 0;i < m;i++) { adj[r[i][0]].push_back({r[i][1], l[i]}); } return dfs(0); }

Compilation message (stderr)

crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:2:1: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
    1 | #include "crocodile.h"
  +++ |+#include <utility>
    2 | //#include <bits/stdc++.h>
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    1 | #include "crocodile.h"
  +++ |+#include <vector>
    2 | //#include <bits/stdc++.h>
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:4:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:4:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:4:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:4:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:4:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:4:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:4:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:9: error: 'vector' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |         ^~~~~~
crocodile.cpp:4:9: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
crocodile.cpp:4:17: error: 'pair' was not declared in this scope
    4 | vector <vector <pair <int, int>>> adj;
      |                 ^~~~
crocodile.cpp:4:17: note: 'std::pair' is defined in header '<utility>'; did you forget to '#include <utility>'?
crocodile.cpp:4:1: error: 'vector' does not name a type
    4 | vector <vector <pair <int, int>>> adj;
      | ^~~~~~
crocodile.cpp:5:1: error: 'vector' does not name a type
    5 | vector <int> fin;
      | ^~~~~~
crocodile.cpp: In function 'int dfs(int)':
crocodile.cpp:7:13: error: 'INT_MAX' was not declared in this scope
    7 |     int m = INT_MAX, m1 = INT_MAX;
      |             ^~~~~~~
crocodile.cpp:2:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
    1 | #include "crocodile.h"
  +++ |+#include <climits>
    2 | //#include <bits/stdc++.h>
crocodile.cpp:8:24: error: 'adj' was not declared in this scope
    8 |     for (auto [x, y] : adj) {
      |                        ^~~
crocodile.cpp:11:13: error: 'm1' was not declared in this scope; did you mean 'm'?
   11 |             m1 = m;
      |             ^~
      |             m
crocodile.cpp:14:22: error: 'm1' was not declared in this scope; did you mean 'm'?
   14 |         else if (u < m1) {
      |                      ^~
      |                      m
crocodile.cpp:18:9: error: 'm1' was not declared in this scope; did you mean 'm'?
   18 |     if (m1 == INT_MAX) {
      |         ^~
      |         m
crocodile.cpp:21:12: error: 'm1' was not declared in this scope; did you mean 'm'?
   21 |     return m1;
      |            ^~
      |            m
crocodile.cpp: In function 'int travel_plan(int, int, int (*)[2], int*, int, int*)':
crocodile.cpp:25:5: error: 'adj' was not declared in this scope
   25 |     adj.resize(n);
      |     ^~~
crocodile.cpp:26:5: error: 'fin' was not declared in this scope
   26 |     fin.resize(n);
      |     ^~~