dzumbus.cpp:23:1: error: 'vector' does not name a type; did you mean 'qecvt_r'?
vector<int> g [N];
^~~~~~
qecvt_r
dzumbus.cpp: In function 'void join(int, int)':
dzumbus.cpp:29:18: error: 'g' was not declared in this scope
for (auto to : g[node]) {
^
dzumbus.cpp: In function 'void dfs(int, int)':
dzumbus.cpp:43:18: error: 'g' was not declared in this scope
for (auto to : g[node]) {
^
dzumbus.cpp: In function 'int main()':
dzumbus.cpp:80:5: error: 'g' was not declared in this scope
g[st].emplace_back(et);
^
dzumbus.cpp:85:7: error: 'g' was not declared in this scope
g[DUMMY].emplace_back(i);
^
dzumbus.cpp:97:3: error: 'vector' was not declared in this scope
vector<pair<int, int> > perguntas (q);
^~~~~~
dzumbus.cpp:97:3: note: suggested alternative: 'qecvt_r'
vector<pair<int, int> > perguntas (q);
^~~~~~
qecvt_r
dzumbus.cpp:97:25: error: expected primary-expression before '>' token
vector<pair<int, int> > perguntas (q);
^
dzumbus.cpp:97:27: error: 'perguntas' was not declared in this scope
vector<pair<int, int> > perguntas (q);
^~~~~~~~~
dzumbus.cpp:103:31: error: expected primary-expression before '>' token
vector<pair<long long, int> > Get (N);
^
dzumbus.cpp:103:33: error: 'Get' was not declared in this scope
vector<pair<long long, int> > Get (N);
^~~
dzumbus.cpp:103:33: note: suggested alternative: 'getw'
vector<pair<long long, int> > Get (N);
^~~
getw
dzumbus.cpp:110:10: error: expected primary-expression before 'int'
vector<int> ans (q);
^~~
dzumbus.cpp:116:5: error: 'ans' was not declared in this scope
ans[perguntas[i].second] = mx;
^~~
dzumbus.cpp:116:5: note: suggested alternative: 'abs'
ans[perguntas[i].second] = mx;
^~~
abs
dzumbus.cpp:118:47: error: 'ans' was not declared in this scope
for (int i = 0; i < q; i++) printf ("%d\n", ans[i]);
^~~
dzumbus.cpp:118:47: note: suggested alternative: 'abs'
for (int i = 0; i < q; i++) printf ("%d\n", ans[i]);
^~~
abs
dzumbus.cpp:74:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d", &n, &m);
~~~~~~^~~~~~~~~~~~~~~~~
dzumbus.cpp:76:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1; i <= n; i++) scanf ("%lld", &cost[i]);
~~~~~~^~~~~~~~~~~~~~~~~~
dzumbus.cpp:79:11: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d", &st, &et);
~~~~~~^~~~~~~~~~~~~~~~~~~
dzumbus.cpp:96:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &q);
~~~~~~^~~~~~~~~~