0_0_24861940_30170.cpp:1:1: error: 'include' does not name a type
include <iostream>
^
0_0_24861940_30170.cpp:3:12: error: '::main' must return 'int'
void main()
^
0_0_24861940_30170.cpp: In function 'int main()':
0_0_24861940_30170.cpp:5:7: error: 'cin' was not declared in this scope
cin<<a<<n<<;
^
0_0_24861940_30170.cpp:5:15: error: 'n' was not declared in this scope
cin<<a<<n<<;
^
0_0_24861940_30170.cpp:5:18: error: expected primary-expression before ';' token
cin<<a<<n<<;
^
0_0_24861940_30170.cpp:8:24: error: invalid types 'int[int]' for array subscript
{ cin<<a[i]<<;
^
0_0_24861940_30170.cpp:8:27: error: expected primary-expression before ';' token
{ cin<<a[i]<<;
^
0_0_24861940_30170.cpp:10:22: error: expected primary-expression before ';' token
cin<<b<<;
^
0_0_24861940_30170.cpp:13:17: error: expected primary-expression before ';' token
cin<<x<<;
^
0_0_24861940_30170.cpp:19:19: error: invalid types 'int[int]' for array subscript
if(a[i]>a[i+1])
^
0_0_24861940_30170.cpp:19:26: error: invalid types 'int[int]' for array subscript
if(a[i]>a[i+1])
^
0_0_24861940_30170.cpp:20:20: error: invalid types 'int[int]' for array subscript
{MAX=a[i];
^
0_0_24861940_30170.cpp:22:25: error: invalid types 'int[int]' for array subscript
{ MAX=a[i+1];
^
0_0_24861940_30170.cpp:25:8: error: 'cout' was not declared in this scope
cout>>MAX>>endl;
^
0_0_24861940_30170.cpp:25:14: error: 'MAX' was not declared in this scope
cout>>MAX>>endl;
^
0_0_24861940_30170.cpp:25:19: error: 'endl' was not declared in this scope
cout>>MAX>>endl;
^
0_0_24861940_30170.cpp:31:21: error: invalid types 'int[int]' for array subscript
if(a[i]<a[i+1])
^
0_0_24861940_30170.cpp:31:28: error: invalid types 'int[int]' for array subscript
if(a[i]<a[i+1])
^
0_0_24861940_30170.cpp:32:26: error: invalid types 'int[int]' for array subscript
{ MIN=a[i];
^
0_0_24861940_30170.cpp:35:19: error: invalid types 'int[int]' for array subscript
{ MIN=a[i+1];
^
0_0_24861940_30170.cpp:39:17: error: 'x' was not declared in this scope
for(i=x;i<n;i++)
^
|