eastereggs.cpp:7:10: error: found ':' in nested-name-specifier, expected '::'
using std:pair;
^
eastereggs.cpp: In function 'int findEgg(int, P)':
eastereggs.cpp:25: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:31:12: error: no match for 'operator[]' (operand types are 'P {aka std::pair<int, int>}' and 'int')
g[bridges[i].first - 1].push_back(bridges[i].second - 1);
^
eastereggs.cpp:31:44: error: no match for 'operator[]' (operand types are 'P {aka std::pair<int, int>}' and 'int')
g[bridges[i].first - 1].push_back(bridges[i].second - 1);
^
eastereggs.cpp:32:12: error: no match for 'operator[]' (operand types are 'P {aka std::pair<int, int>}' and 'int')
g[bridges[i].second - 1].push_back(bridges[i].first - 1);
^
eastereggs.cpp:32:45: error: no match for 'operator[]' (operand types are 'P {aka std::pair<int, int>}' and 'int')
g[bridges[i].second - 1].push_back(bridges[i].first - 1);
^
eastereggs.cpp:23:9: warning: unused variable 'j' [-Wunused-variable]
int i, j;
^