0_0_21879287_9292.cpp:50:2: error: expected unqualified-id before 'return'
return ret;
^
0_0_21879287_9292.cpp: In member function 'int DMST::dmst(int)':
0_0_21879287_9292.cpp:27:17: error: 'ROOT' was not declared in this scope
if(u==root)ROOT=i;
^
0_0_21879287_9292.cpp:33:7: error: 'i' was not declared in this scope
for(i=0;i<n;++i)id[i]=vis[i]=-1;
^
0_0_21879287_9292.cpp:42:11: error: break statement not within loop or switch
if(!cnt)break;
^
0_0_21879287_9292.cpp: In function 'void variable(int&, int&)':
0_0_21879287_9292.cpp:53:16: error: 'n' was not declared in this scope
for(int i=0;i<n;++i)G.add(st,i,tot);
^
0_0_21879287_9292.cpp:53:28: error: 'st' was not declared in this scope
for(int i=0;i<n;++i)G.add(st,i,tot);
^
0_0_21879287_9292.cpp:53:33: error: 'tot' was not declared in this scope
for(int i=0;i<n;++i)G.add(st,i,tot);
^
0_0_21879287_9292.cpp:54:17: error: 'st' was not declared in this scope
int ans=G.dmst(st);
^
0_0_21879287_9292.cpp:55:18: error: 'tot' was not declared in this scope
if(ans==-1||ans-tot>tot)return;
^
0_0_21879287_9292.cpp:56:11: error: 'tot' was not declared in this scope
cost=ans-tot,root=ROOT-m;
^
0_0_21879287_9292.cpp:56:20: error: 'ROOT' was not declared in this scope
cost=ans-tot,root=ROOT-m;
^
0_0_21879287_9292.cpp:56:25: error: 'm' was not declared in this scope
cost=ans-tot,root=ROOT-m;
^
|