Submission #53775


ソースコード

ステータス

項目 データ
問題 0459 - セグメントツリー練習
ユーザー名 ei1941
投稿日時 2019-08-29 09:35:25
言語 C++17
状態 Compile Error
得点 0
ソースコード長 1182 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp:2:1: error: ‘vector’ does not name a type
 vector<int> value;
 ^~~~~~
./Main.cpp: In function ‘void update(int, int)’:
./Main.cpp:7:5: error: ‘value’ was not declared in this scope
     value[i] = x;
     ^~~~~
./Main.cpp:10:20: error: ‘min’ was not declared in this scope
         value[i] = min(value[i * 2 + 1],
                    ^~~
./Main.cpp: In function ‘int query(int, int, int, int, int)’:
./Main.cpp:19:16: error: ‘value’ was not declared in this scope
         return value[k];
                ^~~~~
./Main.cpp:23:16: error: ‘min’ was not declared in this scope
         return min(c1, c2);
                ^~~
./Main.cpp: In function ‘int main()’:
./Main.cpp:29:5: error: ‘cin’ was not declared in this scope
     cin >> n;
     ^~~
./Main.cpp:29:5: note: suggested alternative: ‘main’
     cin >> n;
     ^~~
     main
./Main.cpp:33:5: error: ‘value’ was not declared in this scope
     value = vector<int>(2 * N - 1, INF);
     ^~~~~
./Main.cpp:33:13: error: ‘vector’ was not declared in this scope
     value = vector<int>(2 * N - 1, INF);
             ^~~~~~
./Main.cpp:33:20: error: expected primary-expression before ‘int’
     value = vector<int>(2 * N - 1, INF);
                    ^~~
./Main.cpp:39:9: error: ‘string’ was not declared in this scope
         string  c;
         ^~~~~~
./Main.cpp:39:9: note: suggested alternative: ‘struct’
         string  c;
         ^~~~~~
         struct
./Main.cpp:40:16: error: ‘c’ was not declared in this scope
         cin >> c;
                ^
./Main.cpp:50:13: error: ‘cout’ was not declared in this scope
             cout << query(s, t + 1, 0, 0, N) << endl;
             ^~~~
./Main.cpp:50:49: error: ‘endl’ was not declared in this scope
             cout << query(s, t + 1, 0, 0, N) << endl;
                                                 ^~~~
./Main.cpp:50:49: note: suggested alternative: ‘enum’
             cout << query(s, t + 1, 0, 0, N) << endl;
                                                 ^~~~
                                                 enum

セット

セット 得点 Cases

テストケース

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