alternating.cpp: In function 'int main()':
alternating.cpp:17:5: error: 'vector' was not declared in this scope
17 | vector<pair<int, int>> seg(m);
| ^~~~~~
alternating.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include <iostream>
+++ |+#include <vector>
2 |
alternating.cpp:17:25: error: expected primary-expression before '>' token
17 | vector<pair<int, int>> seg(m);
| ^~
alternating.cpp:17:28: error: 'seg' was not declared in this scope
17 | vector<pair<int, int>> seg(m);
| ^~~
alternating.cpp:25:23: error: expected primary-expression before 'int'
25 | vector<vector<int>> tab(n + 1, vector<int>(2, 0));
| ^~~
alternating.cpp:32:17: error: 'b' was not declared in this scope
32 | if (b < a) {
| ^
alternating.cpp:33:46: error: 'tab' was not declared in this scope
33 | for (int i = a; i <= n; i++) tab[i][bit] = 1;
| ^~~
alternating.cpp:34:46: error: 'tab' was not declared in this scope
34 | for (int i = 1; i <= b; i++) tab[i][bit] = 1;
| ^~~
alternating.cpp:36:47: error: 'tab' was not declared in this scope
36 | else for (int i = a; i <= b; i++) tab[i][bit] = 1;
| ^~~
alternating.cpp:41:18: error: 'tab' was not declared in this scope
41 | if (!tab[i][0] || !tab[i][1]) git = 0;
| ^~~