/in/foo.cc: In function 'int dfs(int)':
/in/foo.cc:23:30: error: invalid types 'int[int]' for array subscript
if(vis[cur]) return k[cur];
^
/in/foo.cc:27:18: error: invalid types 'int[int]' for array subscript
if (k[cur]>res-1) k[cur]=res-1;
^
/in/foo.cc:27:32: error: invalid types 'int[int]' for array subscript
if (k[cur]>res-1) k[cur]=res-1;
^
/in/foo.cc:29:11: error: invalid types 'int[int]' for array subscript
num[k[cur]][ccnt[k[cur]]++]=cur;
^
/in/foo.cc:29:24: error: invalid types 'int[int]' for array subscript
num[k[cur]][ccnt[k[cur]]++]=cur;
^
/in/foo.cc:30:17: error: invalid types 'int[int]' for array subscript
return k[cur];
^
/in/foo.cc:22:17: warning: unused variable 'j' [-Wunused-variable]
register int i,j,k;
^
/in/foo.cc: In function 'void run(int)':
/in/foo.cc:33:17: warning: unused variable 'j' [-Wunused-variable]
register int i,j;
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:42:31: error: invalid types 'int[int]' for array subscript
for(i=1;i<=n;i++) cin>>k[i];
^
/in/foo.cc:51:28: error: expected ';' before ')' token
cout<<num[i][j])<<" ";
^
/in/foo.cc:59:17: error: 't' was not declared in this scope
for(t=0;t<ccnt[j];t++) if(!gotos[num[j][t]]) p--;
^