0_0_17607346_10006.cpp:3:2: error: stray '#' in program
2#include<stdio.h>
^
0_0_17607346_10006.cpp:1:1: error: expected unqualified-id before numeric constant
1
^
0_0_17607346_10006.cpp: In function 'int main()':
0_0_17607346_10006.cpp:10:3: error: 'ans' was not declared in this scope
ans[i]=ans[i-1]+2*ans[i-2];
^
0_0_17607346_10006.cpp:13:21: error: 'scanf' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_17607346_10006.cpp:13:24: error: 'EOF' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_17607346_10006.cpp:15:19: error: 'ans' was not declared in this scope
printf("%lld\n",ans[n]);
^
0_0_17607346_10006.cpp:15:25: error: 'printf' was not declared in this scope
printf("%lld\n",ans[n]);
^
|