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_38844230_21191.cpp:1:1: error: 'unordered_map' does not name a type
    1 | unordered_map<int,int> mp;
      | ^~~~~~~~~~~~~
0_0_38844230_21191.cpp:3:1: error: 'll' does not name a type
    3 | ll dfs(int x){
      | ^~
0_0_38844230_21191.cpp: In function 'void solve()':
0_0_38844230_21191.cpp:23:9: error: 'll' was not declared in this scope
   23 |         ll n;cin>>n;
      |         ^~
0_0_38844230_21191.cpp:23:14: error: 'cin' was not declared in this scope
   23 |         ll n;cin>>n;
      |              ^~~
0_0_38844230_21191.cpp:23:19: error: 'n' was not declared in this scope
   23 |         ll n;cin>>n;
      |                   ^
0_0_38844230_21191.cpp:24:5: error: 'ans' was not declared in this scope
   24 |     ans=2e9;
      |     ^~~
0_0_38844230_21191.cpp:25:9: error: 'dfs' was not declared in this scope
   25 |     ans=dfs(n);
      |         ^~~
0_0_38844230_21191.cpp:26:5: error: 'cout' was not declared in this scope
   26 |     cout<<ans<<'\n';
      |     ^~~~


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.001000(s) query 1, Server time : 2025-02-28 07:58:02, Gzip enabled