Hi, I need help fixing something small in my C++ code.
Code:
#include <iostream>
#include <cstdlib>
#include <cctype>
#include <vector>
#include <limits.h>
#include <string>
#include <cstring>
#include <list>
#include <algorithm>
#include <fstream>
using namespace std;
void addEdge(vector <pair<int, int> > adj[], int u,int v, int wt)
{
adj[u].push_back(make_pair(v, wt));
adj[v].push_back(make_pair(u, wt));
}
// Print adjacency list representaion ot graph
void printGraph(vector<pair<int, int> > adj[], intV)
{
int v, w;
for (int u = 0; u < V; u++)
{
cout << u << ” – “;
for (auto it = adj[u].begin(); it != adj[u].end(); it++)
{
v = it->first;
w = it->second;
cout << v << ” =”
<< w << “n”;
}
cout << “n”;
}
}
// This function mainly does BFS and prints the
// shortest path from src to dest. It is
PayPal Gateway not configured
PayPal Gateway not configured