0_0_36497155_32501.cpp:18:1: error: expected primary-expression before 'int'
int dp[41];
^
0_0_36497155_32501.cpp: In function 'void init()':
0_0_36497155_32501.cpp:20:5: error: 'dp' was not declared in this scope
dp[0]=0,dp[1]=1,dp[2]=1;
^
0_0_36497155_32501.cpp: In function 'int main()':
0_0_36497155_32501.cpp:30:20: error: 'dp' was not declared in this scope
cout<<dp[num]<<endl;
^
|