0_0_23393360_31301.cpp:11:1: error: 'll' does not name a type
ll res, num[MAX_N];
^
0_0_23393360_31301.cpp: In function 'int main()':
0_0_23393360_31301.cpp:32:12: error: 'num' was not declared in this scope
memset(num, 0, sizeof(num));
^
0_0_23393360_31301.cpp:33:5: error: 'll' was not declared in this scope
ll min_ = INF;
^
0_0_23393360_31301.cpp:34:53: error: 'min_' was not declared in this scope
for (int i = 1;i <= N; ++i) scanf("%d", &p[i]), min_ = min(min_, p[i]);
^
0_0_23393360_31301.cpp:35:20: error: 'min_' was not declared in this scope
int need = 1 - min_;
^
0_0_23393360_31301.cpp:39:7: error: 'res' was not declared in this scope
res += num[i];
^
0_0_23393360_31301.cpp:46:12: error: 'res' was not declared in this scope
min_ = res;
^
0_0_23393360_31301.cpp:47:8: error: expected ';' before 'std_'
ll std_ = res;
^
0_0_23393360_31301.cpp:49:15: error: 'n' was not declared in this scope
res += (n - 2 * p[i] + 1), min_ = min(min_, res);//printf("%d %d \n", num[i], res);
^
|