0_0_23982455_26495.cpp: In function 'int main()':
0_0_23982455_26495.cpp:7:15: error: expected ';' before ':' token
if(n==0)break:
^
0_0_23982455_26495.cpp:7:15: error: expected primary-expression before ':' token
0_0_23982455_26495.cpp:9:13: error: 'i' was not declared in this scope
for(i=0;i<n;i++)
^
0_0_23982455_26495.cpp:10:25: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
0_0_23982455_26495.cpp:11:13: error: 'j' was not declared in this scope
for(j=0;j<n;j++)
^
0_0_23982455_26495.cpp:13:17: error: 'i' was not declared in this scope
for(i=0;i<n;i++)
^
0_0_23982455_26495.cpp:15:20: error: 'a' was not declared in this scope
if(a[i]>a[i+1])
^
0_0_23982455_26495.cpp:17:21: error: 'b' was not declared in this scope
b=a[i+1];
^
0_0_23982455_26495.cpp:21:20: error: 'a' was not declared in this scope
if(a[i]*-1>a[i+1])
^
0_0_23982455_26495.cpp:23:21: error: 'b' was not declared in this scope
b=a[i+1];
^
0_0_23982455_26495.cpp:30:13: error: 'i' was not declared in this scope
for(i=n-1;i>0;i--)
^
0_0_23982455_26495.cpp:31:26: error: 'a' was not declared in this scope
printf("%d ",a[i]);
^
0_0_23982455_26495.cpp:32:23: error: 'a' was not declared in this scope
printf("%d\n",a[0]);
^
|