garden.cpp: In function 'void count_routes(int, int, int, int (*)[2], int, int*)':
garden.cpp:21:7: error: '::N' has not been declared
::N= N;
^
garden.cpp:23:9: error: 'adj' was not declared in this scope
adj[R[i][0]].push_back({i,R[i][1]});
^~~
garden.cpp:27:14: error: 'adj' was not declared in this scope
sort(adj[i].begin(),adj[i].end());
^~~
garden.cpp:31:21: error: 'adj' was not declared in this scope
int there = adj[i][0].second;
^~~
garden.cpp:32:9: error: 'nxt' was not declared in this scope
nxt[i][0] = adj[i][0].second;
^~~
garden.cpp:32:9: note: suggested alternative: 'exit'
nxt[i][0] = adj[i][0].second;
^~~
exit
garden.cpp:40:13: error: 'nxt' was not declared in this scope
nxt[j][i] = nxt[nxt[j][i-1]][i-1];
^~~
garden.cpp:40:13: note: suggested alternative: 'exit'
nxt[j][i] = nxt[nxt[j][i-1]][i-1];
^~~
exit
garden.cpp:52:27: error: 'nxt' was not declared in this scope
cur = nxt[cur][j];
^~~
garden.cpp:58:9: error: 'answer' was not declared in this scope
answer(cnt);
^~~~~~