/in/foo.cc: In function 'void dijkstra(int, int)':
/in/foo.cc:32:9: error: no match for 'operator[]' (operand types are 'bool [100100][2]' and 'node')
vis[now][f]=1;
^
/in/foo.cc:36:43: error: incompatible types in assignment of 'int*' to 'int [2]'
dis[to[i][f]]=dis[now.poi]+cost[i][f];
^
/in/foo.cc:37:61: error: invalid conversion from 'int*' to 'int' [-fpermissive]
if(!vis[to[i][f]]) dl.push(node{to[i][f],dis[to[i][f]]});
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:64:30: error: 's' was not declared in this scope
while(scanf("%d%d%d",&n,&m,&s)!=EOF) printf("%d\n",work());
^