0_0_23488145_6360.c:2:1: error: expected identifier or '(' before numeric constant
17:17:54
^
0_0_23488145_6360.c:3:1: error: stray '\325' in program
ÕÅÀÚ ÁÄ³Ç 2018/1/10 17:17:54
^
0_0_23488145_6360.c:3:1: error: stray '\305' in program
0_0_23488145_6360.c:3:1: error: stray '\300' in program
0_0_23488145_6360.c:3:1: error: stray '\332' in program
0_0_23488145_6360.c:3:1: error: stray '\301' in program
0_0_23488145_6360.c:3:1: error: stray '\304' in program
0_0_23488145_6360.c:3:1: error: stray '\263' in program
0_0_23488145_6360.c:3:1: error: stray '\307' in program
In file included from GCC4.9.2/x86_64-w64-mingw32/include/_mingw.h:282:0,
from GCC4.9.2/x86_64-w64-mingw32/include/crtdefs.h:10,
from GCC4.9.2/x86_64-w64-mingw32/include/stdio.h:9,
from 0_0_23488145_6360.c:4:
GCC4.9.2/x86_64-w64-mingw32/include/vadefs.h:29:11: error: unknown type name '__gnuc_va_list'
typedef __gnuc_va_list va_list;
^
0_0_23488145_6360.c: In function 'huiwen':
0_0_23488145_6360.c:14:9: error: 'new' undeclared (first use in this function)
int *a=new int[i];
^
0_0_23488145_6360.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
0_0_23488145_6360.c:14:13: error: expected ',' or ';' before 'int'
int *a=new int[i];
^
0_0_23488145_6360.c:21:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=0;j<i/2;j++)
^
0_0_23488145_6360.c:21:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_23488145_6360.c: In function 'prime':
0_0_23488145_6360.c:35:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=n;i<q;i++)
^
0_0_23488145_6360.c:38:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int j=2;j<i;j++)
^
|