fish.cpp:4:1: error: 'map' does not name a type
4 | map<int,int>mX,mY;
| ^~~
fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:7:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | for(int i=0;i<X.size();i++)
| ~^~~~~~~~~
fish.cpp:9:9: error: 'mX' was not declared in this scope; did you mean 'X'?
9 | mX[X[i]]=1;
| ^~
| X
fish.cpp:10:9: error: 'mY' was not declared in this scope; did you mean 'Y'?
10 | mY[Y[i]]=1;
| ^~
| Y
fish.cpp:27:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i=0;i<W.size();i++)
| ~^~~~~~~~~
fish.cpp:33:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for(int i=0;i<W.size();i++)
| ~^~~~~~~~~
fish.cpp:40:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(int i=0;i<X.size();i++)
| ~^~~~~~~~~
fish.cpp:43:13: error: 'anxX1' was not declared in this scope; did you mean 'ansX1'?
43 | ans=anxX1;
| ^~~~~
| ansX1
fish.cpp:46:16: error: 'mY' was not declared in this scope; did you mean 'Y'?
46 | if(mY[i]==1 && mX[1]==1)
| ^~
| Y
fish.cpp:46:28: error: 'mX' was not declared in this scope; did you mean 'X'?
46 | if(mY[i]==1 && mX[1]==1)
| ^~
| X
fish.cpp:48:16: error: 'mY' was not declared in this scope; did you mean 'Y'?
48 | if(mY[i]==1 && mX[0]==1)
| ^~
| Y
fish.cpp:48:28: error: 'mX' was not declared in this scope; did you mean 'X'?
48 | if(mY[i]==1 && mX[0]==1)
| ^~
| X
fish.cpp:49:9: error: expected primary-expression before '}' token
49 | }
| ^