0_0_21391991_21627.cpp:5:1: error: expected ',' or ';' before 'const'
const int maxn=100100;
^
0_0_21391991_21627.cpp:6:16: error: 'maxn' was not declared in this scope
int n,m,cal[2][maxn],a[maxn],b[maxn],ans = 1;
^
0_0_21391991_21627.cpp:6:24: error: 'maxn' was not declared in this scope
int n,m,cal[2][maxn],a[maxn],b[maxn],ans = 1;
^
0_0_21391991_21627.cpp:6:32: error: 'maxn' was not declared in this scope
int n,m,cal[2][maxn],a[maxn],b[maxn],ans = 1;
^
0_0_21391991_21627.cpp:7:10: error: 'maxn' was not declared in this scope
bool vis[maxn];
^
0_0_21391991_21627.cpp: In function 'void dfs(int, int, int*, int)':
0_0_21391991_21627.cpp:10:8: error: 'vis' was not declared in this scope
if(vis[t])
^
0_0_21391991_21627.cpp:12:9: error: 'cal' was not declared in this scope
cal[k][l]++;
^
0_0_21391991_21627.cpp:15:5: error: 'vis' was not declared in this scope
vis[t] = 1;
^
0_0_21391991_21627.cpp: In function 'int main()':
0_0_21391991_21627.cpp:24:24: error: 'a' was not declared in this scope
scanf("%d",a+i);
^
0_0_21391991_21627.cpp:26:24: error: 'b' was not declared in this scope
scanf("%d",b+i);
^
0_0_21391991_21627.cpp:27:16: error: 'cal' was not declared in this scope
memset(cal,0,sizeof(cal));
^
0_0_21391991_21627.cpp:28:16: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_21391991_21627.cpp:30:32: error: 'b' was not declared in this scope
if(!vis[i])dfs(i,0,b,0);
^
0_0_21391991_21627.cpp:33:32: error: 'a' was not declared in this scope
if(!vis[i])dfs(i,0,a,1);
^
|