Problem dijkstra
User chatdanai
Submission Time 2026-04-15 09:27:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dijkstra.cpp:2:1: error: ‘define’ does not name a type
2 | define int long long
| ^~~~~~
dijkstra.cpp: In function ‘int main()’:
dijkstra.cpp:7:5: error: ‘ios_base’ has not been declared
7 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
dijkstra.cpp:8:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | cin.tie(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from dijkstra.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
dijkstra.cpp:10:5: error: ‘vector’ was not declared in this scope
10 | vector<vector<pair<int,int>>> adj(V + 1);
| ^~~~~~
dijkstra.cpp:10:5: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,<