F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 03:50:24, Gzip enabled