RE in FIRESC

https://www.codechef.com/viewsolution/35858226

Can someone please look into the code and point out the mistake

vi adj[10001];
bool visited[10001];

N\le10^5

2 Likes