0_0_33238296_3196.c:1:1: error: expected identifier or '(' before '/' token
// #include <bits/stdc++.h>
^
0_0_33238296_3196.c:1:4: error: stray '#' in program
// #include <bits/stdc++.h>
^
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_33238296_3196.c:2:
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_33238296_3196.c:6:1: error: expected identifier or '(' before '/' token
// using namespace std;
^
0_0_33238296_3196.c:8:1: error: unknown type name 'bool'
bool isprime[]={0,1,1,1,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,1,0,0,0,1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0};
^
0_0_33238296_3196.c:9:1: error: unknown type name 'bool'
bool vis[20];
^
0_0_33238296_3196.c: In function 'printarr':
0_0_33238296_3196.c:15:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 1;i < n;i++)
^
0_0_33238296_3196.c:15:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_33238296_3196.c: In function 'dfs':
0_0_33238296_3196.c:26:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i = 2;i <= n;i++){
^
0_0_33238296_3196.c:30:18: error: 'true' undeclared (first use in this function)
vis[i] = true;
^
0_0_33238296_3196.c:30:18: note: each undeclared identifier is reported only once for each function it appears in
0_0_33238296_3196.c:33:18: error: 'false' undeclared (first use in this function)
vis[i] = false;
^
0_0_33238296_3196.c: In function 'main':
0_0_33238296_3196.c:44:9: error: expected expression before '/' token
// memset(vis, 0, n);
^
|