dna.cpp:11:1: error: 'vector' does not name a type
11 | vector<int> A, B;
| ^~~~~~
dna.cpp:13:16: error: 'array' was not declared in this scope
13 | typedef vector<array<int, 3>> pref;
| ^~~~~
dna.cpp:1:1: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'?
+++ |+#include <array>
1 | #define pb push_back
dna.cpp:13:16: error: 'array' was not declared in this scope
13 | typedef vector<array<int, 3>> pref;
| ^~~~~
dna.cpp:13:16: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'?
dna.cpp:13:16: error: 'array' was not declared in this scope
dna.cpp:13:16: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'?
dna.cpp:13:16: error: 'array' was not declared in this scope
dna.cpp:13:16: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'?
dna.cpp:13:16: error: 'array' was not declared in this scope
dna.cpp:13:16: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'?
dna.cpp:13:16: error: 'array' was not declared in this scope
dna.cpp:13:16: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'?
dna.cpp:13:9: error: 'vector' does not name a type
13 | typedef vector<array<int, 3>> pref;
| ^~~~~~
dna.cpp:15:8: error: 'pref' was not declared in this scope
15 | vector<pref> pref_tbl;
| ^~~~
dna.cpp:15:8: error: 'pref' was not declared in this scope
dna.cpp:15:8: error: 'pref' was not declared in this scope
dna.cpp:15:8: error: 'pref' was not declared in this scope
dna.cpp:15:8: error: 'pref' was not declared in this scope
dna.cpp:15:8: error: 'pref' was not declared in this scope
dna.cpp:15:8: error: 'pref' was not declared in this scope
dna.cpp:15:8: error: 'pref' was not declared in this scope
dna.cpp:15:8: error: 'pref' was not declared in this scope
dna.cpp:15:1: error: 'vector' does not name a type
15 | vector<pref> pref_tbl;
| ^~~~~~
dna.cpp:17:6: error: variable or field 'init' declared void
17 | void init(string a, string b)
| ^~~~
dna.cpp:17:11: error: 'string' was not declared in this scope
17 | void init(string a, string b)
| ^~~~~~
dna.cpp:1:1: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
+++ |+#include <string>
1 | #define pb push_back
dna.cpp:17:21: error: 'string' was not declared in this scope
17 | void init(string a, string b)
| ^~~~~~
dna.cpp:17:21: note: 'std::string' is defined in header '<string>'; did you forget to '#include <string>'?
dna.cpp: In function 'int get_distance(int, int)':
dna.cpp:100:5: error: 'pref' was not declared in this scope
100 | pref curr = pref_tbl[y + 1];
| ^~~~
dna.cpp:103:5: error: 'curr' was not declared in this scope
103 | curr[0][1] -= pref_tbl[x][0][1];
| ^~~~
dna.cpp:103:19: error: 'pref_tbl' was not declared in this scope
103 | curr[0][1] -= pref_tbl[x][0][1];
| ^~~~~~~~
dna.cpp:123:13: error: 'A' was not declared in this scope
123 | if (A[i] == B[i])
| ^
dna.cpp:123:21: error: 'B' was not declared in this scope
123 | if (A[i] == B[i])
| ^
dna.cpp:126:18: error: 'A' was not declared in this scope
126 | if (curr[A[i]][B[i]] == 0 && curr[B[i]][A[i]] == 0) // oba już zamienione
| ^
dna.cpp:126:24: error: 'B' was not declared in this scope
126 | if (curr[A[i]][B[i]] == 0 && curr[B[i]][A[i]] == 0) // oba już zamienione
| ^
dna.cpp:129:18: error: 'A' was not declared in this scope
129 | if (curr[A[i]][B[i]] > 0 && curr[B[i]][A[i]] > 0) // oba możemy zamienić miejscami
| ^
dna.cpp:129:24: error: 'B' was not declared in this scope
129 | if (curr[A[i]][B[i]] > 0 && curr[B[i]][A[i]] > 0) // oba możemy zamienić miejscami
| ^
dna.cpp:138:13: error: 'A' was not declared in this scope
138 | if (A[i] != 0 && B[i] != 0)
| ^
dna.cpp:138:26: error: 'B' was not declared in this scope
138 | if (A[i] != 0 && B[i] != 0)
| ^
dna.cpp:145:18: error: 'A' was not declared in this scope
145 | if (curr[A[i]][B[i]] > 0) // A na B ale nie B na A
| ^
dna.cpp:145:24: error: 'B' was not declared in this scope
145 | if (curr[A[i]][B[i]] > 0) // A na B ale nie B na A
| ^
dna.cpp:162:13: error: 'cerr' was not declared in this scope
162 | cerr << "error0\n";
| ^~~~
dna.cpp:1:1: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | #define pb push_back