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_33693124_3264.cpp: In function 'void init()':
0_0_33693124_3264.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33693124_3264.cpp:29:48: note: in expansion of macro 'mod'
     for(int i=1;i<=200010;i++) mi[i]=mi[i-1]*2%mod;
                                                ^
0_0_33693124_3264.cpp:30:20: error: 'n' was not declared in this scope
     for(int i=0;i<=n;i++)
                    ^
0_0_33693124_3264.cpp:33:9: error: 'siz_ans' was not declared in this scope
         siz_ans[i]=0;
         ^
0_0_33693124_3264.cpp:34:3: error: 'ans' was not declared in this scope
   ans[i]=0;
   ^
0_0_33693124_3264.cpp: In function 'void dfs(int)':
0_0_33693124_3264.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33693124_3264.cpp:50:39: note: in expansion of macro 'mod'
         ans1[c]=(ans1[c]+ans1[po.to])%mod;//加上后边一个点的权值 
                                       ^
0_0_33693124_3264.cpp:51:45: error: 'struct edge' has no member named 'w'
         ans1[c]=(ans1[c]+back0[po.to]*mi[po.w]%mod)%mod; //加上到后边那个点的权值 
                                             ^
0_0_33693124_3264.cpp: In function 'void summ(int, int, int)':
0_0_33693124_3264.cpp:61:12: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
     ans2[c]%=mod;
            ^
0_0_33693124_3264.cpp:61:12: error:   in evaluation of 'operator%=(long long int, double)'
0_0_33693124_3264.cpp:62:8: error: 'w' was not declared in this scope
     if(w[c]) aans=(aans+ans2[c])%mod;
        ^
0_0_33693124_3264.cpp:4:13: error: invalid operands of types 'long long int' and 'double' to binary 'operator%'
 #define mod 1e9+7
             ^
0_0_33693124_3264.cpp:62:34: note: in expansion of macro 'mod'
     if(w[c]) aans=(aans+ans2[c])%mod;
                                  ^
0_0_33693124_3264.cpp: In function 'int main()':
0_0_33693124_3264.cpp:90:18: error: 'u' was not declared in this scope
             cin>>u>>v;
                  ^
0_0_33693124_3264.cpp:90:21: error: 'v' was not declared in this scope
             cin>>u>>v;
                     ^
0_0_33693124_3264.cpp:106:9: error: 'fans' was not declared in this scope
         fans=0;
         ^


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-25 09:42:28, Gzip enabled