speedrun.cpp:4:1: error: 'vector' does not name a type
4 | vector<vector<int> > g(MAXN);
| ^~~~~~
speedrun.cpp: In function 'void assignHints(int, int, int*, int*)':
speedrun.cpp:7:3: error: 'g' was not declared in this scope
7 | g[A[i]].push_back(B[i]);
| ^
speedrun.cpp:11:26: error: 'g' was not declared in this scope
11 | for(int i=1; i<=N; i++)g[i].clear();
| ^
speedrun.cpp:13:3: error: 'vector' was not declared in this scope
13 | vector<int> us(N+1, 0), pr(N+1, 0);
| ^~~~~~
speedrun.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
1 | #include "speedrun.h"
+++ |+#include <vector>
2 | using namespace std;
speedrun.cpp:13:10: error: expected primary-expression before 'int'
13 | vector<int> us(N+1, 0), pr(N+1, 0);
| ^~~
speedrun.cpp:14:3: error: 'queue' was not declared in this scope
14 | queue<int> q;
| ^~~~~
speedrun.cpp:2:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
1 | #include "speedrun.h"
+++ |+#include <queue>
2 | using namespace std;
speedrun.cpp:14:9: error: expected primary-expression before 'int'
14 | queue<int> q;
| ^~~
speedrun.cpp:15:3: error: 'q' was not declared in this scope
15 | q.push(1);
| ^
speedrun.cpp:16:3: error: 'us' was not declared in this scope
16 | us[1]=1;
| ^~
speedrun.cpp:21:20: error: 'pr' was not declared in this scope
21 | setHint(v, j, (pr[v] & (1<<(j-1) ) ? 1 : 0) );
| ^~
speedrun.cpp:24:18: error: 'g' was not declared in this scope
24 | for(auto to : g[v]) {
| ^
speedrun.cpp:26:6: error: 'pr' was not declared in this scope
26 | pr[to]=v;
| ^~
speedrun.cpp: In function 'void dfs(int, int)':
speedrun.cpp:58:4: error: 'cout' was not declared in this scope
58 | cout << "ne\n";
| ^~~~
speedrun.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include "speedrun.h"
+++ |+#include <iostream>
2 | using namespace std;
speedrun.cpp:59:4: error: 'exit' was not declared in this scope
59 | exit(0);
| ^~~~
speedrun.cpp:66:4: error: 'cout' was not declared in this scope
66 | cout << "ne\n";
| ^~~~
speedrun.cpp:66:4: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
speedrun.cpp:67:4: error: 'exit' was not declared in this scope
67 | exit(0);
| ^~~~
speedrun.cpp: In function 'void speedrun(int, int, int)':
speedrun.cpp:75:7: warning: unused variable 'l' [-Wunused-variable]
75 | int l=getLength();
| ^