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_37706961_22798.cpp: In function 'long long int calc(long long int, long long int)':
0_0_37706961_22798.cpp:4:13: error: expected primary-expression before 'long'
 #define int long long
             ^
0_0_37706961_22798.cpp:46:38: note: in expansion of macro 'int'
     ret=(ret+(1ll*sum1*sum1-sum2)*(1+int(x>=n))+mod+mod)%mod;
                                      ^
0_0_37706961_22798.cpp:4:13: error: expected ')' before 'long'
 #define int long long
             ^
0_0_37706961_22798.cpp:46:38: note: in expansion of macro 'int'
     ret=(ret+(1ll*sum1*sum1-sum2)*(1+int(x>=n))+mod+mod)%mod;
                                      ^
0_0_37706961_22798.cpp:46:61: error: expected ')' before ';' token
     ret=(ret+(1ll*sum1*sum1-sum2)*(1+int(x>=n))+mod+mod)%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-23 05:05:18, Gzip enabled