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_36532424_7604.cpp:8:20: error: 'pii' was not declared in this scope
 unordered_map<ull, pii> mp;
                    ^
0_0_36532424_7604.cpp:8:23: error: template argument 2 is invalid
 unordered_map<ull, pii> mp;
                       ^
0_0_36532424_7604.cpp:8:23: error: template argument 5 is invalid
0_0_36532424_7604.cpp:8:27: error: invalid type in declaration before ';' token
 unordered_map<ull, pii> mp;
                           ^
0_0_36532424_7604.cpp: In function 'int main()':
0_0_36532424_7604.cpp:33:12: error: request for member 'clear' in 'mp', which is of non-class type 'int'
         mp.clear();
            ^
0_0_36532424_7604.cpp:49:24: error: request for member 'count' in 'mp', which is of non-class type 'int'
                 if(!mp.count(num))
                        ^
0_0_36532424_7604.cpp:51:27: error: invalid types 'int[ull {aka long long unsigned int}]' for array subscript
                     mp[num]=make_pair(i, 1);
                           ^
0_0_36532424_7604.cpp:53:31: error: invalid types 'int[ull {aka long long unsigned int}]' for array subscript
                 else if(mp[num].first+j<=i)
                               ^
0_0_36532424_7604.cpp:55:35: error: invalid types 'int[ull {aka long long unsigned int}]' for array subscript
                     int now=mp[num].second;
                                   ^
0_0_36532424_7604.cpp:56:27: error: invalid types 'int[ull {aka long long unsigned int}]' for array subscript
                     mp[num]=make_pair(i, now+1);
                           ^
0_0_36532424_7604.cpp:71:15: error: request for member 'count' in 'mp', which is of non-class type 'int'
        if(!mp.count(num))
               ^
0_0_36532424_7604.cpp:75:33: error: invalid types 'int[ull {aka long long unsigned int}]' for array subscript
        else printf("%d\n",mp[num].second);
                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 09:24:01, Gzip enabled