factories.cpp:15:20: error: '>>' should be '> >' within a nested template argument list
vector<pair<int,lld>> edge[500002];
^
factories.cpp: In function 'void makepar(int)':
factories.cpp:19:6: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &i : edge[x]){
^
factories.cpp:19:12: error: ISO C++ forbids declaration of 'i' with no type [-fpermissive]
for(auto &i : edge[x]){
^
factories.cpp:19:16: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for(auto &i : edge[x]){
^
factories.cpp:20:14: error: request for member 'first' in 'i', which is of non-class type 'int'
if(check[i.first]) continue;
^
factories.cpp:21:9: error: request for member 'first' in 'i', which is of non-class type 'int'
lev[i.first] = lev[x]+1;
^
factories.cpp:22:9: error: request for member 'first' in 'i', which is of non-class type 'int'
par[i.first][0].first = x; par[i.first][0].second = i.second;
^
factories.cpp:22:36: error: request for member 'first' in 'i', which is of non-class type 'int'
par[i.first][0].first = x; par[i.first][0].second = i.second;
^
factories.cpp:22:57: error: request for member 'second' in 'i', which is of non-class type 'int'
par[i.first][0].first = x; par[i.first][0].second = i.second;
^
factories.cpp:27:13: error: request for member 'first' in 'i', which is of non-class type 'int'
makepar(i.first);
^
factories.cpp: In function 'void Init(int, int*, int*, int*)':
factories.cpp:35:17: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
edge[A[i]].pb({B[i],D[i]});
^
factories.cpp:35:28: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
edge[A[i]].pb({B[i],D[i]});
^
factories.cpp:36:17: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
edge[B[i]].pb({A[i],D[i]});
^
factories.cpp:36:28: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
edge[B[i]].pb({A[i],D[i]});
^
factories.cpp: In function 'std::pair<long long int, long long int> dfs(int)':
factories.cpp:43:32: error: in C++98 'tmp' must be initialized by constructor, not by '{...}'
pair<lld,lld> tmp = {Linf,Linf};
^
factories.cpp:46:6: warning: 'auto' changes meaning in C++11; please remove it [-Wc++0x-compat]
for(auto &i : edge[x]){
^
factories.cpp:46:12: error: ISO C++ forbids declaration of 'i' with no type [-fpermissive]
for(auto &i : edge[x]){
^
factories.cpp:46:16: warning: range-based 'for' loops only available with -std=c++11 or -std=gnu++11
for(auto &i : edge[x]){
^
factories.cpp:47:14: error: request for member 'first' in 'i', which is of non-class type 'int'
if(check[i.first]) continue;
^
factories.cpp:48:27: error: request for member 'first' in 'i', which is of non-class type 'int'
pair<lld,lld> t = dfs(i.first);
^
factories.cpp:49:16: error: request for member 'second' in 'i', which is of non-class type 'int'
t.first += i.second; t.second += i.second;
^
factories.cpp:49:38: error: request for member 'second' in 'i', which is of non-class type 'int'
t.first += i.second; t.second += i.second;
^
factories.cpp: In function 'int getpar(int, int)':
factories.cpp:79:17: error: cannot convert 'std::pair<int, long long int>' to 'int' in return
return par[x][0];
^
factories.cpp: In function 'long long int getdis(int, int)':
factories.cpp:88:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^