Dijkstros algoritmas

Taškai: 0

Compile: FAIL

dijkstra.cpp:10:1: error: expected initializer before ‘int’ 10 | int n, m; | ^~~ dijkstra.cpp: In function ‘void gen(int)’: dijkstra.cpp:15:28: error: ‘n’ was not declared in this scope; did you mean ‘yn’? 15 | vector<long long> dist(n+1, LONG_MAX); | ^ | yn dijkstra.cpp: In function ‘int main()’: dijkstra.cpp:44:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’? 44 | cin>>n>>m; | ^ | yn dijkstra.cpp:44:13: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 44 | cin>>n>>m; | ^ | tm

nr.resulttimemessage