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_36396643_19413.cpp:12:11: error: redefinition of 'const long long int mod1'
 const int mod1 = 1e9+9;
           ^
0_0_36396643_19413.cpp:11:11: note: 'const long long int mod1' previously defined here
 const int mod1 = 1e9+7;
           ^
0_0_36396643_19413.cpp:15:1: error: 'vector' does not name a type
 vector<int> vec[N];
 ^
0_0_36396643_19413.cpp:16:1: error: 'set' does not name a type
 set<int> st[N];
 ^
0_0_36396643_19413.cpp: In function 'std::pair<long long int, long long int> dfs(long long int, long long int, long long int)':
0_0_36396643_19413.cpp:25:30: error: 'quick_pow' was not declared in this scope
  int ans1 = quick_pow(x,now-1);
                              ^
0_0_36396643_19413.cpp:28:18: error: 'mod2' was not declared in this scope
  ans2 = ans2*num%mod2;
                  ^
0_0_36396643_19413.cpp:29:2: error: 'pair' was not declared in this scope
  pair res = std::make_pair(ans1,ans2);
  ^
0_0_36396643_19413.cpp:29:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36396643_19413.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:96:12: note:   'std::pair'
     struct pair
            ^
0_0_36396643_19413.cpp:30:12: error: expected ';' before '&' token
  for(auto v&vec[now]){
            ^
0_0_36396643_19413.cpp:30:13: error: 'vec' was not declared in this scope
  for(auto v&vec[now]){
             ^
0_0_36396643_19413.cpp:30:21: error: expected ';' before ')' token
  for(auto v&vec[now]){
                     ^
0_0_36396643_19413.cpp:31:6: error: use of 'v' before deduction of 'auto'
   if(v==pre) continue;
      ^
0_0_36396643_19413.cpp:32:8: error: expected ';' before 'ret'
   pair ret = dfs(v,now,num);
        ^
0_0_36396643_19413.cpp:33:3: error: 'res' was not declared in this scope
   res.first = (res.first+ret.first)%mod1;
   ^
0_0_36396643_19413.cpp:33:26: error: 'ret' was not declared in this scope
   res.first = (res.first+ret.first)%mod1;
                          ^
0_0_36396643_19413.cpp:36:9: error: 'res' was not declared in this scope
  return res;
         ^
0_0_36396643_19413.cpp: In function 'int main()':
0_0_36396643_19413.cpp:45:4: error: 'vec' was not declared in this scope
    vec[i].push_back(pre);
    ^
0_0_36396643_19413.cpp:51:17: error: 'n' was not declared in this scope
  for(int i=1;i<=n;i++){
                 ^
0_0_36396643_19413.cpp:53:3: error: 'pair' was not declared in this scope
   pair ans = dfs(i,0,0);
   ^
0_0_36396643_19413.cpp:53:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36396643_19413.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:96:12: note:   'std::pair'
     struct pair
            ^
0_0_36396643_19413.cpp:54:24: error: 'ans' was not declared in this scope
   printf("%lld %lld\n",ans.first,ans.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 08:57:09, Gzip enabled