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;
^
|