0_0_36670075_23088.cpp:7:14: error: two or more data types in declaration of 'type name'
map<pair<int int>,int>pos;
^
0_0_36670075_23088.cpp:7:17: error: wrong number of template arguments (1, should be 2)
map<pair<int int>,int>pos;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36670075_23088.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:96:12: error: provided for 'template<class _T1, class _T2> struct std::pair'
struct pair
^
0_0_36670075_23088.cpp:7:22: error: template argument 1 is invalid
map<pair<int int>,int>pos;
^
0_0_36670075_23088.cpp:7:22: error: template argument 3 is invalid
0_0_36670075_23088.cpp:7:22: error: template argument 4 is invalid
0_0_36670075_23088.cpp:7:26: error: invalid type in declaration before ';' token
map<pair<int int>,int>pos;
^
0_0_36670075_23088.cpp: In function 'int main()':
0_0_36670075_23088.cpp:15:14: error: request for member 'empty' in 'pos', which is of non-class type 'int'
while(!pos.empty())pos.clear();
^
0_0_36670075_23088.cpp:15:26: error: request for member 'clear' in 'pos', which is of non-class type 'int'
while(!pos.empty())pos.clear();
^
0_0_36670075_23088.cpp:16:12: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
pos[{0,0}]=1;
^
0_0_36670075_23088.cpp:24:11: error: request for member 'count' in 'pos', which is of non-class type 'int'
if(pos.count({x,y})==0)pos[{x,y}]=1;//没出现过,记下这个点
^
0_0_36670075_23088.cpp:24:36: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
if(pos.count({x,y})==0)pos[{x,y}]=1;//没出现过,记下这个点
^
0_0_36670075_23088.cpp:25:23: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
else ans+=pos[{x,y}]++;//出现过了,加上
^
|