0_0_21710863_6673.cpp:5:1: error: expected initializer before 'const'
const LL inf=0x3f3f3f3f3f3f3f3f;
^
0_0_21710863_6673.cpp:6:7: error: 'LL' does not name a type
const LL maxn=3e3+10;
^
0_0_21710863_6673.cpp:7:1: error: 'LL' does not name a type
LL mp[maxn][maxn],pre[maxn];
^
0_0_21710863_6673.cpp:8:1: error: 'LL' does not name a type
LL n,m;
^
0_0_21710863_6673.cpp: In function 'void init()':
0_0_21710863_6673.cpp:12:12: error: 'mp' was not declared in this scope
memset(mp,0,sizeof(mp));
^
0_0_21710863_6673.cpp:13:9: error: 'LL' was not declared in this scope
for(LL i=1; i<=n; ++i)
^
0_0_21710863_6673.cpp:13:17: error: 'i' was not declared in this scope
for(LL i=1; i<=n; ++i)
^
0_0_21710863_6673.cpp:13:20: error: 'n' was not declared in this scope
for(LL i=1; i<=n; ++i)
^
0_0_21710863_6673.cpp:14:9: error: 'pre' was not declared in this scope
pre[i]=i;
^
0_0_21710863_6673.cpp: At global scope:
0_0_21710863_6673.cpp:17:1: error: 'LL' does not name a type
LL Find(LL x)
^
0_0_21710863_6673.cpp:24:11: error: variable or field 'join' declared void
void join(LL x,LL y)
^
0_0_21710863_6673.cpp:24:11: error: 'LL' was not declared in this scope
0_0_21710863_6673.cpp:24:16: error: 'LL' was not declared in this scope
void join(LL x,LL y)
^
0_0_21710863_6673.cpp: In function 'int main()':
0_0_21710863_6673.cpp:33:30: error: 'n' was not declared in this scope
while(~scanf("%lld%lld",&n,&m))
^
0_0_21710863_6673.cpp:33:33: error: 'm' was not declared in this scope
while(~scanf("%lld%lld",&n,&m))
^
0_0_21710863_6673.cpp:36:9: error: 'LL' was not declared in this scope
LL i,j,u,v,w,ans=inf;
^
0_0_21710863_6673.cpp:39:35: error: 'u' was not declared in this scope
scanf("%lld%lld%lld",&u,&v,&w);
^
0_0_21710863_6673.cpp:39:38: error: 'v' was not declared in this scope
scanf("%lld%lld%lld",&u,&v,&w);
^
0_0_21710863_6673.cpp:39:41: error: 'w' was not declared in this scope
scanf("%lld%lld%lld",&u,&v,&w);
^
0_0_21710863_6673.cpp:40:21: error: 'join' was not declared in this scope
join(u,v);
^
0_0_21710863_6673.cpp:41:13: error: 'mp' was not declared in this scope
mp[u][v]=mp[v][u]=mp[u][v]+w;
^
0_0_21710863_6673.cpp:43:12: error: expected ';' before 'fa'
LL fa=Find(1);
^
0_0_21710863_6673.cpp:44:13: error: 'i' was not declared in this scope
for(i=2; i<=n; ++i)
^
0_0_21710863_6673.cpp:45:22: error: 'Find' was not declared in this scope
if(Find(i)!=fa)
^
0_0_21710863_6673.cpp:45:25: error: 'fa' was not declared in this scope
if(Find(i)!=fa)
^
0_0_21710863_6673.cpp:47:12: error: 'i' was not declared in this scope
if(i!=n+1)
^
0_0_21710863_6673.cpp:52:21: error: 'j' was not declared in this scope
for(j=i+1; j<=n; ++j)
^
0_0_21710863_6673.cpp:53:24: error: 'mp' was not declared in this scope
if(mp[i][j])
^
0_0_21710863_6673.cpp:54:25: error: 'ans' was not declared in this scope
ans=min(ans,mp[i][j]);
^
0_0_21710863_6673.cpp:55:29: error: 'ans' was not declared in this scope
printf("%lld\n",ans);
^
|