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_21504217_3380.cpp: In function 'long long int cal(long long int, long long int, long long int)':
0_0_21504217_3380.cpp:40:26: error: 'pri' was not declared in this scope
         for (int k=(l-(l%pri)+pri);k<=r;)
                          ^
0_0_21504217_3380.cpp:42:13: error: redeclaration of 'int pri'
         int pri=prime[i];
             ^
0_0_21504217_3380.cpp:40:26: note: '<typeprefixerror>pri' previously declared here
         for (int k=(l-(l%pri)+pri);k<=r;)
                          ^


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-29 21:52:35, Gzip enabled