0_0_13808279_31660.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:6:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:7:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:8:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:9:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:10:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:11:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp:12:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_13808279_31660.cpp: In function 'int main()':
0_0_13808279_31660.cpp:23:23: error: 'scanf' was not declared in this scope
while(~scanf("%d", &n))
^
0_0_13808279_31660.cpp:25:28: error: 'memset' was not declared in this scope
memset (dp, 0, sizeof(dp));
^
0_0_13808279_31660.cpp:27:3: error: expected ';' before '{' token
{
^
0_0_13808279_31660.cpp:27:3: error: expected primary-expression before '{' token
0_0_13808279_31660.cpp:27:3: error: expected ')' before '{' token
0_0_13808279_31660.cpp:34:4: error: expected ';' before '{' token
{
^
0_0_13808279_31660.cpp:34:4: error: expected primary-expression before '{' token
0_0_13808279_31660.cpp:34:4: error: expected ')' before '{' token
0_0_13808279_31660.cpp:35:112: error: 'max' was not declared in this scope
dp[i][j] = max(dp[i + 1][j] + val[i] * (n - (j - i + 1) + 1), dp[i][j - 1] + val[j] *(n - (j - i + 1) + 1) );
^
0_0_13808279_31660.cpp:38:26: error: 'printf' was not declared in this scope
printf("%d\n", dp[1][n]);
^
|