eastereggs.cpp:4:1: error: 'usign' does not name a type; did you mean 'union'?
usign std:pair;
^~~~~
union
eastereggs.cpp:5:9: error: 'pair' does not name a type
typedef pair<int, int> P;
^~~~
eastereggs.cpp:19:21: error: 'P' has not been declared
int findEgg (int N, P bridges) {
^
eastereggs.cpp: In function 'int findEgg(int, int)':
eastereggs.cpp:22:20: error: request for member 'size' in 'g', which is of non-class type 'std::vector<int> [600]'
for (i = 0; i < g.size(); i++) {
^~~~
eastereggs.cpp:28:14: error: invalid types 'int[int]' for array subscript
g[bridges[i].first - 1].push_back(bridges[i].second - 1);
^
eastereggs.cpp:28:46: error: invalid types 'int[int]' for array subscript
g[bridges[i].first - 1].push_back(bridges[i].second - 1);
^
eastereggs.cpp:29:14: error: invalid types 'int[int]' for array subscript
g[bridges[i].second - 1].push_back(bridges[i].first - 1);
^
eastereggs.cpp:29:47: error: invalid types 'int[int]' for array subscript
g[bridges[i].second - 1].push_back(bridges[i].first - 1);
^
eastereggs.cpp:42:7: error: 'query' was not declared in this scope
if (query(v)) {
^~~~~
eastereggs.cpp:20:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^