swap.cpp:2:1: error: expected unqualified-id before '/' token
2 | /include "stub.h"
| ^
swap.cpp:12:1: error: 'vector' does not name a type
12 | vector<pair<int,int>> g[N];
| ^~~~~~
swap.cpp: In function 'void init(long long int, long long int, long long int*, long long int*, long long int*)':
swap.cpp:18:17: error: 'g' was not declared in this scope
18 | g[U[i]].push_back({V[i],W[i]});
| ^
swap.cpp:21:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
21 | cin>>q;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75,
from swap.cpp:1:
/usr/include/c++/11/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
swap.cpp:25:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
25 | cout<<getMinimumFuelCapacity(x,y)<<"\n";
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75,
from swap.cpp:1:
/usr/include/c++/11/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
swap.cpp: In function 'void junk()':
swap.cpp:30:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
30 | cin>>n>>m;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75,
from swap.cpp:1:
/usr/include/c++/11/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
swap.cpp: In function 'int main()':
swap.cpp:37:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
37 | cin.tie(0)->sync_with_stdio(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75,
from swap.cpp:1:
/usr/include/c++/11/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~