12496 | 2024-12-19 11:31:18 | nkbalint | Toronyépítés (1,1,3,3) | cpp17 | Compilation error |
int n,i;
long long v[1000001];
int main()
{
cin>>n;
v[1]=2;
v[2]=4;
v[3]=10;
if(n>3)
{
for(i=4;i<=n;++i)
{
v[i]=(2*v[i-1]+2*v[i-3])%20210108;
}
}
cout<<v[n];
}
open /var/local/lib/isolate/409/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:6:5: error: 'cin' was not declared in this scope
6 | cin>>n;
| ^~~
main.cpp:17:5: error: 'cout' was not declared in this scope
17 | cout<<v[n];
| ^~~~