0_0_29463493_26487.cpp:8:19: error: type/value mismatch at argument 2 in template parameter list for 'template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map'
unordered_map<ll,P> m;
^
0_0_29463493_26487.cpp:8:19: error: expected a type, got 'P'
0_0_29463493_26487.cpp:8:19: error: template argument 5 is invalid
0_0_29463493_26487.cpp:8:22: error: invalid type in declaration before ';' token
unordered_map<ll,P> m;
^
0_0_29463493_26487.cpp: In function 'int main()':
0_0_29463493_26487.cpp:32:4: error: request for member 'clear' in 'm', which is of non-class type 'int'
m.clear();
^
0_0_29463493_26487.cpp:34:17: error: two consecutive '[' shall only introduce an attribute before '[' token
scanf("%s",s[[i]);
^
0_0_29463493_26487.cpp:46:12: error: invalid types 'int[ll {aka long long int}]' for array subscript
m[temp]=make_pair(i,j);
^
0_0_29463493_26487.cpp:48:4: error: expected ';' before 'ans'
P ans;
^
0_0_29463493_26487.cpp:62:10: error: request for member 'find' in 'm', which is of non-class type 'int'
if(m.find(temp)!=m.end())
^
0_0_29463493_26487.cpp:62:24: error: request for member 'end' in 'm', which is of non-class type 'int'
if(m.find(temp)!=m.end())
^
0_0_29463493_26487.cpp:64:13: error: 'ans' was not declared in this scope
ans.first=i-m[temp].first;
^
0_0_29463493_26487.cpp:64:31: error: invalid types 'int[ll {aka long long int}]' for array subscript
ans.first=i-m[temp].first;
^
0_0_29463493_26487.cpp:65:32: error: invalid types 'int[ll {aka long long int}]' for array subscript
ans.second=j-m[temp].second;
^
|