0_0_18908565_4848.cpp:20:8: error: conflicting declaration 'int q [100005]' int q[N],vis[N],d[N]; ^ 0_0_18908565_4848.cpp:10:12: note: previous declaration as 'std::queue<int> q' queue<int> q; ^