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_21405983_5391.cpp: In function 'int main()':
0_0_21405983_5391.cpp:30:14: error: reference to 'i' is ambiguous
         }for(i=n+1,s=0;i<=n<<1;i++)up(s,dp[i-n-1]),dw(dp[i],s);
              ^
0_0_21405983_5391.cpp:21:16: note: candidates are: LL i
 LL dp[N],x,y,s,i;
                ^
0_0_21405983_5391.cpp:9:9: note:                 int Pentagon_Number::i
     int i,j,f[N+1],g[200010];
         ^
0_0_21405983_5391.cpp:30:24: error: reference to 'i' is ambiguous
         }for(i=n+1,s=0;i<=n<<1;i++)up(s,dp[i-n-1]),dw(dp[i],s);
                        ^
0_0_21405983_5391.cpp:21:16: note: candidates are: LL i
 LL dp[N],x,y,s,i;
                ^
0_0_21405983_5391.cpp:9:9: note:                 int Pentagon_Number::i
     int i,j,f[N+1],g[200010];
         ^
0_0_21405983_5391.cpp:30:32: error: reference to 'i' is ambiguous
         }for(i=n+1,s=0;i<=n<<1;i++)up(s,dp[i-n-1]),dw(dp[i],s);
                                ^
0_0_21405983_5391.cpp:21:16: note: candidates are: LL i
 LL dp[N],x,y,s,i;
                ^
0_0_21405983_5391.cpp:9:9: note:                 int Pentagon_Number::i
     int i,j,f[N+1],g[200010];
         ^
0_0_21405983_5391.cpp:30:44: error: reference to 'i' is ambiguous
         }for(i=n+1,s=0;i<=n<<1;i++)up(s,dp[i-n-1]),dw(dp[i],s);
                                            ^
0_0_21405983_5391.cpp:21:16: note: candidates are: LL i
 LL dp[N],x,y,s,i;
                ^
0_0_21405983_5391.cpp:9:9: note:                 int Pentagon_Number::i
     int i,j,f[N+1],g[200010];
         ^
0_0_21405983_5391.cpp:30:58: error: reference to 'i' is ambiguous
         }for(i=n+1,s=0;i<=n<<1;i++)up(s,dp[i-n-1]),dw(dp[i],s);
                                                          ^
0_0_21405983_5391.cpp:21:16: note: candidates are: LL i
 LL dp[N],x,y,s,i;
                ^
0_0_21405983_5391.cpp:9:9: note:                 int Pentagon_Number::i
     int i,j,f[N+1],g[200010];
         ^


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-06-29 10:56:09, Gzip enabled