eastereggs.cpp: In function 'long long int findEgg(long long int, std::pair<long long int, long long int>)':
eastereggs.cpp:42:20: error: no match for 'operator[]' (operand types are 'std::pair<long long int, long long int>' and 'long long int')
42 | x = bridges[i].first;
| ^
eastereggs.cpp:43:20: error: no match for 'operator[]' (operand types are 'std::pair<long long int, long long int>' and 'long long int')
43 | y = bridges[i].second;
| ^
eastereggs.cpp:55:29: error: 'm' was not declared in this scope
55 | for(int i = 0; i <= m ; i++)
| ^
eastereggs.cpp:59:23: error: could not convert 'curr' from 'vector<long long int>' to 'vector<int>'
59 | int q = query(curr);
| ^~~~
| |
| vector<long long int>