/ Vijos /

记录详情

Compile Error

/in/foo.cc: In member function 'void Segment_Tree::build(int, int, int)':
/in/foo.cc:23:20: error: 'INF' was not declared in this scope
             C[x] = INF;
                    ^~~
/in/foo.cc:27:25: error: 'lc' was not declared in this scope
         build(L, M, lc(x));
                         ^
/in/foo.cc:28:29: error: 'rc' was not declared in this scope
         build(M + 1, R, rc(x));
                             ^
/in/foo.cc: In member function 'int Segment_Tree::getMin(int, int, int, int, int)':
/in/foo.cc:33:35: error: 'INF' was not declared in this scope
         int M = (L + R) / 2, v1 = INF, v2 = INF;
                                   ^~~
/in/foo.cc:34:48: error: 'lc' was not declared in this scope
         if(l <= M) v1 = getMin(L, M, l, r, lc(x));
                                                ^
/in/foo.cc:35:19: error: 'v2' was not declared in this scope
         if(r > M) v2 = getMin(M + 1, R, l, r, rc(x));
                   ^~
/in/foo.cc:35:51: error: 'rc' was not declared in this scope
         if(r > M) v2 = getMin(M + 1, R, l, r, rc(x));
                                                   ^
/in/foo.cc:36:24: error: 'v2' was not declared in this scope
         return min(v1, v2);
                        ^~
/in/foo.cc: In member function 'void Segment_Tree::modify(int, int, int, int, int)':
/in/foo.cc:41:42: error: 'lc' was not declared in this scope
         if(q <= M)modify(L, M, q, v, lc(x));
                                          ^
/in/foo.cc:42:41: error: 'rc' was not declared in this scope
         else modify(M + 1, R, q, v, rc(x));
                                         ^
/in/foo.cc:43:26: error: 'lc' was not declared in this scope
         C[x] = min(C[lc(x)], C[rc(x)]);
                          ^
/in/foo.cc:43:36: error: 'rc' was not declared in this scope
         C[x] = min(C[lc(x)], C[rc(x)]);
                                    ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:63:13: error: 'INF' was not declared in this scope
     if(k == INF)cout << -1 << '\n';
             ^~~

信息

递交者
类型
递交
题目
P1404 遭遇战
语言
C++
递交时间
2018-02-18 18:27:52
评测时间
2018-02-18 18:27:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes