0_0_35793576_30845.c:3:1: error: unknown type name 'using'
using namespace std;
^
0_0_35793576_30845.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
using namespace std;
^
0_0_35793576_30845.c: In function 'main':
0_0_35793576_30845.c:10:27: error: 'EOF' undeclared (first use in this function)
while(scanf("%d",&n)!=EOF&&n) {
^
0_0_35793576_30845.c:10:27: note: each undeclared identifier is reported only once for each function it appears in
0_0_35793576_30845.c:12:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<n;i++) sum[i] = 3;
^
0_0_35793576_30845.c:12:9: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_35793576_30845.c:15:13: error: redefinition of 'i'
int i=0,now=0,left=n,C=0;
^
0_0_35793576_30845.c:12:17: note: previous definition of 'i' was here
for(int i=0;i<n;i++) sum[i] = 3;
^
0_0_35793576_30845.c:50:17: error: expected expression before '/' token
//if(left==1) break;
^
0_0_35793576_30845.c:63:17: error: redefinition of 'i'
for(int i=0;i<n;i++){
^
0_0_35793576_30845.c:15:13: note: previous definition of 'i' was here
int i=0,now=0,left=n,C=0;
^
0_0_35793576_30845.c:63:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i=0;i<n;i++){
^
|