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_37771662_24035.cpp: In member function 'void SCC::dfs(int)':
0_0_37771662_24035.cpp:63:12: error: 'top' was not declared in this scope
      sta[++top] = 0; 
            ^
0_0_37771662_24035.cpp:64:6: error: 'state' was not declared in this scope
      state[top] = 0;
      ^
0_0_37771662_24035.cpp:71:14: error: 'g' was not declared in this scope
              g[2*u%k].pb(u);
              ^
0_0_37771662_24035.cpp:71:20: error: 'k' was not declared in this scope
              g[2*u%k].pb(u);
                    ^
0_0_37771662_24035.cpp:72:14: error: 'ans' was not declared in this scope
              ans = 1ll * ans * (g[u%k].size() - (upper_bound(g[u%k].begin(), g[u%k].end(), u/2)-g[u%k].begin()) + 1) % mod;
              ^
0_0_37771662_24035.cpp:72:120: error: 'mod' was not declared in this scope
              ans = 1ll * ans * (g[u%k].size() - (upper_bound(g[u%k].begin(), g[u%k].end(), u/2)-g[u%k].begin()) + 1) % mod;
                                                                                                                        ^
0_0_37771662_24035.cpp:73:28: error: cannot convert 'std::pair<int, int>' to 'int' in initialization
              for(int v: e[u]){
                            ^
0_0_37771662_24035.cpp:78:14: error: 'g' was not declared in this scope
              g[2*u%k].pop_back();
              ^
0_0_37771662_24035.cpp:78:20: error: 'k' was not declared in this scope
              g[2*u%k].pop_back();
                    ^


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-10-06 02:56:04, Gzip enabled