0_0_36003658_9987.cpp:1:1: error: 'nclude' does not name a type
nclude <bits/stdc++.h>
^
0_0_36003658_9987.cpp: In function 'int main()':
0_0_36003658_9987.cpp:8:23: error: 'scanf' was not declared in this scope
while (~scanf("%d",&n),n)
^
0_0_36003658_9987.cpp:10:27: error: 'memset' was not declared in this scope
memset(dp, 0, sizeof(dp));
^
0_0_36003658_9987.cpp:24:73: error: 'max' was not declared in this scope
dp[i][j] += max(dp[i + 1][j], max(dp[i + 1][j + 1], dp[i + 1][j - 1]));
^
0_0_36003658_9987.cpp:24:74: error: 'max' was not declared in this scope
dp[i][j] += max(dp[i + 1][j], max(dp[i + 1][j + 1], dp[i + 1][j - 1]));
^
0_0_36003658_9987.cpp:24:74: error: redeclaration of '<typeprefixerror>max'
0_0_36003658_9987.cpp:24:73: note: previous declaration '<typeprefixerror>max'
dp[i][j] += max(dp[i + 1][j], max(dp[i + 1][j + 1], dp[i + 1][j - 1]));
^
0_0_36003658_9987.cpp:27:3: error: 'cout' was not declared in this scope
cout << dp[0][5] << endl;
^
0_0_36003658_9987.cpp:27:23: error: 'endl' was not declared in this scope
cout << dp[0][5] << endl;
^
|