Submission #85872


ソースコード

ステータス

項目 データ
問題 2042 - お返しをするKamba君
ユーザー名 DAI_0110
投稿日時 2025-07-28 09:09:51
言語 C++11
状態 Compile Error
得点 0
ソースコード長 986 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

./Main.cpp:2:5: error: ‘vector’ does not name a type
     vector<int> data;
     ^~~~~~
./Main.cpp: In member function ‘int SegmentTree::f(int, int)’:
./Main.cpp:9:16: error: ‘max’ was not declared in this scope
         return max(a,b);
                ^~~
./Main.cpp: In constructor ‘SegmentTree::SegmentTree(int)’:
./Main.cpp:17:9: error: ‘data’ was not declared in this scope
         data.assign(2 * size, syoki);
         ^~~~
./Main.cpp:17:9: note: suggested alternative: ‘update’
         data.assign(2 * size, syoki);
         ^~~~
         update
./Main.cpp: In member function ‘int SegmentTree::query(int, int, int, int, int)’:
./Main.cpp:25:20: error: ‘data’ was not declared in this scope
             return(data[k]);
                    ^~~~
./Main.cpp:25:20: note: suggested alternative: ‘update’
             return(data[k]);
                    ^~~~
                    update
./Main.cpp: In member function ‘void SegmentTree::update(int, int)’:
./Main.cpp:36:9: error: ‘data’ was not declared in this scope
         data[k] = x;
         ^~~~
./Main.cpp:36:9: note: suggested alternative: ‘update’
         data[k] = x;
         ^~~~
         update

セット

セット 得点 Cases

テストケース

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