0_0_28447838_13775.cpp:4:2: error: stray '#' in program
int t,test,i,j,a[1000];
^
0_0_28447838_13775.cpp:5:2: error: stray '#' in program
scanf("%d",&test);
^
0_0_28447838_13775.cpp:6:2: error: stray '#' in program
while(test--)
^
0_0_28447838_13775.cpp:8:2: error: stray '#' in program
scanf("%d",&t);
^
0_0_28447838_13775.cpp:9:2: error: stray '#' in program
for(i=0;i<t;i++)
^
0_0_28447838_13775.cpp:10:2: error: stray '#' in program
{
^
0_0_28447838_13775.cpp:11:2: error: stray '#' in program
scanf("%d",&a[i]);
^
0_0_28447838_13775.cpp:11:8: error: stray '#' in program
scanf("%d",&a[i]);
^
0_0_28447838_13775.cpp:12:2: error: stray '#' in program
}
^
0_0_28447838_13775.cpp:13:2: error: stray '#' in program
for(i=0;i<t-1;i++)
^
0_0_28447838_13775.cpp:14:2: error: stray '#' in program
for(j=1;j<t;j++)
^
0_0_28447838_13775.cpp:15:2: error: stray '#' in program
if(a[j]<a[j-1])
^
0_0_28447838_13775.cpp:15:8: error: stray '#' in program
if(a[j]<a[j-1])
^
0_0_28447838_13775.cpp:16:2: error: stray '#' in program
{
^
0_0_28447838_13775.cpp:16:8: error: stray '#' in program
{
^
0_0_28447838_13775.cpp:17:2: error: stray '#' in program
int k=a[j];
^
0_0_28447838_13775.cpp:17:8: error: stray '#' in program
int k=a[j];
^
0_0_28447838_13775.cpp:17:14: error: stray '#' in program
int k=a[j];
^
0_0_28447838_13775.cpp:18:2: error: stray '#' in program
a[j]=a[j-1];
^
0_0_28447838_13775.cpp:18:8: error: stray '#' in program
a[j]=a[j-1];
^
0_0_28447838_13775.cpp:18:14: error: stray '#' in program
a[j]=a[j-1];
^
0_0_28447838_13775.cpp:19:2: error: stray '#' in program
a[j-1]=k;
^
0_0_28447838_13775.cpp:19:8: error: stray '#' in program
a[j-1]=k;
^
0_0_28447838_13775.cpp:19:14: error: stray '#' in program
a[j-1]=k;
^
0_0_28447838_13775.cpp:20:2: error: stray '#' in program
}
^
0_0_28447838_13775.cpp:20:8: error: stray '#' in program
}
^
0_0_28447838_13775.cpp:22:2: error: stray '#' in program
{
^
0_0_28447838_13775.cpp:23:2: error: stray '#' in program
printf("%d ",a[i]);
^
0_0_28447838_13775.cpp:23:27: error: stray '#' in program
printf("%d ",a[i]);
^
0_0_28447838_13775.cpp:24:2: error: stray '#' in program
}
^
0_0_28447838_13775.cpp:25:2: error: stray '#' in program
printf("%d\n",a[t-1]);
^
0_0_28447838_13775.cpp: In function 'int main()':
0_0_28447838_13775.cpp:4:3: error: lvalue required as unary '&' operand
int t,test,i,j,a[1000];
^
0_0_28447838_13775.cpp:5:3: error: lvalue required as unary '&' operand
scanf("%d",&test);
^
0_0_28447838_13775.cpp:6:3: error: lvalue required as unary '&' operand
while(test--)
^
0_0_28447838_13775.cpp:8:3: error: lvalue required as unary '&' operand
scanf("%d",&t);
^
0_0_28447838_13775.cpp:9:3: error: lvalue required as unary '&' operand
for(i=0;i<t;i++)
^
0_0_28447838_13775.cpp:10:3: error: lvalue required as unary '&' operand
{
^
0_0_28447838_13775.cpp:11:3: error: lvalue required as unary '&' operand
scanf("%d",&a[i]);
^
0_0_28447838_13775.cpp:11:9: error: lvalue required as unary '&' operand
scanf("%d",&a[i]);
^
0_0_28447838_13775.cpp:12:3: error: lvalue required as unary '&' operand
}
^
0_0_28447838_13775.cpp:13:3: error: lvalue required as unary '&' operand
for(i=0;i<t-1;i++)
^
0_0_28447838_13775.cpp:14:3: error: lvalue required as unary '&' operand
for(j=1;j<t;j++)
^
0_0_28447838_13775.cpp:15:3: error: lvalue required as unary '&' operand
if(a[j]<a[j-1])
^
0_0_28447838_13775.cpp:15:9: error: lvalue required as unary '&' operand
if(a[j]<a[j-1])
^
0_0_28447838_13775.cpp:16:3: error: lvalue required as unary '&' operand
{
^
0_0_28447838_13775.cpp:16:9: error: lvalue required as unary '&' operand
{
^
0_0_28447838_13775.cpp:17:3: error: lvalue required as unary '&' operand
int k=a[j];
^
0_0_28447838_13775.cpp:17:9: error: lvalue required as unary '&' operand
int k=a[j];
^
0_0_28447838_13775.cpp:17:15: error: lvalue required as unary '&' operand
int k=a[j];
^
0_0_28447838_13775.cpp:18:3: error: lvalue required as unary '&' operand
a[j]=a[j-1];
^
0_0_28447838_13775.cpp:18:9: error: lvalue required as unary '&' operand
a[j]=a[j-1];
^
0_0_28447838_13775.cpp:18:15: error: lvalue required as unary '&' operand
a[j]=a[j-1];
^
0_0_28447838_13775.cpp:19:3: error: lvalue required as unary '&' operand
a[j-1]=k;
^
0_0_28447838_13775.cpp:19:9: error: lvalue required as unary '&' operand
a[j-1]=k;
^
0_0_28447838_13775.cpp:19:15: error: lvalue required as unary '&' operand
a[j-1]=k;
^
0_0_28447838_13775.cpp:20:3: error: lvalue required as unary '&' operand
}
^
0_0_28447838_13775.cpp:20:9: error: lvalue required as unary '&' operand
}
^
0_0_28447838_13775.cpp:22:3: error: lvalue required as unary '&' operand
{
^
0_0_28447838_13775.cpp:23:3: error: lvalue required as unary '&' operand
printf("%d ",a[i]);
^
0_0_28447838_13775.cpp:23:28: error: lvalue required as unary '&' operand
printf("%d ",a[i]);
^
0_0_28447838_13775.cpp:24:3: error: lvalue required as unary '&' operand
}
^
0_0_28447838_13775.cpp:25:3: error: lvalue required as unary '&' operand
printf("%d\n",a[t-1]);
^
|