/ Vijos /

记录详情

Compile Error

/in/foo.cc:3:27: error: multiple types in one declaration
 struct Tree{int max,count;};Tree tree[1010][30010];
                           ^
/in/foo.cc:3:27: error: declaration does not declare anything [-fpermissive]
/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:7:8: error: 'K' was not declared in this scope
   tree[K][node].max=0;
        ^
/in/foo.cc:14:22: error: 'K' was not declared in this scope
  Tree l=treemax(tree[K][2*node],tree[K][2*node+1]);
                      ^
/in/foo.cc: In function 'void down(int, int, int)':
/in/foo.cc:21:5: error: 'color' was not declared in this scope
  if(color[K][node]){
     ^~~~~
/in/foo.cc:21:11: error: 'K' was not declared in this scope
  if(color[K][node]){
           ^
/in/foo.cc: In function 'void update(int, int, int)':
/in/foo.cc:29:12: error: 'left' was not declared in this scope
  if(begin>=left&&end<=right){
            ^~~~
/in/foo.cc:29:23: error: 'right' was not declared in this scope
  if(begin>=left&&end<=right){
                       ^~~~~
/in/foo.cc:30:3: error: 'color' was not declared in this scope
   color[K][node]++;
   ^~~~~
/in/foo.cc:30:9: error: 'K' was not declared in this scope
   color[K][node]++;
         ^
/in/foo.cc:36:10: error: 'left' was not declared in this scope
  if(mid>=left)update(2*node,begin,mid);
          ^~~~
/in/foo.cc:37:9: error: 'right' was not declared in this scope
  if(mid<right)update(2*node+1,mid+1,end);
         ^~~~~
/in/foo.cc:38:22: error: 'K' was not declared in this scope
  Tree l=treemax(tree[K][2*node],tree[K][2*node+1]);
                      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:45:18: error: 'N' was not declared in this scope
  scanf("%d%d%d",&N,&M,&T);
                  ^
/in/foo.cc:45:21: error: 'M' was not declared in this scope
  scanf("%d%d%d",&N,&M,&T);
                     ^
/in/foo.cc:45:24: error: 'T' was not declared in this scope
  scanf("%d%d%d",&N,&M,&T);
                        ^
/in/foo.cc:47:3: error: 'K' was not declared in this scope
   K=i;build(1,1,M);
   ^
/in/foo.cc:54:4: error: 'left' was not declared in this scope
    left=m-l;right=m+l;
    ^~~~
/in/foo.cc:54:13: error: 'right' was not declared in this scope
    left=m-l;right=m+l;
             ^~~~~
/in/foo.cc:55:4: error: 'K' was not declared in this scope
    K=n-h;update(1,1,M);
    ^

信息

递交者
类型
递交
题目
P1528 圆和点
语言
C++
递交时间
2017-08-15 13:40:08
评测时间
2017-08-15 13:40:08
评测机
分数
0
总耗时
21ms
峰值内存
3.695 MiB