Submission #00259
ソースコード
ステータス
コンパイルメッセージ
./259.cpp:8:1: エラー: ‘vector’ does not name a type
vector <vector<edge> > graph(100001);
^
./259.cpp:9:1: エラー: ‘vector’ does not name a type
vector <bool> used(100001, false);
^
./259.cpp: 関数 ‘int Dijkstra()’ 内:
./259.cpp:13:3: エラー: ‘priority_queue’ was not declared in this scope
priority_queue<iP, vector<iP>, greater<iP> > que;
^
./259.cpp:13:18: エラー: ‘iP’ was not declared in this scope
priority_queue<iP, vector<iP>, greater<iP> > que;
^
./259.cpp:13:22: エラー: ‘vector’ was not declared in this scope
priority_queue<iP, vector<iP>, greater<iP> > que;
^
./259.cpp:13:32: エラー: expected primary-expression before ‘,’ token
priority_queue<iP, vector<iP>, greater<iP> > que;
^
./259.cpp:13:34: エラー: ‘greater’ was not declared in this scope
priority_queue<iP, vector<iP>, greater<iP> > que;
^
./259.cpp:13:46: エラー: expected primary-expression before ‘>’ token
priority_queue<iP, vector<iP>, greater<iP> > que;
^
./259.cpp:13:48: エラー: ‘que’ was not declared in this scope
priority_queue<iP, vector<iP>, greater<iP> > que;
^
./259.cpp:14:3: エラー: ‘used’ was not declared in this scope
used[0] = true, costed[0] = 0; que.push(iP(0, 0));
^
./259.cpp:16:8: エラー: expected ‘;’ before ‘p’
iP p = que.top(); que.pop();
^
./259.cpp:17:10: エラー: ‘p’ was not declared in this scope
used[p.sc] = true;
^
./259.cpp:19:24: エラー: ‘graph’ was not declared in this scope
for(int i = 0; i < graph[p.sc].size(); i++) {
^
./259.cpp: 関数 ‘int main()’ 内:
./259.cpp:33:3: エラー: ‘cin’ was not declared in this scope
cin >> N >> L;
^
./259.cpp:36:5: エラー: ‘graph’ was not declared in this scope
graph[a].push_back((edge){b, c});
^
./259.cpp:39:26: エラー: ‘INF’ was not declared in this scope
fill_n(costed, 100001, INF);
^
./259.cpp:39:29: エラー: ‘fill_n’ was not declared in this scope
fill_n(costed, 100001, INF);
^
./259.cpp:40:3: エラー: ‘cout’ was not declared in this scope
cout << Dijkstra() << endl;
^
./259.cpp:40:25: エラー: ‘endl’ was not declared in this scope
cout << Dijkstra() << endl;
^
セット
テストケース