Submission #54829


ソースコード

ステータス

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

コンパイルメッセージ

./Main.cpp: In function ‘void updata(long long int, long long int)’:
./Main.cpp:25:3: error: ‘sum_’ was not declared in this scope
   sum_
   ^~~~
./Main.cpp: In function ‘long long int find_min(P, long long int, long long int, long long int)’:
./Main.cpp:3:14: error: expected ‘)’ before ‘;’ token
 #define INF 0;
              ^
./Main.cpp:29:48: note: in expansion of macro ‘INF’
   if(right < a.first ||a.second < left) return(INF);
                                                ^~~
./Main.cpp:29:47: note: to match this ‘(’
   if(right < a.first ||a.second < left) return(INF);
                                               ^
./Main.cpp:29:51: error: expected primary-expression before ‘)’ token
   if(right < a.first ||a.second < left) return(INF);
                                                   ^
./Main.cpp: In function ‘long long int find_max(long long int, long long int, long long int, long long int, long long int)’:
./Main.cpp:37:17: error: ‘v’ was not declared in this scope
   if(a<=l && r<=v)
                 ^
./Main.cpp:38:12: error: ‘value_max’ was not declared in this scope
     return value_max[k];
            ^~~~~~~~~
./Main.cpp: In function ‘long long int find_sum(long long int, long long int, long long int, long long int, long long int)’:
./Main.cpp:47:17: error: ‘v’ was not declared in this scope
   if(a<=l && r<=v)
                 ^
./Main.cpp:48:12: error: ‘value_sum’ was not declared in this scope
     return value_sum[k];
            ^~~~~~~~~
./Main.cpp: At global scope:
./Main.cpp:55:10: error: ‘::main’ must return ‘int’
 int main(){
          ^
./Main.cpp: In function ‘int main()’:
./Main.cpp:57:14: error: found ‘:’ in nested-name-specifier, expected ‘::’
   int a,b,n,m:
              ^
              ::
./Main.cpp:57:13: error: ‘m’ has not been declared
   int a,b,n,m:
             ^
./Main.cpp:58:9: error: qualified-id in declaration before ‘>>’ token
     cin >> n>>m;
         ^~
./Main.cpp:61:25: error: expected primary-expression before ‘(’ token
   min_value=vector<int> (2*N+1,inf);
                         ^
./Main.cpp:4:23: error: expected ‘)’ before ‘;’ token
 #define inf 2147183647;
                       ^
./Main.cpp:61:32: note: in expansion of macro ‘inf’
   min_value=vector<int> (2*N+1,inf);
                                ^~~
./Main.cpp:61:25: note: to match this ‘(’
   min_value=vector<int> (2*N+1,inf);
                         ^
./Main.cpp:61:35: error: expected primary-expression before ‘)’ token
   min_value=vector<int> (2*N+1,inf);
                                   ^

セット

セット 得点 Cases

テストケース

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