criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner a = new Scanner(System.in);
        
        int n = a.nextInt();
        int[] h = new int[n];
        for(int i = 0;i < n;i++){
            h[i] = a.nextInt();
        }

        int max = 0L;
        int count = 0L;

        for(int i = 0;i < n-1;i++) {
            if(h[i+1] <= h[i]){
                count++;
            }else{
                if(count > max) {
                    max = count;
                }
                count = 0;
            }
        }

        if(count > max){
            max = count;
        }
 
        System.out.println(max);
        
    }

}

Compiler output:
Main.java:13: error: incompatible types: possible lossy conversion from long to int
        int max = 0L;
                  ^
Main.java:14: error: incompatible types: possible lossy conversion from long to int
        int count = 0L;
                    ^
2 errors
Language: C

#include<stdio.h>
int main() {
	int N,i,j,ans=0;
	scanf("%d", &N);
	for (i = 0; i < N; i++) {
		int H[i];
		scanf("%d", &H[i]);
	}
	for (i = 0; i < N; i++) {
		for (j = i + 1; j < N; j++) {
			if (H[i] < H[j]) {
				if(ans<j-1-i)
				ans =j-1-i;
				i = j ;
				break;
		}
		}
	}
	printf("%d", ans);
	return 0;
}






Compiler output:
main.c: In function 'main':
main.c:11:29: error: 'H' undeclared (first use in this function)
   11 |                         if (H[i] < H[j]) {
      |                             ^
main.c:11:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
using namespace stdl
typedef long long ll;
const int maxn = 1e5+5;
int num[maxn];

int main()
{
  int n;
  while(cin>>n){
  	for(int i=0;i<n;i++)
      cin>>num[i];
    int ans=0, flag = 0;
    for(int i=0;i<n;i++){
      int temp = 0;
      for(int j=i+1;j<n;j++){
        if(num[j]<=num[j-1])
          temp++;
        else
          break;
      }
      ans = max(ans, temp);
      i = i + temp;
    }
    cout<<ans<<endl;
  }
  return 0;
}

Compiler output:
a.cc:2:17: error: 'stdl' is not a namespace-name
    2 | using namespace stdl
      |                 ^~~~
a.cc:2:21: error: expected ';' before 'typedef'
    2 | using namespace stdl
      |                     ^
      |                     ;
    3 | typedef long long ll;
      | ~~~~~~~              
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |   while(cin>>n){
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:22:13: error: 'max' was not declared in this scope; did you mean 'std::max'?
   22 |       ans = max(ans, temp);
      |             ^~~
      |             std::max
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: 'std::max' declared here
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
a.cc:25:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |     cout<<ans<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:25:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |     cout<<ans<<endl;
      |                ^~~~
      |                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.*;

public class Main {
	final static int MOD = 1000000007;
	
	public static void main(String[] args) {
		MyScanner in = new MyScanner();
		int n = in.nextInt();
		int[] h = in.nextIntArray(n);
		int[] array = new int[n];
		
		for (int i = 0; i < h.length-1; i++) {
			if (h[i] => h[i+1]) {
				array[i+1] = array[i]+1;
			}
		}
		
		Arrays.sort(array);
		System.out.println(array[array.length-1]);
	}
	
	static class MyScanner {
		static Scanner sc = new Scanner(System.in);
		
		String next() {
			return sc.next();
		}
		
		String nextLine() {
			return sc.nextLine();
		}
		
		int nextInt() {
			return Integer.parseInt(sc.next());
		}
		
		double nextDouble() {
			return Double.parseDouble(next());
		}
		
		long nextLong() {
			return Long.parseLong(next());
		}
		
		int[] nextIntArray(int n) {
			int[] array = new int[n];
			for (int i = 0; i < n; i++) {
				array[i] = nextInt();
			}
			return array;
		}
		
		double[] nextDoubleArray(int n) {
			double[] array = new double[n];
			for (int i = 0; i < n; i++) {
				array[i] = nextDouble();
			}
			return array;
		}
		
		long[] nextLongArray(int n) {
			long[] array = new long[n];
			for (int i = 0; i < n; i++) {
				array[i] = nextLong();
			}
			return array;
		}
		
		String[] nextLineArray(int n) {
			String[] array = new String[n];
			for (int i = 0; i < n; i++) {
				array[i] = nextLine();
			}
			return array;
		}
		
		int[][] nextIntMatrix(int n, int m) {
			int[][] matrix = new int[n][m];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < m; j++) {
					matrix[i][j] = nextInt();
				}
			}
			return matrix;
		}
		
		double[][] nextDoubleMatrix(int n, int m) {
			double[][] matrix = new double[n][m];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < m; j++) {
					matrix[i][j] = nextDouble();
				}
			}
			return matrix;
		}
		
		long[][] nextLongMatrix(int n, int m) {
			long[][] matrix = new long[n][m];
			for (int i = 0; i < n; i++) {
				for (int j = 0; j < m; j++) {
					matrix[i][j] = nextLong();
				}
			}
			return matrix;
		}
	}
}


Compiler output:
Main.java:13: error: illegal start of expression
			if (h[i] => h[i+1]) {
			          ^
1 error
Language: C++

#include <iostream>

using namespace std;

typedef unsigned long long ulong;

int main()
{
    int n;
    cin >> n;
    ulong *h = new ulong[n];
    for (size_t i = 0; i < n; i++)
    {
        cin >> h[i];
    }

    int count = 0;
    int max_count = 0;
    for (size_t i = 1; i < n; i++)
    {
        if (h[i] > h[i - 1])
        {
            max_count = max(max_count, count);
            count = 0;
        }
        else
        {
            count++;
        }
    }
    max_count = max(max_count, count);

    cout << max_count << endl;

    delete[] h;
}


Compiler output:
a.cc:5:28: error: conflicting declaration 'typedef long long unsigned int ulong'
    5 | typedef unsigned long long ulong;
      |                            ^~~~~
In file included from /usr/include/stdlib.h:514,
                 from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/ext/string_conversions.h:43,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/sys/types.h:148:27: note: previous declaration as 'typedef long unsigned int ulong'
  148 | typedef unsigned long int ulong;
      |                           ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (ll i = (a); i < (b); i++)
#define rep2(r, aa, bb) for (ll r = (aa)-1; r >= (bb); r--)
#define be(x) (x.begin(), x.end())
#define pb(t) push_back(t)
#define ll long long
int main()
{
	int n, k=INT_MIN, c=0, maxi=INT_MIN;
	cin>>n;
	vector<int>A(n);
	rep(i,0,n)cin>>A[i];
	rep2(j,n,0)
	{
		if(A[j]>=k)
			c++;
		else
			c=1;
			maxi=max(mxai, c);
			k=A[j];
	}
	cout<<maxi<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:34: error: 'mxai' was not declared in this scope; did you mean 'maxi'?
   20 |                         maxi=max(mxai, c);
      |                                  ^~~~
      |                                  maxi
Language: C++

#include <iostream.h>
using namespace std;
#include<bits/stdc++.h>

int main(void)
{
   int n,sum=0;scanf("%d",&n);
   int a[n];
   int b[n]=0;
    for(int i=0;i<n;i++)
   {
       scanf("%d",&a[i]);
   }
   for(int i=0;i<n-1;i++)
   {
       if(a[i]>=a[i+1])
          {
              sum++;
              b[i]=sum;
          }
         
         else
         { 
             sum=0;
             b[i]=sum;
         }
         
   }
   sort(b,b+n);
   printf("%d",b[n-1]);
   return 0;
}

Compiler output:
a.cc:1:10: fatal error: iostream.h: No such file or directory
    1 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
int N;
cin >> N;
vector<int> h();
for(int i =1 ; i<N; i++){
  cin >> h.at(i) ;
}
  reverse(h.begin(), h.end());
  int ans=0;
  int a=0;
  for(int i=1 ; i<N ; i++){
     if(h.at(i) <= h.at(i+1)){
        ans++;
        a=ans;
     }else{
       a=max(a,ans); 
       ans=0;
     }
  }
  cout << a << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 | vector<int> h();
      |              ^~
a.cc:7:14: note: remove parentheses to default-initialize a variable
    7 | vector<int> h();
      |              ^~
      |              --
a.cc:9:12: error: request for member 'at' in 'h', which is of non-class type 'std::vector<int>()'
    9 |   cin >> h.at(i) ;
      |            ^~
a.cc:11:13: error: request for member 'begin' in 'h', which is of non-class type 'std::vector<int>()'
   11 |   reverse(h.begin(), h.end());
      |             ^~~~~
a.cc:11:24: error: request for member 'end' in 'h', which is of non-class type 'std::vector<int>()'
   11 |   reverse(h.begin(), h.end());
      |                        ^~~
a.cc:15:11: error: request for member 'at' in 'h', which is of non-class type 'std::vector<int>()'
   15 |      if(h.at(i) <= h.at(i+1)){
      |           ^~
a.cc:15:22: error: request for member 'at' in 'h', which is of non-class type 'std::vector<int>()'
   15 |      if(h.at(i) <= h.at(i+1)){
      |                      ^~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  int n;
  cin >> n;

  vector<int> h(n);
  vector<int> c(n,0);

  long long ans=0;
  for(int i =0; i < n; i++){
    cin >> h[i];
    if(i == 0)c[i] = 0;
    if(h[i] > h[i-1] )c[i] = 0;
    else c[i] = 1;
  }

  long long rs = 0;
  for(int i =0; i < n; i++){
    if(c[i] ) rs++;
    else rs = 0;
    if( rs > ans) ans = rs;
  }

  cout << ans << endl;
}


#include<bits/stdc++.h>

using namespace std;

int main(){
  int n;
  cin >> n;

  vector<int> h(n);
  vector<int> c(n,0);

  long long ans=0;
  for(int i =0; i < n; i++){
    cin >> h[i];
    if(i == 0)c[i] = 0;
    if(h[i] > h[i-1] )c[i] = 0;
    else c[i] = 1;
  }

  long long rs = 0;
  for(int i =0; i < n; i++){
    if(c[i] ) rs++;
    else rs = 0;
    if( rs > ans) ans = rs;
  }

  cout << ans << endl;
}




Compiler output:
a.cc:35:5: error: redefinition of 'int main()'
   35 | int main(){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(){

    cin >> N;
    
    int i;
    int ans = 0;
    int prev = -1;
    int count = 0;
    
    for(i=0;i<N;i++){
        int now;
        
        cin >> now;
        
        if(prev >= now){
            count++;
        }
        else{
            if(count > ans){
                ans = count;
            }
            count = 0;
        }
        
        prev = now;
        
    }
    
    if(count > ans){
                ans = count;
            }
    
    cout << count << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'N' was not declared in this scope
    7 |     cin >> N;
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main(){

    int N;
    int H;
    
    cin >> N,H;
    
    int i,j;
    int ans=0;
    int ANS=0;
    int ANS_pre=0;
    
    for(j=0;j<N;j++){
        for(i=j;i<N;i++){
            if(H[i] > H[i+1]){
                ans++;
            }
            else{
                break;
            }
        }
    
    ANS_pre = ANS;
    ANS = ans;
    
    ans=0;
    
    if(ANS_pre > ANS){
        ANS = ANS_pre;
    }
    
    
    
    }
    
    cout << ANS << endl;
    
    
    
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:17: error: invalid types 'int[int]' for array subscript
   19 |             if(H[i] > H[i+1]){
      |                 ^
a.cc:19:24: error: invalid types 'int[int]' for array subscript
   19 |             if(H[i] > H[i+1]){
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

/* #pragma */
//#pragma GCC optimize("Ofast")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

/*alias*/
#define F first
#define S second

#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
#define next asdnext
#define prev asdprev
#define itn int

/*struct*/
struct aaa {
	aaa() {
		cin.tie(nullptr); ios::sync_with_stdio(false); cout << fixed << setprecision(20);
	};
}aaaaaaa;

/*template*/
template<class T>constexpr bool amax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>constexpr bool amin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }

/* func */
constexpr int32_t GCD(int32_t a, int32_t b){return b ? GCD(b, a%b) : a;}
constexpr int64_t GCD(int64_t a, int64_t b){return b ? GCD(b, a%b) : a;}
constexpr int32_t LCM(int32_t a, int32_t b){return a / GCD(a, b) * b;}
constexpr int64_t LCM(int64_t a, int64_t b){return a / GCD(a, b) * b;}

/* const */
constexpr int32_t INF = 1001001001;
constexpr int64_t LINF = 1001001001001001001ll;
constexpr int32_t MOD = 1e9 + 7;
constexpr int32_t EPS = 1e-9;
constexpr int32_t dx[] = { 1, 1, 0, -1, -1, -1, 0, 1 }, dy[] = { 0, 1, 1, 1, 0, -1, -1, -1 };
//constexpr int32_t dx[] = {1, 0, -1, 0}, dy[] = {0, 1, 0, -1};


//g++ -std=c++14 -Wall --pedantic-errors -o template template.cpp
//g++ -std=c++14 -Wall --pedantic-errors template.cpp
//chcp 65001

#define int int64_t

/*global*/



signed main()
{
	int n; cin >> n;
	vector<int> h(n);
	for(int i = 0, i_len = (int)n; i < i_len; ++i) cin >> h[i];

	reverse(h.begin(), h.end());
	int max{};
	int cnt{};
	for(int i = 1; i < n; ++i)
	{
		if(h[i-1] <= h[i]) cnt++;
		else cnt{};
		amax(max, cnt);
	}
	cout << max << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:68:25: error: expected ';' before '{' token
   68 |                 else cnt{};
      |                         ^
      |                         ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int n; cin >> n;
    int arr[n] = {};
    for(int i=0; i<n;i++){
        cin >> arr[i];
    }

    
    
    int cur = 1;
    int ret = 0;
    int pos = -1;
    for(int i=n-1;i>0;i++){
        if(arr[i] <= arr[i-1]){
            cur++;
            ret = max(cur,ret);
            if(ret == cur ) pos = i;
        }else{
            cur = 1;
            ret = max(cur,ret);
            if(ret == cur ) pos = i;
        }
    }

    cout << i << endl;
    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:13: error: 'i' was not declared in this scope
   27 |     cout << i << endl;
      |             ^
Language: C++

#include <iostream>
using namesoace std;
int main(){
    int n;
    cin >> n;
    long h[n];
    for(int i = 0;i<n;i++) cin >> h[i];
    int now = 0;
    int ans = 1;
    for(int i = 1;i<n;i++){
        if(h[i]<=h[i-1]) now++;
        else{
            ans = max(ans,now);
            now = 1; 
        }
    }
    cout << ans-1 << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesoace'
    2 | using namesoace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> n;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:19: error: 'max' was not declared in this scope; did you mean 'std::max'?
   13 |             ans = max(ans,now);
      |                   ^~~
      |                   std::max
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: 'std::max' declared here
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout << ans-1 << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout << ans-1 << endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,b,i,j,k,l=0,m=0;
  cin>>n;
  for(i=0;i<n;i++)
  {
cin>>b;
    v.push_back(b);
  }
  for(i=0;i<n-1;i++)
  {
if(v[i]>=v[i+1])
{
l++;
}
    else if(l>m)
    {
m=l;l=0;}
  }
  if(m<=l)
    cout<<l;
  else
    cout<<m;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'v' was not declared in this scope
   10 |     v.push_back(b);
      |     ^
a.cc:14:4: error: 'v' was not declared in this scope
   14 | if(v[i]>=v[i+1])
      |    ^
Language: C++

#include,bits/stdc++.h>
using namespace std;
int main()
{
int i,j,k,l=0,m,n,b;
  vector<int>v;
  cin>>n;
  for(i=0;i<n;i++)
  {
    cin>>b;
    v.push_back(b);
  }
  int max=0;
  for(i=0;i<n-1;i++)
  {
     for(j=i+1;j<n;j++)
     {
       if(v[i]>=v[j])
          l++;
          else if(l>max)
          {
            max=l;
            l=0;
            break;
          }
          else
          break;
          }
          }
          cout<<max;
          }

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include,bits/stdc++.h>
      |         ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>v;
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #include,bits/stdc++.h>
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>v;
      |          ^~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include,bits/stdc++.h>
a.cc:11:5: error: 'v' was not declared in this scope
   11 |     v.push_back(b);
      |     ^
a.cc:18:11: error: 'v' was not declared in this scope
   18 |        if(v[i]>=v[j])
      |           ^
a.cc:30:11: error: 'cout' was not declared in this scope
   30 |           cout<<max;
      |           ^~~~
a.cc:30:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;

const int N = 1e5 + 10;
int h[N], dp[N];

int main() {
  	int n;
  	cin >> n;
  	for (int i = 0; i < n; i++)
      	cin >> a[i];
  	dp[n] = -1;
  	for (int i = n - 1; i >= 0; i--) {
      	if(a[i] >= a[i + 1])
        	dp[i] = dp[i + 1] + 1;
  		else
          dp[i] = 0;
    }
  	int ans = 0;
  	for (int i = 0; i < n; i++) {
      	ans = max(ans, dp[i]);
    }
  	cout << ans << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'a' was not declared in this scope
   11 |         cin >> a[i];
      |                ^
a.cc:14:12: error: 'a' was not declared in this scope
   14 |         if(a[i] >= a[i + 1])
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

const int N = 1e5 + 10;
int h[N], dp[N];

int main() {
  	int n;
  	cin >> n;
  	for (int i = 0; i < n; i++)
      	cin >> a[i];
  	dp[n] = -1;
  	for (int i = n - 1; i >= 0; i--)
      	if(a[i] >= a[i + 1])
        	dp[i] = dp[i + 1] + 1;
  		else
          dp[i] = 0;
  	int ans = 0;
  	for (int i = 0; i < n; i++)
      	ans = max(ans, dp[i]);
  	cout << ans << endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'a' was not declared in this scope
   11 |         cin >> a[i];
      |                ^
a.cc:14:12: error: 'a' was not declared in this scope
   14 |         if(a[i] >= a[i + 1])
      |            ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int n;
    cin>>n;
  	vector<int> arr(n);
  	for(auto &x:arr)
      cin>>arr;
  	arr.push_back(0);
  	int cnt=0, ans=0;
  	for(int i=n-1; i>=0; i--)
    {
      if(arr[i]>arr[i+1]
         cnt++;
      else
         cnt=0;
      ans=max(ans, cnt);
    }
	cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'vector' was not declared in this scope
    8 |         vector<int> arr(n);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include<iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:16: error: expected primary-expression before 'int'
    8 |         vector<int> arr(n);
      |                ^~~
a.cc:9:21: error: 'arr' was not declared in this scope
    9 |         for(auto &x:arr)
      |                     ^~~
a.cc:11:9: error: 'arr' was not declared in this scope
   11 |         arr.push_back(0);
      |         ^~~
a.cc:17:7: error: expected primary-expression before 'else'
   17 |       else
      |       ^~~~
a.cc:16:16: error: expected ')' before 'else'
   16 |          cnt++;
      |                ^
      |                )
   17 |       else
      |       ~~~~      
a.cc:15:9: note: to match this '('
   15 |       if(arr[i]>arr[i+1]
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int a = 0 , m = 0, N;
  cin >> N;
  vector<int> H(N)
  for (int i = 0; i < N; i++){
    cin >> H.at(i);
  }
  for (int i = 0; i < N-1; i++){
    if (H.at(i) >= H.at(i+1) ) {
      a++;
    }
    else if (H.at(i) < H.at(i+1) ) {
      m = max(m,a);
      a = 0;
    }
  }
  m = max(m,a);
  cout << m << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for (int i = 0; i < N; i++){
      |   ^~~
a.cc:8:19: error: 'i' was not declared in this scope
    8 |   for (int i = 0; i < N; i++){
      |                   ^
Language: C++

#pragma GCC optimize "03"
#include "bits/stdc++.h"
using namespace std;
 
#define ll long long int
#define ld long double
#define pi pair<int, int>
#define pb push_back
#define fi first
#define se second
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#ifndef LOCAL
#define endl '\n'
#endif
 
const int N = 1e5 + 5;
const int mod = 1e9 + 7;
const int inf = 1e9 + 9;
 
int h[N];

signed main() {
	IOS;
	#ifdef LOCAL
		freopen("input.txt","r", stdin);
		freopen("output.txt","w",stdout);
	#endif
	int n, h, ans = 0, x = 0;
	cin >> n;
	for(int i = 1; i <= n; i++){
		cin >> h[i];
		if(h[i] >= h[i-1])
			x++;
		else
			x = 0;
		ans = max(ans, x);
	}	
	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:25: error: invalid types 'int[int]' for array subscript
   31 |                 cin >> h[i];
      |                         ^
a.cc:32:21: error: invalid types 'int[int]' for array subscript
   32 |                 if(h[i] >= h[i-1])
      |                     ^
a.cc:32:29: error: invalid types 'int[int]' for array subscript
   32 |                 if(h[i] >= h[i-1])
      |                             ^
Language: C++

#pragma GCC optimize "03"
#include "bits/stdc++.h"
using namespace std;
 
#define ll long long int
#define ld long double
#define pi pair<int, int>
#define pb push_back
#define fi first
#define se second
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#ifndef LOCAL
#define endl '\n'
#endif
 
const int N = 1e5 + 5;
const int mod = 1e9 + 7;
const int inf = 1e9 + 9;
 
int h[N];

signed main() {
	IOS;
	#ifdef LOCAL
		freopen("input.txt","r", stdin);
		freopen("output.txt","w",stdout);
	#endif
	int n, h, ans = 0;
	cin >> n;
	for(int i = 1; i <= n; i++){
		cin >> h[i];
		if(h[i] >= h[i-1])
			x++;
		else
			x = 0;
		ans = max(ans, x);
	}	
	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:25: error: invalid types 'int[int]' for array subscript
   31 |                 cin >> h[i];
      |                         ^
a.cc:32:21: error: invalid types 'int[int]' for array subscript
   32 |                 if(h[i] >= h[i-1])
      |                     ^
a.cc:32:29: error: invalid types 'int[int]' for array subscript
   32 |                 if(h[i] >= h[i-1])
      |                             ^
a.cc:33:25: error: 'x' was not declared in this scope
   33 |                         x++;
      |                         ^
a.cc:35:25: error: 'x' was not declared in this scope
   35 |                         x = 0;
      |                         ^
a.cc:36:32: error: 'x' was not declared in this scope
   36 |                 ans = max(ans, x);
      |                                ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
int n;cin>>n;int h[n],ans=0,cans=0;for (int i=n-2;i>=0;i--)
{
  if (a[i]>=a[i+1])
              {
cans++;}
  else
  {
ans=max(ans,cans);cans=0;}}
  cout<<max(ans,cans);return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'a' was not declared in this scope
    8 |   if (a[i]>=a[i+1])
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0;i < (int)(n);i++)
#define rep2(i, s, n) for (int i = s; i < (int)(n);i++)

int main() {
int ans = 0;
  int N;
  cin >> N;
  vector<int> H(N)
  rep(i, N){
      cin >> H.at(i);
  }
  rep(i,N-1){
  rep2(j, i, N-1){
  int hypothesis = 0;
    if(N.at(j) >= N.at(j+1)){
    hypothesis++;
    }
    else{
    if(hypothesis > ans){
    ans = hypohesis;
      break;
    }
    }
  }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: expected ',' or ';' before 'for'
    3 | #define rep(i, n) for (int i = 0;i < (int)(n);i++)
      |                   ^~~
a.cc:11:3: note: in expansion of macro 'rep'
   11 |   rep(i, N){
      |   ^~~
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   rep(i, N){
      |       ^
a.cc:3:34: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0;i < (int)(n);i++)
      |                                  ^
a.cc:17:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   17 |     if(N.at(j) >= N.at(j+1)){
      |          ^~
a.cc:17:21: error: request for member 'at' in 'N', which is of non-class type 'int'
   17 |     if(N.at(j) >= N.at(j+1)){
      |                     ^~
a.cc:22:11: error: 'hypohesis' was not declared in this scope; did you mean 'hypothesis'?
   22 |     ans = hypohesis;
      |           ^~~~~~~~~
      |           hypothesis
Language: C++

#include "bits/stdc++.h"
using namespace std;
typedef long long lint;
typedef long long i64;
//#define rep(i,n) for(int i=0;i<n;++i)
#define _vcppunko4(tuple) _getname4 tuple
#define _getname4(_1,_2,_3,_4,name,...) name
#define _getname3(_1,_2,_3,name,...) name
#define _trep2(tuple) _rep2 tuple
#define _trep3(tuple) _rep3 tuple
#define _trep4(tuple) _rep4 tuple
#define _rep1(n) for(lint i=0;i<n;++i)
#define _rep2(i,n) for(lint i=0;i<n;++i)
#define _rep3(i,a,b) for(lint i=a;i<b;++i)
#define _rep4(i,a,b,c) for(lint i=a;i<b;i+=c)
#define _trrep2(tuple) _rrep2 tuple
#define _trrep3(tuple) _rrep3 tuple
#define _trrep4(tuple) _rrep4 tuple
#define _rrep1(n) for(lint i=n-1;i>=0;--i)
#define _rrep2(i,n) for(lint i=n-1;i>=0;--i)
#define _rrep3(i,a,b) for(lint i=b-1;i>=a;--i)
#define _rrep4(i,a,b,c) for(lint i=a+(b-a-1)/c*c;i>=a;i-=c)
#define rep(...) _vcppunko4((__VA_ARGS__,_trep4,_trep3,_trep2,_rep1))((__VA_ARGS__))
#define rrep(...) _vcppunko4((__VA_ARGS__,_trrep4,_trrep3,_trrep2,_rrep1))((__VA_ARGS__))

int main(){
  lint n,ans=0,tmp=0; cin>>n;
  rep(i,n){//rep(n), rep(i,0,n)
    if(a[i]<a[i+1])tmp=0;
    else ++tmp;
    ans=max(ans,tmp);
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:8: error: 'a' was not declared in this scope
   29 |     if(a[i]<a[i+1])tmp=0;
      |        ^
Language: C++

#include<stdio.h>
int main(void){
  double h[i];
  int i;
  int n;
  int sum=0;
  int ans;
  scanf("%d\n",&n);
  
  for(i=0; i<n; i++){
    scanf("%f",&h[i]);
  
  if(h[i-1]>h[i]){
    sum=sum++;
  }
  else{
    ans=sum;
  }
    
  }
  printf("%d\n",ans);
          
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:12: error: 'i' was not declared in this scope
    3 |   double h[i];
      |            ^
a.cc:11:17: error: 'h' was not declared in this scope
   11 |     scanf("%f",&h[i]);
      |                 ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

const int N = 1e5, MOD = 1e9 + 7;
typedef long long ll;

int main() {
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.precision(10);
	cout << fixed;

    int n;
    cin >> n;

    std::vector<int> height(n);

    for(int i=0;i<n;++i) cin >> height[i];

    std::vector<int> dp(n,0);

    for(int i=1;i<n;++i){
        if(height[i]<=height[i-1]) dp[i] = dp[i-1]+1;
    }

    cout << *max_element(dp.begin(),dp.end()) << '\n';
	
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'vector' is not a member of 'std'
   17 |     std::vector<int> height(n);
      |          ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include <algorithm>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:17:17: error: expected primary-expression before 'int'
   17 |     std::vector<int> height(n);
      |                 ^~~
a.cc:19:33: error: 'height' was not declared in this scope
   19 |     for(int i=0;i<n;++i) cin >> height[i];
      |                                 ^~~~~~
a.cc:21:10: error: 'vector' is not a member of 'std'
   21 |     std::vector<int> dp(n,0);
      |          ^~~~~~
a.cc:21:10: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
a.cc:21:17: error: expected primary-expression before 'int'
   21 |     std::vector<int> dp(n,0);
      |                 ^~~
a.cc:24:12: error: 'height' was not declared in this scope
   24 |         if(height[i]<=height[i-1]) dp[i] = dp[i-1]+1;
      |            ^~~~~~
a.cc:24:36: error: 'dp' was not declared in this scope
   24 |         if(height[i]<=height[i-1]) dp[i] = dp[i-1]+1;
      |                                    ^~
a.cc:27:26: error: 'dp' was not declared in this scope
   27 |     cout << *max_element(dp.begin(),dp.end()) << '\n';
      |                          ^~
Language: C

#include<stdio.h>

int main(void){
  int a=0;
  int i=0;
  scanf("%d",&a);
  int b[a]=0;
  for(i=0;i<a;i++){
    scanf("%d",&b[i]);
  }
  
  int countmax=0;
  for(i=0;i<a;i++){
    int j=i;
    int count=0;
    while(b[j] >= b[j+1]){
      count++;
      j++;
    }
    if(countmax < count)countmax=count;
  }
  
  printf("%d",countmax);
  
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: variable-sized object may not be initialized except with an empty initializer
    7 |   int b[a]=0;
      |            ^
Language: C++

n = int(input())
h = list(map(int,input().split()))
result = 0
for x in range(0,n-1):
    if h[x] >= h[x+1]:
        result += 1
    else:
        result = 0
print(result)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

n = int(input())
h = list(map(int,input().split()))

result = 0

for x in range(0,n-1):
    if h[x] >= h[x+1]:
        result += 1
    else:
        result = 0

print(result)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define RFOR(i,a,b) for (int i = (b)-1; i >= (a); --i)
#define REP(i,n) FOR(i,0,(n))
#define REPS(i,n) FOR(i,1,(n)+1)
#define RREP(i,n) RFOR(i,0,(n))
#define ALL(x) (x).begin(),(x).end()
#define RALL(x) (x).rbegin(),(x).rend()
#define DEBUG(x)  cout << #x << " = " << (x) << endl;
#define SORT(x) sort(ALL(x));
#define RSORT(x) sort(RALL(x));
#define SUM(x) accumulate(ALL(x),0);
#define FI first
#define SE second
#define PB push_back
#define EB emplace_back
#define SZ(x) (int)(x).size()
#define BN(x) ((1<<x)-1)
#define DUP(x,y) (((x)+(y)-1)/(y))
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using pii = pair<int, int>;
using tiii = tuple<int, int, int>;
const ll mod = 1e9+7;
const int INF = (1<<30)-1;
const ll INFLL = (1LL<<62)-1;
const int dx[4] = {1,0,-1,0};
const int dy[4] = {0,1,0,-1};
//cout << fixed << setprecision(10);

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

ll gcd(ll a, ll b) { return b ? gcd(b,a%b) : a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}

int main () {
  int n; cin >> n;
  vi h(n); REP(i,n) cin >> h[i];

  reverse(ALL(h));

  int ans = 0;
  int val = 0;
  FOR(i,1,n) {
    if (h[i-1] <= h[i]) val++;
    else vak = 0;
    ans = max(ans,val);
  }
  
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:10: error: 'vak' was not declared in this scope; did you mean 'val'?
   49 |     else vak = 0;
      |          ^~~
      |          val
Language: C++

N = int(input())
H = list(map(int, input().split()))

ans = 0

count = 0
for i in range(N-1):
    if (H[N-1-i] <= H[N-2-i]):
        count += 1
        if i == N-2:
            ans = max(ans, count)

    else:
        ans = max(ans, count)
        count = 0

print(ans)

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

/* Author: Dhruv Rastogi */
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define int long long
#define all(sdk) sdk.begin(),sdk.end()
#define mll map<int, int>
#define pb push_back
#define rep(i,a,b) for(int i=a;i<b;++i)
#define repd(i,a,b) for(int i=a;i>=b;--i)
#define mp make_pair
#define hell 1000000007
#define endl '\n'
#define vvll vector<vector<int> >
#define vll vector<int>
#define mint map<int,int> 
#define sz(x) (int)x.size()
#define sll set<int>
#define pll pair<int,int>
#define F first
#define S second
const long double PI = acos(-1.0);

void solve(){  
	int n;
	cin>>n;
	rep(i,0,n) cin>>a[i];
	int ans=0,cur=0;
	rep(i,0,n){
		if(i==0 or a[i]>a[i-1]){
			cur=1;
		}
		else ++cur;
		ans=max(ans,cur);
	}
	cout<<ans<<endl;
}

signed main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int t=1;
    // cin>>t;
    while(t--){
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:27:25: error: 'a' was not declared in this scope
   27 |         rep(i,0,n) cin>>a[i];
      |                         ^
a.cc:30:28: error: 'a' was not declared in this scope
   30 |                 if(i==0 or a[i]>a[i-1]){
      |                            ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <tuple>
#include <map>
#include <queue>
#include <set>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); i++)
#define mod 1000000007
#define fst first
#define pb push_back

int main()
{
    int n;
    cin >> n;
    vector<int> h(n):
    rep(i,n) cin >> h[i];
    int ans = 0;
    int val = 0;
    for(int i = 1; i < n; i++){
        if(h[i-1] <= h[i]) val++;
        else val = 0;
        ans = max(ans, val);
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: expected ',' or ';' before ':' token
   20 |     vector<int> h(n):
      |                     ^
a.cc:21:9: error: 'i' was not declared in this scope
   21 |     rep(i,n) cin >> h[i];
      |         ^
a.cc:11:35: note: in definition of macro 'rep'
   11 | #define rep(i, n) for (int i = 0; i < int(n); i++)
      |                                   ^
Language: C++

#include<iostream>
#include<vector>

#define K 10050
using namespace std;

int main()
{
	vector<long long> square;
	int N, inp;

	cin >> N;
	for (int i = 0; i < N; i++)
	{
		cin >> inp;
		square.push_back(inp);
	}

	if (N == 1)
	{
		cout << 0 << endl;
	}
	else
	{
		int dp[K];
		memset(dp, 0, sizeof(dp));
		dp[0] = 1;                            //初始状态 

		int pos = 0;

		for (int i = 1; i < N; i++)
		{
			if (square[i] <= square[i - 1])
			{
				dp[i] = dp[i - 1] + 1;

				if (dp[i] > dp[pos])
					pos = i;
			}
			else
			{
				dp[i] = 1;
			}
		}
		cout << pos - dp[pos] + 1 << endl;
	}

	
	return 0;
}







Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: 'memset' was not declared in this scope
   26 |                 memset(dp, 0, sizeof(dp));
      |                 ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<vector>
  +++ |+#include <cstring>
    3 |
Language: C

#include <stdio.h>

#define N 100000

int main() {
	static int hh[N];
	int n, i, cnt, max;

	scanf("%d", &n);
	for (i = 0; i < n; i++)
		scanf("%d", &hh[i]);
	max = cnt = 0;
	for (i = n - 2; i >= 0; i--)
		if (max < (cnt = hh[i] >= hh[i + 1] ? cnt + 1 : 0)
			max = cnt;
	printf("%d\n", max);
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:67: error: expected ')' before 'max'
   14 |                 if (max < (cnt = hh[i] >= hh[i + 1] ? cnt + 1 : 0)
      |                    ~                                              ^
      |                                                                   )
   15 |                         max = cnt;
      |                         ~~~                                        
main.c:18:1: error: expected expression before '}' token
   18 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i);
using namespace std;

int main(){
	int n;
	cin >> n;
	vector<int> h(n);
	rep(i,n) cin >> h[i];
	int ans = 0, val = 0;
	for (int n = 1; i < n; i++) {
		if (h[i-1] >= h[i]) val++;
		else val = 0;
		ans = max(ans, val);
	}
	cout << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'i' was not declared in this scope
    9 |         rep(i,n) cin >> h[i];
      |                           ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define dup(x,y) (((x)+(y)-1)/(y))//result of div + 1
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
	int N;
	int ans = 0;
	int val = 0;
	cin >> N;
	vector<int> H(N);

	rep(i,N)
		cin >> H(i);

	reverse(H.begin(), H.end());

	for (int i = 1; i <= N; i++) {
		if (H[i - 1] < H[i]) {
			val++;
		} else {
			val = 0;
		}
		ans = max(ans, val);
	}
	cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: no match for call to '(std::vector<int>) (int&)'
   14 |                 cin >> H(i);
      |                        ~^~~
Language: C++

#include <iostream>
using namespace std;
int main(){
  int n; cin >> n;
vector<int> a(n);
    for (int i = 0; i < n; ++i)
        cin >> a[i];
    int ans = -1;
    int cur = 1;
    for (int i = 1; i < n; ++i) {
        if (a[i - 1] >= a[i])
            ++cur;
        else {
            ans = max(ans, cur);
            cur = 1;
        }
    }
    ans = max(ans, cur);
    cout << ans - 1 << '\n';
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'vector' was not declared in this scope
    5 | vector<int> a(n);
      | ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:8: error: expected primary-expression before 'int'
    5 | vector<int> a(n);
      |        ^~~
a.cc:7:16: error: 'a' was not declared in this scope
    7 |         cin >> a[i];
      |                ^
a.cc:11:13: error: 'a' was not declared in this scope
   11 |         if (a[i - 1] >= a[i])
      |             ^
Language: C

#include<stdio.h>
int main()
{
  long n,h[100001],i,k=0;
  scanf("%ld",&n);
  for(i=1;i<=n;i++)
  {
    scanf("%ld",&h[i]);
  }
  for(i=1;i<n;i++)
  {
    if(a[i]<a[i+1])
    {
      k++;
    }
  }
  long c1[k],l1=1,large;
  for(i=1;i<=k;i++)
  {
    c1[i]=0;
  }
  for(i=1;i<n;i++)
  {
    if(a[i]<a[i+1])
    {
      l1++;
    }
    else
    {
      c1[l1]=c1[l1]+1;
    }
  }
  large=c1[1];
  for(i=2;i<=l1;i++)
  {
    if(c1[i]>=large)
    {
      large=c1[i];
    }
  }
  printf("%ld\n",large);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:8: error: 'a' undeclared (first use in this function)
   12 |     if(a[i]<a[i+1])
      |        ^
main.c:12:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
   int n;
  cin>>n;
  vector<int> v(n);
  for(int i=0;i<n;i++) cin>>v[i];
  int ans=0,count=0;
  for(int i=0;i<n-1;i++){
    if(v[i+1]<v[i]) count++;
    else ans=max(ans,count),count=0;
  }
  cout<<ans;
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected '}' at end of input
   14 |   cout<<ans;
      |             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
   int n;
  cin>>n;
  vector<int> v(n);
  for(int i=0;i<n;i++) cin>>v[i];
  int ans=0,count=0;
  for(int i=0;i<n-1;i++){
    if(v[i+1]<v[i]) count++;
    else ans=max(ans,count),count=0;
  }
  cout<<ans;
    
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected '}' at end of input
   14 |   cout<<ans;
      |             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N,sum,saidai; cin >> N;
  sum=0;saidai=0;
  vector<int> vec(N);
  vector<int> wow(N);
  for(int i=0;i<N;i++){
    cin >> vec.at(i);
  }
  for(int i=0;i<N;i++){
    wow.at(i)=0;
  }
  for(int i=0;i<N-1;i++){
    for(int j=0;j<N-1;j++){
     if(vec.at(j)>=vec.at(j+1)){
       wow.at(i)++;
     }
     else{
       break;
     }
    }
  }
  if(vec.at(N-2)>vec.at(N-1)){
    wow.at(N-1)=1;
  else{
    wow.at(N-1)=0;
  }
  for(int i=0;i<N;i++){
    if(saidai<wow.at(i)){
      saidai=wow.at(i);
    }
  }
  cout << saidai << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:3: error: expected '}' before 'else'
   27 |   else{
      |   ^~~~
a.cc:25:30: note: to match this '{'
   25 |   if(vec.at(N-2)>vec.at(N-1)){
      |                              ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int i,j,n,count=0,temp=0;
cin>>n;
int A[n];
for(i=0;i<n;i++){
    cin>>A[i];
}
int prev = INT_MAX;
  for(j=0;j<n;j++){
    if(A[j]<prev){
        count++;
    }
    else{
        int temp = max(count,temp);
        count=0;
    }
    prev = A[j];
  }
  cout<<max(count,temp)<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'INT_MAX' was not declared in this scope
   10 | int prev = INT_MAX;
      |            ^~~~~~~
a.cc:2:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    1 | #include<iostream>
  +++ |+#include <climits>
    2 | using namespace std;
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main(){
  int N,sum,saidai; cin >> N;
  sum=0;saidai=0;
  vector<int> vec(N);
  vector<int> wow(N);
  for(int i=0;i<N;i++){
    cin >> vec.at(i);
  }
  for(int i=0;i<N;i++){
    wow.at(i)=0;
  }
  for(int i=0;i<N-1;i++){
    for(int j=0;j<N-1;j++){
     if(vec.at(j)>=vec.at(j+1)){
       wow.at(i)++;
     }
     else{
       break;
     }
    }
  }
  for(int i=0;i<N;i++){
    if(saidai<wow.at(i)){
      saidai=wow.at(i);
    }
    else
  }
  cout << saidai << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:3: error: expected primary-expression before '}' token
   30 |   }
      |   ^
Language: C++

#include <bits.stdc++.h>
using namespace std;

int main(){
  int N,sum,saidai; cin >> N;
  sum=0;saidai=0;
  vector<int> vec(N);
  vector<int> wow(N);
  for(int i=0;i<N;i++){
    cin >> vec.at(i);
  }
  for(int i=0;i<N;i++){
    wow.at(i)=0;
  }
  for(int i=0;i<N-1;i++){
    for(int j=0;j<N-1;j++){
     if(vec.at(j)>=vec.at(j+1)){
       wow.at(i)++;
     }
     else{
       break;
     }
    }
  }
  for(int i=0;i<N;i++){
    if(saidai<wow.at(i)){
      saidai=wow.at(i);
    }
    else
  }
  cout << saidai << endl;
}

Compiler output:
a.cc:1:10: fatal error: bits.stdc++.h: No such file or directory
    1 | #include <bits.stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
    using namespace std;
    int main()
    {
      int n;
      std::cin >> n;
      int h[n];
      int b = 0; //カウント用
      int c = 0; //カウント用

      for (int i = 0; i < n; i++) {
        cin >> h[i];
      }

      for (int i = 0; i < n-1; i++) {
        if (h[i] >= h[i+1]) {
          b++;
        }
        else {
          c = max(b,c);
          b = 0;
          }
        }
      }

      c =max(b,c);
      cout << c << '\n';
      //return 0;
    }


Compiler output:
a.cc:26:7: error: 'c' does not name a type
   26 |       c =max(b,c);
      |       ^
a.cc:27:7: error: 'cout' does not name a type
   27 |       cout << c << '\n';
      |       ^~~~
a.cc:29:5: error: expected declaration before '}' token
   29 |     }
      |     ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;
typedef long long ll;

int main() {
  int n; cin >> n;
  vector<int>h(n);
  rep(i,n) cin >> h[i];
  
  int count = 0;
  int ans = 0;
  
  int(int i=0; i<n; ++i) {
    if(h[i] >= h[i+1]) count++;
    else count = 0;
    ans = max(ans, count);
  }
  cout << ans << endl;
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: expected primary-expression before 'int'
   14 |   int(int i=0; i<n; ++i) {
      |   ^~~
a.cc:14:16: error: 'i' was not declared in this scope
   14 |   int(int i=0; i<n; ++i) {
      |                ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;
typedef long long ll;

int main() {
  int n; cin >> n;
  vector<int>h(n);
  rep(i,n) cin >> h[i];
  
  int count = 0;
  int ans = 0;
  
  int(i=0; i<n; ++i) {
    if(h[i] >= h[i+1]) count++;
    else count = 0;
    ans = max(ans, count);
  }
  cout << ans << endl;
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'i' was not declared in this scope
   14 |   int(i=0; i<n; ++i) {
      |       ^