0_0_30815873_1596.cpp:5:2: error: stray '#' in program
int m,test,n,i;
^
0_0_30815873_1596.cpp:6:2: error: stray '#' in program
scanf("%d",&test);
^
0_0_30815873_1596.cpp:7:2: error: stray '#' in program
while(test--)
^
0_0_30815873_1596.cpp:8:2: error: stray '#' in program
{
^
0_0_30815873_1596.cpp:9:2: error: stray '#' in program
char a[1000];
^
0_0_30815873_1596.cpp:10:2: error: stray '#' in program
scanf("%s %d",a,&n);
^
0_0_30815873_1596.cpp:11:2: error: stray '#' in program
m=strlen(a);
^
0_0_30815873_1596.cpp:12:2: error: stray '#' in program
for(i=0;i<m;i++)
^
0_0_30815873_1596.cpp:13:2: error: stray '#' in program
{
^
0_0_30815873_1596.cpp:14:2: error: stray '#' in program
if(a[i]=='.') break;
^
0_0_30815873_1596.cpp:14:8: error: stray '#' in program
if(a[i]=='.') break;
^
0_0_30815873_1596.cpp:15:2: error: stray '#' in program
}
^
0_0_30815873_1596.cpp:16:2: error: stray '#' in program
if(i+n<m)
^
0_0_30815873_1596.cpp:17:2: error: stray '#' in program
printf("%c\n",a[i+n]);
^
0_0_30815873_1596.cpp:18:2: error: stray '#' in program
else
^
0_0_30815873_1596.cpp:19:2: error: stray '#' in program
printf("0\n");
^
0_0_30815873_1596.cpp:20:2: error: stray '#' in program
}
^
0_0_30815873_1596.cpp:21:2: error: stray '#' in program
return 0;
^
0_0_30815873_1596.cpp: In function 'int main()':
0_0_30815873_1596.cpp:5:3: error: lvalue required as unary '&' operand
int m,test,n,i;
^
0_0_30815873_1596.cpp:6:3: error: lvalue required as unary '&' operand
scanf("%d",&test);
^
0_0_30815873_1596.cpp:7:3: error: lvalue required as unary '&' operand
while(test--)
^
0_0_30815873_1596.cpp:8:3: error: lvalue required as unary '&' operand
{
^
0_0_30815873_1596.cpp:9:3: error: lvalue required as unary '&' operand
char a[1000];
^
0_0_30815873_1596.cpp:10:3: error: lvalue required as unary '&' operand
scanf("%s %d",a,&n);
^
0_0_30815873_1596.cpp:11:3: error: lvalue required as unary '&' operand
m=strlen(a);
^
0_0_30815873_1596.cpp:12:3: error: lvalue required as unary '&' operand
for(i=0;i<m;i++)
^
0_0_30815873_1596.cpp:13:3: error: lvalue required as unary '&' operand
{
^
0_0_30815873_1596.cpp:14:3: error: lvalue required as unary '&' operand
if(a[i]=='.') break;
^
0_0_30815873_1596.cpp:14:9: error: lvalue required as unary '&' operand
if(a[i]=='.') break;
^
0_0_30815873_1596.cpp:14:27: error: break statement not within loop or switch
if(a[i]=='.') break;
^
0_0_30815873_1596.cpp:15:3: error: lvalue required as unary '&' operand
}
^
0_0_30815873_1596.cpp:16:3: error: lvalue required as unary '&' operand
if(i+n<m)
^
0_0_30815873_1596.cpp:17:3: error: lvalue required as unary '&' operand
printf("%c\n",a[i+n]);
^
0_0_30815873_1596.cpp:18:3: error: lvalue required as unary '&' operand
else
^
0_0_30815873_1596.cpp:18:7: error: 'else' without a previous 'if'
else
^
0_0_30815873_1596.cpp:19:3: error: lvalue required as unary '&' operand
printf("0\n");
^
0_0_30815873_1596.cpp:20:3: error: lvalue required as unary '&' operand
}
^
0_0_30815873_1596.cpp:21:3: error: lvalue required as unary '&' operand
return 0;
^
|