Grafų saugojimo būdai

Taškai: 0

Compile: FAIL

grafu_saugojimo_budai.cpp:5:16: error: ‘NMAX’ was not declared in this scope 5 | vector<ll> adj[NMAX]; | ^~~~ grafu_saugojimo_budai.cpp:7:14: error: ‘NMAX’ was not declared in this scope 7 | ll adjMatrix[NMAX][NMAX]; | ^~~~ grafu_saugojimo_budai.cpp:7:20: error: ‘NMAX’ was not declared in this scope 7 | ll adjMatrix[NMAX][NMAX]; | ^~~~ grafu_saugojimo_budai.cpp: In function ‘int main()’: grafu_saugojimo_budai.cpp:25:9: error: ‘adjMatrix’ was not declared in this scope 25 | adjMatrix[i][j] = 1; | ^~~~~~~~~ grafu_saugojimo_budai.cpp:28:9: error: ‘adj’ was not declared in this scope 28 | adj[i].push_back(j); | ^~~ grafu_saugojimo_budai.cpp:35:21: error: ‘adjMatrix’ was not declared in this scope 35 | cout << adjMatrix[q][l]; | ^~~~~~~~~ grafu_saugojimo_budai.cpp:43:17: error: ‘adj’ was not declared in this scope 43 | cout << adj[q].size() << " "; | ^~~

nr.resulttimemessage