0_0_30626978_29936.cpp:5:5: error: 'll' does not name a type
ll val; int id;
^
0_0_30626978_29936.cpp: In member function 'bool node::operator<(const node&) const':
0_0_30626978_29936.cpp:7:16: error: 'val' was not declared in this scope
return val < x.val;
^
0_0_30626978_29936.cpp:7:24: error: 'const struct node' has no member named 'val'
return val < x.val;
^
0_0_30626978_29936.cpp: In function 'int main()':
0_0_30626978_29936.cpp:16:9: error: 'll' was not declared in this scope
ll maxa = 0;
^
0_0_30626978_29936.cpp:17:58: error: 'struct node' has no member named 'val'
for (int i = 1; i <= n; ++i) scanf("%lld", &a[i].val), maxa = max(maxa, a[i].val), a[i].id = i;
^
0_0_30626978_29936.cpp:17:64: error: 'maxa' was not declared in this scope
for (int i = 1; i <= n; ++i) scanf("%lld", &a[i].val), maxa = max(maxa, a[i].val), a[i].id = i;
^
0_0_30626978_29936.cpp:17:86: error: 'struct node' has no member named 'val'
for (int i = 1; i <= n; ++i) scanf("%lld", &a[i].val), maxa = max(maxa, a[i].val), a[i].id = i;
^
0_0_30626978_29936.cpp:18:43: error: 'struct node' has no member named 'val'
for (int i = 1; i <= n; ++i) a[i].val = maxa - a[i].val, vis[i] = 0;
^
0_0_30626978_29936.cpp:18:49: error: 'maxa' was not declared in this scope
for (int i = 1; i <= n; ++i) a[i].val = maxa - a[i].val, vis[i] = 0;
^
0_0_30626978_29936.cpp:18:61: error: 'struct node' has no member named 'val'
for (int i = 1; i <= n; ++i) a[i].val = maxa - a[i].val, vis[i] = 0;
^
0_0_30626978_29936.cpp:20:27: error: 'struct node' has no member named 'val'
int cnt = 0; a[0].val = -2; ll over_cnt = 0;
^
0_0_30626978_29936.cpp:20:40: error: expected ';' before 'over_cnt'
int cnt = 0; a[0].val = -2; ll over_cnt = 0;
^
0_0_30626978_29936.cpp:22:22: error: 'struct node' has no member named 'val'
if (a[i].val != a[i - 1].val) {
^
0_0_30626978_29936.cpp:22:38: error: 'struct node' has no member named 'val'
if (a[i].val != a[i - 1].val) {
^
0_0_30626978_29936.cpp:23:30: error: 'struct node' has no member named 'val'
if (a[i - 1].val + 1 >= maxa) over_cnt += cnt, cnt = 0;
^
0_0_30626978_29936.cpp:23:41: error: 'maxa' was not declared in this scope
if (a[i - 1].val + 1 >= maxa) over_cnt += cnt, cnt = 0;
^
0_0_30626978_29936.cpp:23:47: error: 'over_cnt' was not declared in this scope
if (a[i - 1].val + 1 >= maxa) over_cnt += cnt, cnt = 0;
^
0_0_30626978_29936.cpp:24:35: error: 'struct node' has no member named 'val'
else if (a[i - 1].val + 2 >= maxa) over_cnt += cnt / 2, cnt = 0;
^
0_0_30626978_29936.cpp:24:52: error: 'over_cnt' was not declared in this scope
else if (a[i - 1].val + 2 >= maxa) over_cnt += cnt / 2, cnt = 0;
^
0_0_30626978_29936.cpp:25:35: error: 'struct node' has no member named 'val'
else if (a[i - 1].val + 1 == a[i].val) cnt /= 2;
^
0_0_30626978_29936.cpp:25:51: error: 'struct node' has no member named 'val'
else if (a[i - 1].val + 1 == a[i].val) cnt /= 2;
^
0_0_30626978_29936.cpp:30:18: error: 'struct node' has no member named 'val'
if (a[n].val + 1 >= maxa) over_cnt += cnt;
^
0_0_30626978_29936.cpp:30:29: error: 'maxa' was not declared in this scope
if (a[n].val + 1 >= maxa) over_cnt += cnt;
^
0_0_30626978_29936.cpp:30:35: error: 'over_cnt' was not declared in this scope
if (a[n].val + 1 >= maxa) over_cnt += cnt;
^
0_0_30626978_29936.cpp:31:23: error: 'struct node' has no member named 'val'
else if (a[n].val + 2 >= maxa) over_cnt += cnt / 2;
^
0_0_30626978_29936.cpp:31:40: error: 'over_cnt' was not declared in this scope
else if (a[n].val + 2 >= maxa) over_cnt += cnt / 2;
^
0_0_30626978_29936.cpp:32:13: error: 'over_cnt' was not declared in this scope
if (over_cnt < 2) { printf("Case %d: NO\n", cas); continue; }
^
0_0_30626978_29936.cpp:35:22: error: 'struct node' has no member named 'val'
if (a[i].val != a[i - 1].val) {
^
0_0_30626978_29936.cpp:35:38: error: 'struct node' has no member named 'val'
if (a[i].val != a[i - 1].val) {
^
0_0_30626978_29936.cpp:36:30: error: 'struct node' has no member named 'val'
if (a[i - 1].val + 1 == a[i].val) cnt /= 2;
^
0_0_30626978_29936.cpp:36:46: error: 'struct node' has no member named 'val'
if (a[i - 1].val + 1 == a[i].val) cnt /= 2;
^
0_0_30626978_29936.cpp:40:22: error: 'struct node' has no member named 'val'
if (a[i].val + 1 >= maxa) {
^
0_0_30626978_29936.cpp:40:33: error: 'maxa' was not declared in this scope
if (a[i].val + 1 >= maxa) {
^
0_0_30626978_29936.cpp:44:35: error: 'struct node' has no member named 'val'
if ((cnt / 2) && a[i].val + 2 >= maxa) {
^
0_0_30626978_29936.cpp:44:46: error: 'maxa' was not declared in this scope
if ((cnt / 2) && a[i].val + 2 >= maxa) {
^
|