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_37855912_8474.cpp: In function 'void dfs(long long int, long long int, long long int)':
0_0_37855912_8474.cpp:33:12: error: missing template arguments before 'tot'
     vector tot(V.size(),vector<int>(2,0));
            ^
0_0_37855912_8474.cpp:35:31: error: 'tot' was not declared in this scope
     for(int i=0;i<len;++i)    tot[i][0]=((i!=0)    ?tot[i-1][0]:0)+dp[V[i]][0];//,cout<<tot[i][0]<<" ";cout<<"\n";
                               ^
0_0_37855912_8474.cpp:36:31: error: 'tot' was not declared in this scope
     for(int i=len-1;i>=0;--i) tot[i][1]=((i!=len-1)?tot[i+1][1]:0)+dp[V[i]][1];//,cout<<tot[i][1]<<" ";cout<<"\n";
                               ^
0_0_37855912_8474.cpp:43:31: error: 'tot' was not declared in this scope
         int x=(l-1<0)   ? 0 : tot[l-1][0];
                               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-03 18:37:02, Gzip enabled