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_26764274_31595.cpp:5:19: error: lvalue required as left operand of assignment
 int n,tot,a[N],p[N=1];
                   ^
0_0_26764274_31595.cpp: In function 'int mian()':
0_0_26764274_31595.cpp:8:14: error: 'p' was not declared in this scope
         if (!p[i])
              ^
0_0_26764274_31595.cpp:12:13: error: 'p' was not declared in this scope
             p[i*a[j]]=a[j];
             ^
0_0_26764274_31595.cpp:16:23: error: expected primary-expression before '%' token
     while (scanf("%d",%n)!=EOF){
                       ^
0_0_26764274_31595.cpp:17:15: error: 'p' was not declared in this scope
         for (;p[n];n/=p[n])
               ^


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-07-01 03:53:51, Gzip enabled