200382025-12-31 10:48:23SomogyiSakktábla bábukkalcpp17Compilation error
#include <iostream>

using namespace std;

int main()
{
    char babu, a[2]={'0','0'};
    bool jo=true;
    int k;
    for (int i=0; i<64; i++)
    {
        cin >> babu;
        if (babu! = 'F')
        {
            k=(i/8+i%8)%2;
            if (a[0] == '0')
            {
                if (babu == 'S')
                {
                    a[k] = 'S';
                    a[1-k] = 'V';
                }
                else
                {
                    a[k] = 'V';
                    a[1-k] = 'S';
                }
            }
            else
            {
                if (babu!=a[k])
                {
                    jo=false;
                }
            }
        }
    }
    if (jo)
    {
        cout << "LEHETSEGES";
    }
    else
    {
        cout << "LEHETETLEN";
    }
    return 0;
}
Compilation error
open /var/local/lib/isolate/405/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:13:17: error: expected ')' before '!' token
   13 |         if (babu! = 'F')
      |            ~    ^
      |                 )