|
|
1>------ Build started: Project: map template, Configuration: Debug Win32 ------ 1>Build started 21-5-2012 11:14:16. 1>InitializeBuildStatus: 1> Creating "Debug\map template.unsuccessfulbuild" because "AlwaysCreate" was specified. 1>ClCompile: 1> main.cpp 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\map(304): warning C4503: 'std::allocator<_Ty>::rebind<_Other>' : decorated name length exceeded, name was truncated 1> with 1> [ 1> _Ty=std::pair<const int,std::multimap<std::string,std::multimap<std::string,std::multimap<std::string,double>>>> 1> ] 1> and 1> [ 1> _Other=std::_Tree_nod<std::_Tmap_traits<int,std::multimap<std::string,std::multimap<std::string,std::multimap<std::string,double>>>,std::less<int>,std::allocator<std::pair<const int,std::multimap<std::string,std::multimap<std::string,std::multimap<std::string,double>>>>>,true>>::_Node 1> ] 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\map(302) : while compiling class template member function 'std::multimap<_Kty,_Ty>::multimap(void)' 1> with 1> [ 1> _Kty=int, 1> _Ty=std::multimap<std::string,std::multimap<std::string,std::multimap<std::string,double>>> 1> ] 1> c:\users\rianne\documents\visual studio 2010\map template\main.cpp(32) : see reference to class template instantiation 'std::multimap<_Kty,_Ty>' being compiled 1> with 1> [ 1> _Kty=int, 1> _Ty=std::multimap<std::string,std::multimap<std::string,std::multimap<std::string,double>>> 1> ] 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\utility(163): error C2664: 'std::pair<_Ty1,_Ty2>::pair(const std::pair<_Ty1,_Ty2> &)' : cannot convert parameter 1 from 'double' to 'const std::pair<_Ty1,_Ty2> &' 1> with 1> [ 1> _Ty1=std::string, 1> _Ty2=std::pair<std::string,std::pair<std::string,double>> 1> ] 1> Reason: cannot convert from 'double' to 'const std::pair<_Ty1,_Ty2>' 1> with 1> [ 1> _Ty1=std::string, 1> _Ty2=std::pair<std::string,std::pair<std::string,double>> 1> ] 1> No constructor could take the source type, or constructor overload resolution was ambiguous 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\utility(247) : see reference to function template instantiation 'std::_Pair_base<_Ty1,_Ty2>::_Pair_base<_Ty,double>(_Other1 &&,_Other2 &&)' being compiled 1> with 1> [ 1> _Ty1=int, 1> _Ty2=std::pair<std::string,std::pair<std::string,std::pair<std::string,double>>>, 1> _Ty=int, 1> _Other1=int, 1> _Other2=double 1> ] 1> c:\users\rianne\documents\visual studio 2010\map template\main.cpp(33) : see reference to function template instantiation 'std::pair<_Ty1,_Ty2>::pair<int,double>(_Other1 &&,_Other2 &&)' being compiled 1> with 1> [ 1> _Ty1=int, 1> _Ty2=std::pair<std::string,std::pair<std::string,std::pair<std::string,double>>>, 1> _Other1=int, 1> _Other2=double 1> ] 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:01.12 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
|
1>------ Build started: Project: map template, Configuration: Debug Win32 ------ 1>Build started 21-5-2012 10:25:27. 1>InitializeBuildStatus: 1> Touching "Debug\map template.unsuccessfulbuild". 1>ClCompile: 1> main.cpp 1>c:\users\rianne\documents\visual studio 2010\map template\main.cpp(29): error C2664: 'std::_Tree_iterator<_Mytree> std::multimap<_Kty,_Ty>::insert<Data&>(std::_Tree_const_iterator<_Mytree>,_Valty)' : cannot convert parameter 1 from 'int' to 'std::_Tree_const_iterator<_Mytree>' 1> with 1> [ 1> _Mytree=std::_Tree_val<std::_Tmap_traits<int,std::multimap<std::string,std::multimap<std::string,std::vector<Data>>>,std::less<int>,std::allocator<std::pair<const int,std::multimap<std::string,std::multimap<std::string,std::vector<Data>>>>>,true>>, 1> _Kty=int, 1> _Ty=std::multimap<std::string,std::multimap<std::string,std::vector<Data>>>, 1> _Valty=Data & 1> ] 1> and 1> [ 1> _Mytree=std::_Tree_val<std::_Tmap_traits<int,std::multimap<std::string,std::multimap<std::string,std::vector<Data>>>,std::less<int>,std::allocator<std::pair<const int,std::multimap<std::string,std::multimap<std::string,std::vector<Data>>>>>,true>> 1> ] 1> No constructor could take the source type, or constructor overload resolution was ambiguous 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.54 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
|
|
|
multimap<string, multimap<string, multimap<string, double>>>
, but I'm not entirely sure that's useful.
|
|
|
|
Rows = 21 Columns = 13 Cells = 273 C = 21, T = 13 |
|
|
return(*rows, *columns);
doesn't do what you expect. The comma operator is generally not what you need. Use it in function definitions and declaring several variables of the same type, but nowhere else.
|
|
|
|
while (row == 0)
, but I suggest dropping it, as the cell/rows method is exact.