30862023-02-14 23:25:52PallanekPéterTükörtojás (75 pont)cpp11Compilation error
n=int(input())
kezdet=input()
eloirt=input()
db=0; i=n-1
while i!=0:
    if db%2==0:
        if kezdet[i]!=eloirt[i]:
            db+=1
    else:
        if kezdet[i]==eloirt[i]:
            db+=1
    i-=1
print(db)
    
Compilation error
exit status 1
main.cpp:1:1: error: 'n' does not name a type
    1 | n=int(input())
      | ^
main.cpp:4:7: error: 'i' does not name a type
    4 | db=0; i=n-1
      |       ^
Exited with error status 1