|
|
|
|
../a1.cpp: In function `void processFile(std::string)': ../a1.cpp:167: error: request for member `getWd' in `puz_arr', which is of non-class type `Array2D ()()' ../a1.cpp:169: error: assignment of function `Array2D puz_arr()' ../a1.cpp:169: error: cannot convert `Array2D' to `Array2D ()()' in assignment ../a1.cpp:90: error: too many arguments to function `Array2D puz_arr()' ../a1.cpp:185: error: at this point in file ../a1.cpp:185: error: no match for 'operator=' in 'puz_arr()() = (&tmp_puz_line)->std::basic_string<_CharT, _Traits, _Alloc>::operator[] [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](((unsigned int)i))' ../array2d.h:68: note: candidates are: Array2D& Array2D::operator=(const Array2D&) ../a1.cpp:206: error: invalid initialization of non-const reference of type 'Array2D&' from a temporary of type 'Array2D (*)()' ../a1.cpp:36: error: in passing argument 1 of `void processPuzzle(Array2D&, Array2D&, std::string, int, int)' ../a1.cpp:90: error: too many arguments to function `Array2D puz_arr()' ../a1.cpp:216: error: at this point in file ../a1.cpp:216: error: no match for 'operator<<' in 'std::cout << puz_arr()()' /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ostream.tcc:63: note: candidates are: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>&(*)(std::basic_ostream<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>] /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/c++/bits/ostream.tcc:74: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ios<_CharT, _Traits>&(*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>] |
|
|
|
|
|
|
|
|
|
|
|
|
Does changing 90 & 91 to this help? |
BTW, how do you change the numbering scheme in code tags? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ISO C++ forbids variable-size array |
|
|
Some weird assignment limitation? |