F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                        ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-17 09:01:07, Gzip enabled