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_30443720_13331.cpp: In function 'long long int sum(int, __int128)':
0_0_30443720_13331.cpp:83:24: error: 'long long int sum(int, __int128)' redeclared as different kind of symbol
 ll sum(int n,__int128 k)
                        ^
0_0_30443720_13331.cpp:36:16: note: previous declaration 'long long int sum [10000010]'
 ll ans[maxn+5],sum[maxn+5];
                ^
0_0_30443720_13331.cpp:97:32: error: 'i' was not declared in this scope
                 Ans=(Ans+phi[n/i]*(k/(n/l)))%mod;
                                ^
0_0_30443720_13331.cpp: In function 'int main()':
0_0_30443720_13331.cpp:138:38: error: 'sum' cannot be used as a function
                 ll res=(Ans+sum(p,k%p)+k/p*ans[p])%mod;
                                      ^


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 10:02:44, Gzip enabled