struct vertex{
short int s; //droga
int v2; // 2gi wierzcholek
};
typedef vector< vector< vertex > > wekt; // nowy typ = wektor wektorow
wekt wektor;
Jaki typ przekazuję do funkcji? BO wywala mi problemy ;/
getWay(wektor[mainBusStop]);
Próbowałem
int getWay(wekt wektorek) {
}
--> error: conversion from ‘std::vector<vertex, std::allocator<vertex> >’ to non-scalar type ‘wekt’ requested
int getWay(vertex wektorek) {
}
--> error: conversion from ‘std::vector<vertex, std::allocator<vertex> >’ to non-scalar type ‘vertex’ requested