/scratch/final-multipath.cc: In function ‘int main(int, char**)’:
../scratch/final-multipath.cc:323:6: error: ‘RoutingProtocol’ was not declared in this scope
Ptr<RoutingProtocol> routing = node -> GetObject<RoutingProtocol>();
^
../scratch/final-multipath.cc:323:21: error: template argument 1 is invalid
Ptr<RoutingProtocol> routing = node -> GetObject<RoutingProtocol>();
^
../scratch/final-multipath.cc:323:31: error: invalid type in declaration before ‘=’ token
Ptr<RoutingProtocol> routing = node -> GetObject<RoutingProtocol>();
^
../scratch/final-multipath.cc:323:33: error: ‘node’ was not declared in this scope
Ptr<RoutingProtocol> routing = node -> GetObject<RoutingProtocol>();
^
../scratch/final-multipath.cc:323:68: error: expected primary-expression before ‘)’ token
Ptr<RoutingProtocol> routing = node -> GetObject<RoutingProtocol>();
^
../scratch/final-multipath.cc:324:14: error: ‘RoutingTableEntry’ was not declared in this scope
std::vector<RoutingTableEntry> entry = routing -> GetRoutingTableEntries();
^
../scratch/final-multipath.cc:324:31: error: template argument 1 is invalid
std::vector<RoutingTableEntry> entry = routing -> GetRoutingTableEntries();
^
../scratch/final-multipath.cc:324:31: error: template argument 2 is invalid
../scratch/final-multipath.cc:324:39: error: invalid type in declaration before ‘=’ token
std::vector<RoutingTableEntry> entry = routing -> GetRoutingTableEntries();
^
../scratch/final-multipath.cc:324:49: error: base operand of ‘->’ is not a pointer
std::vector<RoutingTableEntry> entry = routing -> GetRoutingTableEntries();
^
../scratch/final-multipath.cc:328:72: error: type/value mismatch at argument 1 in template parameter list for ‘template<class> class std::allocator’
for (std::vector < RoutingTableEntry, std::allocator<RoutingTableEntry>::iterator i = entry.begin(); i != entry.end(); i++)
^
../scratch/final-multipath.cc:328:72: error: expected a type, got ‘RoutingTableEntry’
../scratch/final-multipath.cc:328:100: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’
for (std::vector < RoutingTableEntry, std::allocator<RoutingTableEntry>::iterator i = entry.begin(); i != entry.end(); i++)
^
../scratch/final-multipath.cc:328:100: error: expected a type, got ‘RoutingTableEntry’
../scratch/final-multipath.cc:328:100: error: template argument 2 is invalid
../scratch/final-multipath.cc:328:103: error: name lookup of ‘i’ changed [-Werror]
for (std::vector < RoutingTableEntry, std::allocator<RoutingTableEntry>::iterator i = entry.begin(); i != entry.end(); i++)
^
In file included from ../scratch/final-multipath.cc:6:0:
../scratch/../src/ospf/model/ipv4-ospf-routing.cc:27:5: error: matches this ‘i’ under ISO standard rules [-Werror]
int i,vs,vd,l,c,f1,f2;int npaths=7;
^
../scratch/final-multipath.cc:300:64: error: matches this ‘i’ under old rules [-Werror]
for (std::map<FlowId, FlowMonitor::FlowStats>::const_iterator i = stats.begin (); i != stats.end (); i++)
^
../scratch/final-multipath.cc:328:114: error: request for member ‘end’ in ‘entry’, which is of non-class type ‘int’
for (std::vector < RoutingTableEntry, std::allocator<RoutingTableEntry>::iterator i = entry.begin(); i != entry.end(); i++)
^
../scratch/final-multipath.cc:330:17: error: base operand of ‘->’ is not a pointer
std::cout << i->destAddr << "\t\t"
^
../scratch/final-multipath.cc:331:17: error: base operand of ‘->’ is not a pointer
<< i->nextAddr << "\t\t"
^
../scratch/final-multipath.cc:332:17: error: base operand of ‘->’ is not a pointer
<< i->interface << "\t\t"
^
../scratch/final-multipath.cc:333:17: error: base operand of ‘->’ is not a pointer
<< i->distance << std::endl;
^