0_0_27630728_6541.cpp:18:1: error: expected initializer before 'map'
map<ll,int>ma;
^
0_0_27630728_6541.cpp: In function 'void getans(long long int, long long int)':
0_0_27630728_6541.cpp:44:2: error: 'dis' was not declared in this scope
dis[u][i]=dis[pre][i]+g[u][i];
^
0_0_27630728_6541.cpp:48:33: error: 'dis' was not declared in this scope
for(ll i=1;i<=k;++i){ha=ha*3+((dis[u][i]==0)?0:3-dis[u][i]);if(dis[u][i])flag=1;}
^
0_0_27630728_6541.cpp:49:7: error: 'ma' was not declared in this scope
ans+=ma[ha];
^
0_0_27630728_6541.cpp: In function 'void getdis(long long int, long long int)':
0_0_27630728_6541.cpp:61:2: error: 'dis' was not declared in this scope
dis[u][i]=dis[pre][i]+g[u][i];
^
0_0_27630728_6541.cpp:66:11: error: 'dis' was not declared in this scope
ha=ha*3+dis[u][i];
^
0_0_27630728_6541.cpp:68:6: error: 'ma' was not declared in this scope
if(!ma[ha])st[++top]=ha;
^
0_0_27630728_6541.cpp:69:2: error: 'ma' was not declared in this scope
ma[ha]++;
^
0_0_27630728_6541.cpp: In function 'void calc(long long int)':
0_0_27630728_6541.cpp:80:2: error: 'ma' was not declared in this scope
ma[0]=1;
^
0_0_27630728_6541.cpp:84:24: error: 'dis' was not declared in this scope
for(int j=1;j<=k;++j)dis[u][j]=g[u][j];
^
0_0_27630728_6541.cpp:86:24: error: 'dis' was not declared in this scope
for(int j=1;j<=k;++j)dis[u][j]=0;
^
|