Submission #00259


ソースコード

ステータス

項目 データ
問題 0008 - 洞窟探検
ユーザー名 Jogasaki_Mika_Tanto_P
投稿日時 2015-07-24 20:19:20
言語 C++11
状態 Compile Error
得点 0
ソースコード長 907 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./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;
                         ^

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #