0_0_33352289_31898.cpp:8:18: error: expected primary-expression before '<<' token
const int inf = << ;
^
0_0_33352289_31898.cpp:8:21: error: expected primary-expression before ';' token
const int inf = << ;
^
0_0_33352289_31898.cpp:9:18: error: expected primary-expression before ';' token
const int maxn = ;
^
0_0_33352289_31898.cpp:17:12: error: size of array 'dwarf' is not an integral constant-expression
}dwarf[maxn];
^
0_0_33352289_31898.cpp:18:13: error: size of array 'sum' is not an integral constant-expression
int sum[maxn],dp[maxn][maxn];
^
0_0_33352289_31898.cpp:18:28: error: size of array 'dp' is not an integral constant-expression
int sum[maxn],dp[maxn][maxn];
^
0_0_33352289_31898.cpp:18:28: error: size of array 'dp' is not an integral constant-expression
0_0_33352289_31898.cpp: In function 'void read()':
0_0_33352289_31898.cpp:23:15: error: expected primary-expression before ',' token
memset(dp,,sizeof(dp));
^
0_0_33352289_31898.cpp:24:15: error: expected primary-expression before ';' token
for(int i=;i<=n;i++)
^
0_0_33352289_31898.cpp:29:19: error: expected primary-expression before ',' token
sort(dwarf + , dwarf + n + );
^
0_0_33352289_31898.cpp:29:33: error: expected primary-expression before ')' token
sort(dwarf + , dwarf + n + );
^
0_0_33352289_31898.cpp:30:9: error: expected primary-expression before ']' token
sum[] = ;
^
0_0_33352289_31898.cpp:30:13: error: expected primary-expression before ';' token
sum[] = ;
^
0_0_33352289_31898.cpp:31:15: error: expected primary-expression before ';' token
for(int i=;i<=n;i++)
^
0_0_33352289_31898.cpp:33:24: error: expected primary-expression before ']' token
sum[i] = sum[i-] + dwarf[i].a;
^
0_0_33352289_31898.cpp:35:15: error: expected primary-expression before ';' token
for(int i=;i<=n;i++)
^
0_0_33352289_31898.cpp:37:21: error: expected primary-expression before ';' token
for(int j=i+;j<=n;j++)
^
0_0_33352289_31898.cpp: In function 'void solve()':
0_0_33352289_31898.cpp:47:15: error: expected primary-expression before ';' token
for(int i=;i<=n;i++)
^
0_0_33352289_31898.cpp:49:19: error: expected primary-expression before ';' token
for(int j=;j<=i;j++)
^
0_0_33352289_31898.cpp:51:33: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:22: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:62: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:28: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:53: note: in expansion of macro 'MAX'
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:51:66: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:28: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:53: note: in expansion of macro 'MAX'
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:51:62: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:28: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:53: note: in expansion of macro 'MAX'
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:51:66: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:28: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:53: note: in expansion of macro 'MAX'
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:51:33: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:34: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:62: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:40: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:53: note: in expansion of macro 'MAX'
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:51:66: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:40: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:53: note: in expansion of macro 'MAX'
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:51:62: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:40: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:53: note: in expansion of macro 'MAX'
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:51:66: error: expected primary-expression before ']' token
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:5:40: note: in definition of macro 'MIN'
#define MIN(a , b) ((a) < (b) ? (a) : (b))
^
0_0_33352289_31898.cpp:51:53: note: in expansion of macro 'MAX'
dp[i][j] = MIN(dp[i-][j] - dwarf[i].a , MAX(dp[i-][j-] , h - sum[i] - dwarf[i].b));
^
0_0_33352289_31898.cpp:54:20: error: expected primary-expression before ';' token
for(int i=n;i>=;i--)
^
0_0_33352289_31898.cpp:56:24: error: expected primary-expression before ')' token
if(dp[n][i] <= )
^
0_0_33352289_31898.cpp: In function 'int main()':
0_0_33352289_31898.cpp:72:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
return ;
^
|