0_0_17846984_24313.cpp: In function 'int main()':
0_0_17846984_24313.cpp:8:24: error: 'n' was not declared in this scope
while(~scanf("%d",&n)){
^
0_0_17846984_24313.cpp:9:11: error: 'i' was not declared in this scope
for(i=0;i<n;i++)
^
0_0_17846984_24313.cpp:10:19: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
0_0_17846984_24313.cpp:11:12: error: 'a' was not declared in this scope
sort(a,a+n);
^
0_0_17846984_24313.cpp:12:7: error: 'p' was not declared in this scope
p=0;
^
0_0_17846984_24313.cpp:14:20: error: 'i' was not declared in this scope
if(p==-1)for(i=1;i<n;i++)
^
0_0_17846984_24313.cpp:16:7: error: 'm' was not declared in this scope
m=n-1;
^
0_0_17846984_24313.cpp:20:15: error: 'i' was not declared in this scope
for(i=n-1;i>=0;i--)
^
0_0_17846984_24313.cpp:21:16: error: expected primary-expression before '>' token
if(i<>p)printf("%d",a[i]);
^
|