GraphSnakesandLadders a;
for (int i = 0; i <= 36 ; i++) {
for (int dice = 1; dice <= 6; dice++) {
int j = i + dice;
j += board[j];
if (j <= 36) {
a.addEdgeBfs(i, j);
}
}
}
a.addEdgeBfs(36, 36);
cout << a.bfs(0, 36);
For this I am getting an error Saying, error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream’} and ‘void’)