138942025-01-09 09:18:38kongopongHőségriadó (50 pont)cpp17Forditási hiba
#include <iostream>

using namespace std;

int main()
{
    int n, k, l, f;
    cin >> n >> k >> l >> f;
    int x, folotte=0, alatta=0, db=0;
    bool hoseg = false;
    for(int i=1; i<=n; i++)
    {
        cin >> x;
        if(x>f){
            alatta = 0;
            folotte++;
        }
        if(x<f)
        {
            alatta++;
            folotte=0;
        }
         if(x=f)
        {
            alatta=0;
            folootte=0;
        }
        if(alatta==l)
        {
            folotte=0;
            alatta=0;
            hoseg=false;
        }
        if(folotte==k && !hoseg)
        {
            db++;
            hoseg=true;
        }

    }
    cout << db;

    return 0;
}
Forditási hiba
open /var/local/lib/isolate/444/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:26:13: error: 'folootte' was not declared in this scope; did you mean 'folotte'?
   26 |             folootte=0;
      |             ^~~~~~~~
      |             folotte