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_18007145_2357.cpp: In function 'void prim()':
0_0_18007145_2357.cpp:19:14: error: assignment of read-only location '*(prim + ((sizetype)num))'
    prim[num] = i;
              ^
0_0_18007145_2357.cpp:19:14: error: cannot convert 'int' to 'void()' in assignment
0_0_18007145_2357.cpp:21:45: error: invalid operands of types 'int' and 'void()' to binary 'operator*'
   for (int j = 1; ((j <= num) && (i * prim[j] <= n)); ++j)
                                             ^
0_0_18007145_2357.cpp:21:50: error: 'n' was not declared in this scope
   for (int j = 1; ((j <= num) && (i * prim[j] <= n)); ++j)
                                                  ^
0_0_18007145_2357.cpp:23:20: error: invalid operands of types 'int' and 'void()' to binary 'operator*'
    visit[i * prim[j]] = false;
                    ^
0_0_18007145_2357.cpp:24:18: error: invalid operands of types 'int' and 'void()' to binary 'operator%'
    if (i % prim[j] == 0) break;
                  ^


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.015600(s) query 1, Server time : 2024-07-08 15:47:53, Gzip enabled