0_0_13494817_15359.cpp:1:1: error: 'include' does not name a type
include<stdio.h>
^
0_0_13494817_15359.cpp: In function 'int main()':
0_0_13494817_15359.cpp:6:22: error: 'n' was not declared in this scope
scanf("%ld %ld",&n,&m);
^
0_0_13494817_15359.cpp:6:25: error: 'm' was not declared in this scope
scanf("%ld %ld",&n,&m);
^
0_0_13494817_15359.cpp:6:26: error: 'scanf' was not declared in this scope
scanf("%ld %ld",&n,&m);
^
0_0_13494817_15359.cpp:7:9: error: 'i' was not declared in this scope
for(i=0;i<n;i++)
^
0_0_13494817_15359.cpp:8:22: error: 'a' was not declared in this scope
scanf("%ld",&a[i]);
^
0_0_13494817_15359.cpp:9:9: error: 'i' was not declared in this scope
for(i=0;i<n-1;i++)
^
0_0_13494817_15359.cpp:10:13: error: 'j' was not declared in this scope
for(j=i;j<n-1;j++)
^
0_0_13494817_15359.cpp:12:16: error: 'a' was not declared in this scope
if(a[i]<a[j+1])
^
0_0_13494817_15359.cpp:14:17: error: 's' was not declared in this scope
s=a[i];
^
0_0_13494817_15359.cpp:19:9: error: 'i' was not declared in this scope
for(i=0;i<m;i++)
^
0_0_13494817_15359.cpp:22:26: error: 'a' was not declared in this scope
printf("%ld",a[i]);
^
0_0_13494817_15359.cpp:22:30: error: 'printf' was not declared in this scope
printf("%ld",a[i]);
^
0_0_13494817_15359.cpp:24:26: error: 'a' was not declared in this scope
printf("% d",a[i]);
^
0_0_13494817_15359.cpp:24:30: error: 'printf' was not declared in this scope
printf("% d",a[i]);
^
0_0_13494817_15359.cpp:26:16: error: 'printf' was not declared in this scope
printf("\n");
^
|