120222024-11-25 14:40:58KissCsongor777Hőségriadó (50 pont)cpp17Forditási hiba
#include <iostream>

using namespace std;

int main()
{
    int N,K,L,F,A,k=0,l=0, db=0;
    cin>>N>>K>>L>>F;
    for(int i=1; i<=N; i++)
    {
        cin>>A;
        if(A>F){k++;l=0;}
        if(A<F){l++; k=0;}
        if(A==F){l=0;k=0}
        if(k==K)db++;
    }
    cout<<db;
    return 0;
}
Forditási hiba
open /var/local/lib/isolate/425/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:14:25: error: expected ';' before '}' token
   14 |         if(A==F){l=0;k=0}
      |                         ^
      |                         ;