0_0_28049918_16148.c: In function 'main':
0_0_28049918_16148.c:7:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 1; i <= Max / 2; i++){
^
0_0_28049918_16148.c:7:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_28049918_16148.c:8:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j = i + i; j <= Max; j += i){
^
0_0_28049918_16148.c:12:5: error: expected expression before '/' token
//memset(check, 0, sizeof(check));
^
0_0_28049918_16148.c:13:13: error: redefinition of 'i'
for(int i = 0; i < 1005; i++){
^
0_0_28049918_16148.c:7:13: note: previous definition of 'i' was here
for(int i = 1; i <= Max / 2; i++){
^
0_0_28049918_16148.c:13:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0; i < 1005; i++){
^
|