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_27011603_17091.cpp:21:31: error: expected unqualified-id before '/' token
 ll f[ANS_SIZE],nf[ANS_SIZE];  /
                               ^
0_0_27011603_17091.cpp: In function 'void initprime()':
0_0_27011603_17091.cpp:27:5: error: 'pcount' was not declared in this scope
     pcount = 0;
     ^
0_0_27011603_17091.cpp:30:25: error: 'plist' was not declared in this scope
         if(!isPrime[i]) plist[pcount++] = i;
                         ^
0_0_27011603_17091.cpp:31:38: error: 'plist' was not declared in this scope
         for(int j = 0; j<pcount && i*plist[j]<MAXN; j++)
                                      ^
0_0_27011603_17091.cpp: In function 'int prime_factor(long long unsigned int)':
0_0_27011603_17091.cpp:42:29: error: 'plist' was not declared in this scope
     for(int i = 0; n > 1 && plist[i] <= n2 && i < pcount; ++i)
                             ^
0_0_27011603_17091.cpp:42:51: error: 'pcount' was not declared in this scope
     for(int i = 0; n > 1 && plist[i] <= n2 && i < pcount; ++i)
                                                   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-03-13 12:24:57, Gzip enabled