plusminus.cpp: In function 'int32_t main()':
plusminus.cpp:23:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
23 | for (auto &[t, x, y] : A) remdi[x].push_back({y, t});
| ^
plusminus.cpp:25:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
25 | for (auto [x, v] : remdi) {
| ^
plusminus.cpp:27:17: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
27 | for (auto [y, t] : v) if ((abs(y - sy) & 1) != abs(t - st)) sol1 = -1;
| ^
plusminus.cpp:32:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
32 | for (auto &[t, x, y] : A) remdi[y].push_back({x, t});
| ^
plusminus.cpp:33:14: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
33 | for (auto [y, v] : remdi) {
| ^
plusminus.cpp:35:17: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
35 | for (auto [x, t] : v) if ((abs(x - sx) & 1) != abs(t - st)) sol2 = -1;
| ^
plusminus.cpp: In lambda function:
plusminus.cpp:46:14: error: inconsistent types 'long long int' and 'long int' deduced for lambda return type
46 | return res;
| ^~~