13730 | 2025-01-08 15:26:54 | birozs | Járda-L (40) | cpp17 | Forditási hiba |
N = int(input())
lista = [0,1,3,5]
if N <= 3:
print(lista[N])
else:
for i in range(4,N+1):
lista.append(2*lista[i-1]+lista[i-3])
print(lista[N])
open /var/local/lib/isolate/438/box/a.out: no such file or directory
main.cpp:1:1: error: 'N' does not name a type
1 | N = int(input())
| ^