eastereggs.cpp: In function 'void dfs(long long int, long long int)':
eastereggs.cpp:15:13: error: 'num' was not declared in this scope
if (cur == num) return ;
^~~
eastereggs.cpp:15:13: note: suggested alternative: 'enum'
if (cur == num) return ;
^~~
enum
eastereggs.cpp:17:2: error: 'ans' was not declared in this scope
ans.pb(u);
^~~
eastereggs.cpp:17:2: note: suggested alternative: 'abs'
ans.pb(u);
^~~
abs
eastereggs.cpp: At global scope:
eastereggs.cpp:25:44: error: template argument 1 is invalid
int findEgg(int n, vector <pair <int, int> bridges){
^~~~~~~
eastereggs.cpp:25:44: error: template argument 2 is invalid
eastereggs.cpp:25:44: error: template argument 1 is invalid
eastereggs.cpp:25:44: error: template argument 2 is invalid
eastereggs.cpp:25:44: error: template argument 1 is invalid
eastereggs.cpp:25:44: error: template argument 2 is invalid
eastereggs.cpp:25:44: error: template argument 1 is invalid
eastereggs.cpp:25:44: error: template argument 2 is invalid
eastereggs.cpp:25:20: error: invalid template-id
int findEgg(int n, vector <pair <int, int> bridges){
^~~~~~
eastereggs.cpp:25:44: error: expected primary-expression before 'bridges'
int findEgg(int n, vector <pair <int, int> bridges){
^~~~~~~
eastereggs.cpp:25:44: error: expected '>' before 'bridges'
eastereggs.cpp:25:44: error: 'auto' parameter not permitted in this context
eastereggs.cpp: In function 'long long int findEgg(long long int)':
eastereggs.cpp:30:7: error: 'bridges' was not declared in this scope
adj[bridges[i-1].fi].pb(bridges[i-1].se);
^~~~~~~
eastereggs.cpp:34:3: error: 'num' was not declared in this scope
num = (cnt+1)>>1; cur = 0;
^~~
eastereggs.cpp:34:3: note: suggested alternative: 'enum'
num = (cnt+1)>>1; cur = 0;
^~~
enum
eastereggs.cpp:35:3: error: 'ans' was not declared in this scope
ans.clear();
^~~
eastereggs.cpp:35:3: note: suggested alternative: 'abs'
ans.clear();
^~~
abs
eastereggs.cpp:37:7: error: 'query' was not declared in this scope
if (query(ans)){
^~~~~
eastereggs.cpp:49:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^