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_38799795_17219.cpp:7:1: error: 'unordered_map' does not name a type
    7 | unordered_map<long long,int> mp;
      | ^~~~~~~~~~~~~
0_0_38799795_17219.cpp: In function 'int dfind(long long int)':
0_0_38799795_17219.cpp:24:12: error: 'mp' was not declared in this scope
   24 |         if(mp[now]) return mp[now];
      |            ^~
0_0_38799795_17219.cpp:28:17: error: 'mp' was not declared in this scope
   28 |                 mp[now]=min(dfind(now/2),dfind(now/3))+1;
      |                 ^~
0_0_38799795_17219.cpp:32:17: error: 'mp' was not declared in this scope
   32 |                 mp[now]=min(dfind(now/3),dfind(now-1)+1;
      |                 ^~
0_0_38799795_17219.cpp:32:56: error: expected ')' before ';' token
   32 |                 mp[now]=min(dfind(now/3),dfind(now-1)+1;
      |                            ~                           ^
      |                                                        )
0_0_38799795_17219.cpp:36:17: error: 'mp' was not declared in this scope
   36 |                 mp[now]=min(dfind(now/2),dfind(now-1))+1;
      |                 ^~
0_0_38799795_17219.cpp:40:17: error: 'mp' was not declared in this scope
   40 |                 mp[now]=dfind(now-1)+1;
      |                 ^~
0_0_38799795_17219.cpp:42:16: error: 'mp' was not declared in this scope
   42 |         return mp[now];
      |                ^~


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-09-29 10:18:00, Gzip enabled