0_0_16819388_8958.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_16819388_8958.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_16819388_8958.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_16819388_8958.cpp:7:1: error: expected ',' or ';' before 'const'
const int N = 205;
^
0_0_16819388_8958.cpp:9:8: error: 'N' was not declared in this scope
int dp[N][N];
^
0_0_16819388_8958.cpp:9:11: error: 'N' was not declared in this scope
int dp[N][N];
^
0_0_16819388_8958.cpp:10:9: error: 'N' was not declared in this scope
int sum[N];
^
0_0_16819388_8958.cpp:11:7: error: 'N' was not declared in this scope
int a[N];
^
0_0_16819388_8958.cpp: In function 'int getMinval(int*, int)':
0_0_16819388_8958.cpp:16:9: error: expected ';' before 'dp'
dp[i][i] = 0;
^
0_0_16819388_8958.cpp:16:9: error: 'dp' was not declared in this scope
0_0_16819388_8958.cpp:16:21: error: expected ')' before ';' token
dp[i][i] = 0;
^
0_0_16819388_8958.cpp:18:5: error: expected ';' before '{' token
{
^
0_0_16819388_8958.cpp:18:5: error: expected primary-expression before '{' token
0_0_16819388_8958.cpp:18:5: error: expected ')' before '{' token
0_0_16819388_8958.cpp:20:9: error: expected ';' before '{' token
{
^
0_0_16819388_8958.cpp:20:9: error: expected primary-expression before '{' token
0_0_16819388_8958.cpp:20:9: error: expected ')' before '{' token
0_0_16819388_8958.cpp:22:13: error: 'dp' was not declared in this scope
dp[i][j] = INF;
^
0_0_16819388_8958.cpp:23:23: error: 'sum' was not declared in this scope
int tmp = sum[j] - (i 0 ? sum[i-1]:0);
^
0_0_16819388_8958.cpp:23:36: error: expected ')' before numeric constant
int tmp = sum[j] - (i 0 ? sum[i-1]:0);
^
0_0_16819388_8958.cpp:25:17: error: expected ';' before 'dp'
dp[i][j] = min(dp[i][j],dp[i][k]+dp[k+1][j] + tmp);
^
0_0_16819388_8958.cpp:25:66: error: 'min' was not declared in this scope
dp[i][j] = min(dp[i][j],dp[i][k]+dp[k+1][j] + tmp);
^
0_0_16819388_8958.cpp:25:67: error: expected ')' before ';' token
dp[i][j] = min(dp[i][j],dp[i][k]+dp[k+1][j] + tmp);
^
0_0_16819388_8958.cpp:28:12: error: 'dp' was not declared in this scope
return dp[0][n-1];
^
0_0_16819388_8958.cpp: In function 'int main()':
0_0_16819388_8958.cpp:34:24: error: 'scanf' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_16819388_8958.cpp:34:27: error: 'EOF' was not declared in this scope
while(scanf("%d",&n)!=EOF)
^
0_0_16819388_8958.cpp:37:13: error: expected ';' before 'scanf'
scanf("%d",&a[i]);
^
0_0_16819388_8958.cpp:37:25: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
0_0_16819388_8958.cpp:37:30: error: expected ')' before ';' token
scanf("%d",&a[i]);
^
0_0_16819388_8958.cpp:38:9: error: 'sum' was not declared in this scope
sum[0] = a[0];
^
0_0_16819388_8958.cpp:38:18: error: 'a' was not declared in this scope
sum[0] = a[0];
^
0_0_16819388_8958.cpp:40:13: error: expected ';' before 'sum'
sum[i] = sum[i-1] + a[i];
^
0_0_16819388_8958.cpp:40:37: error: expected ')' before ';' token
sum[i] = sum[i-1] + a[i];
^
0_0_16819388_8958.cpp:45:9: error: expected ';' before '{' token
{
^
0_0_16819388_8958.cpp:45:9: error: expected primary-expression before '{' token
0_0_16819388_8958.cpp:45:9: error: expected ')' before '{' token
0_0_16819388_8958.cpp:51:17: error: expected ')' before '{' token
{
^
0_0_16819388_8958.cpp:57:13: error: expected primary-expression before '}' token
}
^
0_0_16819388_8958.cpp:60:17: error: expected ')' before '{' token
{
^
0_0_16819388_8958.cpp:65:13: error: expected primary-expression before '}' token
}
^
0_0_16819388_8958.cpp:69:39: error: 'printf' was not declared in this scope
printf("%d\n(%d,%d)\n",ans,x,y);
^
|