tortoise.cpp:94:2: error: extended character is not valid in an identifier
94 | if (k-ti <= tj-k) pq.push({k-ti, (int)V.size()-1, c});
| ^
tortoise.cpp:94:5: error: extended character is not valid in an identifier
94 | if (k-ti <= tj-k) pq.push({k-ti, (int)V.size()-1, c});
| ^
tortoise.cpp:94:8: error: extended character is not valid in an identifier
94 | if (k-ti <= tj-k) pq.push({k-ti, (int)V.size()-1, c});
| ^
tortoise.cpp:94:11: error: extended character is not valid in an identifier
94 | if (k-ti <= tj-k) pq.push({k-ti, (int)V.size()-1, c});
| ^
tortoise.cpp:94:14: error: extended character is not valid in an identifier
94 | if (k-ti <= tj-k) pq.push({k-ti, (int)V.size()-1, c});
| ^
tortoise.cpp:94:17: error: extended character is not valid in an identifier
94 | if (k-ti <= tj-k) pq.push({k-ti, (int)V.size()-1, c});
| ^
tortoise.cpp:95:2: error: extended character is not valid in an identifier
95 | else pq.push({tj-k, (int)V.size()-1, c});
| ^
tortoise.cpp:95:5: error: extended character is not valid in an identifier
95 | else pq.push({tj-k, (int)V.size()-1, c});
| ^
tortoise.cpp:95:8: error: extended character is not valid in an identifier
95 | else pq.push({tj-k, (int)V.size()-1, c});
| ^
tortoise.cpp:95:11: error: extended character is not valid in an identifier
95 | else pq.push({tj-k, (int)V.size()-1, c});
| ^
tortoise.cpp:95:14: error: extended character is not valid in an identifier
95 | else pq.push({tj-k, (int)V.size()-1, c});
| ^
tortoise.cpp:95:17: error: extended character is not valid in an identifier
95 | else pq.push({tj-k, (int)V.size()-1, c});
| ^
tortoise.cpp:103:2: error: extended character is not valid in an identifier
103 | auto [w, i, c] = pq.top(); pq.pop();
| ^
tortoise.cpp:103:5: error: extended character is not valid in an identifier
103 | auto [w, i, c] = pq.top(); pq.pop();
| ^
tortoise.cpp:103:8: error: extended character is not valid in an identifier
103 | auto [w, i, c] = pq.top(); pq.pop();
| ^
tortoise.cpp:103:11: error: extended character is not valid in an identifier
103 | auto [w, i, c] = pq.top(); pq.pop();
| ^
tortoise.cpp:107:2: error: extended character is not valid in an identifier
107 | if (c > 1) pq.push({w, i, c-1});
| ^
tortoise.cpp:107:5: error: extended character is not valid in an identifier
107 | if (c > 1) pq.push({w, i, c-1});
| ^
tortoise.cpp:107:8: error: extended character is not valid in an identifier
107 | if (c > 1) pq.push({w, i, c-1});
| ^
tortoise.cpp:107:11: error: extended character is not valid in an identifier
107 | if (c > 1) pq.push({w, i, c-1});
| ^
tortoise.cpp: In function 'int main()':
tortoise.cpp:94:2: error: '\U000000a0' was not declared in this scope
94 | if (k-ti <= tj-k) pq.push({k-ti, (int)V.size()-1, c});
| ^
tortoise.cpp:94:71: error: expected primary-expression before ')' token
94 | if (k-ti <= tj-k) pq.push({k-ti, (int)V.size()-1, c});
| ^
tortoise.cpp:95:4: error: expected ';' before '\U000000a0'
95 | else pq.push({tj-k, (int)V.size()-1, c});
| ^~
| ;
tortoise.cpp:95:59: error: expected primary-expression before ')' token
95 | else pq.push({tj-k, (int)V.size()-1, c});
| ^
tortoise.cpp:103:2: error: '\U000000a0' was not declared in this scope
103 | auto [w, i, c] = pq.top(); pq.pop();
| ^
tortoise.cpp:104:36: error: 'i' was not declared in this scope
104 | if (tree.query(1, 0, sz-1, i, sz-1) < w*2) continue;
| ^
tortoise.cpp:104:47: error: 'w' was not declared in this scope
104 | if (tree.query(1, 0, sz-1, i, sz-1) < w*2) continue;
| ^
tortoise.cpp:106:33: error: 'i' was not declared in this scope
106 | tree.update(1, 0, sz-1, i, sz-1, -w*2);
| ^
tortoise.cpp:106:43: error: 'w' was not declared in this scope
106 | tree.update(1, 0, sz-1, i, sz-1, -w*2);
| ^
tortoise.cpp:107:4: error: expected ';' before '\U000000a0'
107 | if (c > 1) pq.push({w, i, c-1});
| ^~
| ;
tortoise.cpp:107:43: error: expected primary-expression before ')' token
107 | if (c > 1) pq.push({w, i, c-1});
| ^
tortoise.cpp:55:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
55 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
tortoise.cpp:57:33: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
57 | for (int i=1;i<=n;i++) scanf("%d", a+i);
| ~~~~~^~~~~~~~~~~