I apologize, I simply wanted to focus on the part where the error lies. Again I had to cut a code because it is huge I just left most important parts.
Originally Posted by Salem
I have problem that I cannot define return value of the function look as vector<struct>(error C2332 'struct' missing tag name). Neither can I defined as vector<pt> because I did not declare it. The problem is in the fist line.
vector<struct> look(double d, int xw, int yh, double dh)
vector <pt> v;
for ( )