/ Vijos /

记录详情

Compile Error

/in/foo.cc:6:1: error: expected initializer before 'bool'
 bool b[300],d[300];
 ^~~~
/in/foo.cc: In function 'void go(int, int)':
/in/foo.cc:20:1: error: 'd' was not declared in this scope
 d[j]=b[j];
 ^
/in/foo.cc:20:6: error: 'b' was not declared in this scope
 d[j]=b[j];
      ^
/in/foo.cc:24:6: error: 'b' was not declared in this scope
 if (!b[x])
      ^
/in/foo.cc:31:12: error: 'a' was not declared in this scope
 for(i=1;i<=a[x][0];i++)
            ^
/in/foo.cc:32:4: error: 'b' was not declared in this scope
 if(b[a[x][i]])
    ^
/in/foo.cc:39:1: error: 'b' was not declared in this scope
 b[c[i]]=true;
 ^
/in/foo.cc:40:1: error: 'b' was not declared in this scope
 b[x]=false;
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:52:1: error: 'a' was not declared in this scope
 a[x][++a[x][0]]=y;
 ^
/in/foo.cc:54:1: error: 'a' was not declared in this scope
 a[y][++a[y][0]]=x;
 ^
/in/foo.cc:57:8: error: 'b' was not declared in this scope
 memset(b,1,sizeof(b));
        ^
/in/foo.cc:61:8: error: 'd' was not declared in this scope
 cout<<(d[i]==1)<<' ';
        ^

信息

递交者
类型
递交
题目
P1593 部落卫队
语言
C++
递交时间
2024-06-15 20:11:18
评测时间
2024-06-15 20:11:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes