Home > Back-end >  Acm basic problem, is not
Acm basic problem, is not

Time:09-21

Include
# include
# define N 1005
using namespace std;
Int main ()
{
int n;
Int a [N].
While (cin & gt;> N)
{
for (int i=0; I & lt; n; I++)
{
The scanf (" % d ", & amp; A [I]);
}
Int v=1;
Int p=1;
for (int i=0; I & lt; N - 1; I++)
{
If (a [I] {
V++;
}
The else v=1;
If (v> P=v=p);
}
cout

}
return 0;
}

Please advise where is wrong, why not

CodePudding user response:

Figure can't see, also, why did you send the C/C + + to Delphi come