how can i count total number of each topic separately?
for example total number of topic 1 between all nodes.
to begin enter 10 and 7 to initial node number and number of topic.
#include <iostream>
#include <vector>
#include <list>
#include <stdlib.h>
#include<time.h>
#include<iomanip>
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include<algorithm>
using namespace std;
int main() {
int numberOfNode;
cin>>numberOfNode;
int numberOfTopic;
cin>>numberOfTopic;
srand(time(NULL));
Please edit your post and make sure your code is [code]between code tags[/code] so that it has line numbers and syntax highlighting, as well as proper indentation.