Output not showing

Here is the code

#include
#include
#include
#include
using namespace std;

template
class Graph{

map< T, list<T>> l;
public:

void addEdge(int x,int y){
    l[x].push_back(y);
    l[y].push_back(x);
}


void bfs(T src){
    map<T,int> visited;
    queue<T> q;

    q.push(src);
    visited[src]=true;
    
    while(!q.empty()){
        T i=q.front();
        q.pop();

        for(int nbr:l[i]){
            if(!visited[nbr]){
                q.push(nbr);
                //mark that neighbour as visited
                visited[nbr]=true;
            }
        }

    }
}

};

int main(){

Graph<int> g;

g.addEdge(0,1);
g.addEdge(1,2);
g.addEdge(2,3);
g.addEdge(3,4);
g.addEdge(4,5);

g.bfs(0);

return 0;

}

hi @pulkit2489k_5b80ff7832cec21c please send your email id your doubt is not assigned to any TA

my email is [email protected]

hi @pulkit2489k_5b80ff7832cec21c please send the code on ide.codingblocks.com

  1. write
    2)save ( ctrl + S)
    3)share the url of the page